|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.avm.AVMNodeImpl
org.alfresco.repo.avm.PlainFileNodeImpl
public class PlainFileNodeImpl
A plain old file. Contains a Content object.
Field Summary |
---|
Fields inherited from class org.alfresco.repo.avm.AVMNodeImpl |
---|
DEBUG |
Constructor Summary | |
---|---|
PlainFileNodeImpl()
Default constructor. |
|
PlainFileNodeImpl(AVMStore store)
Make one from just an AVMStore. |
|
PlainFileNodeImpl(AVMStore store,
BasicAttributes attrs,
org.alfresco.service.cmr.repository.ContentData content,
java.util.Map props,
java.util.Set aspects,
Acl acl,
int versionID,
Acl parentAcl,
ACLCopyMode mode)
Construct a new one. |
|
PlainFileNodeImpl(PlainFileNode other,
AVMStore store,
java.lang.Long parentAcl,
ACLCopyMode mode)
Copy on write constructor. |
Method Summary | |
---|---|
AVMNode |
copy(org.alfresco.repo.avm.Lookup lPath)
Copy on write logic. |
org.alfresco.service.cmr.repository.ContentData |
getContentData()
If the content URL contains the special prefix, PREFIX_CONTENT_DATA_ID ,
then the data is pulled directly from the ContentDataDAO . |
org.alfresco.service.cmr.repository.ContentData |
getContentData(org.alfresco.repo.avm.Lookup lPath)
Get the ContentData for this file. |
java.lang.Long |
getContentDataId()
Get the ID of the ContentData as given by the string in the ContentURL of form ID:12345 |
java.lang.String |
getContentURL()
DAO accessor only. |
AVMNodeDescriptor |
getDescriptor(org.alfresco.repo.avm.Lookup lPath)
Get the descriptor for this node. |
AVMNodeDescriptor |
getDescriptor(org.alfresco.repo.avm.Lookup lPath,
java.lang.String name)
Get the descriptor for this node. |
AVMNodeDescriptor |
getDescriptor(java.lang.String parentPath,
java.lang.String name,
java.lang.String parentIndirection,
int parentIndirectionVersion)
Get the descriptor for this. |
java.lang.String |
getEncoding()
DAO accessor only. |
long |
getLength()
DAO accessor only. |
java.lang.String |
getMimeType()
DAO accessor only. |
int |
getType()
Get the type of this node. |
boolean |
isLegacyContentData()
Checks the content URL and if it contains the prefix
indicating the an new ContentData storage ID, returns true. |
void |
setContentData(org.alfresco.service.cmr.repository.ContentData contentData)
Set the ContentData for this file. |
void |
setContentURL(java.lang.String contentURL)
DAO accessor only. |
void |
setEncoding(java.lang.String encoding)
DAO accessor only. |
void |
setLength(long length)
DAO accessor only. |
void |
setMimeType(java.lang.String mimeType)
DAO accessor only. |
java.lang.String |
toString(org.alfresco.repo.avm.Lookup lPath)
Get a diagnostic string representation. |
Methods inherited from class org.alfresco.repo.avm.AVMNodeImpl |
---|
addAspect, addProperties, changeAncestor, checkReadOnly, copyACLs, copyACLs, copyACLs, copyACLs, copyAspects, copyCreationAndOwnerBasicAttributes, copyMetaDataFrom, copyProperties, deleteProperties, deleteProperty, equals, getAcl, getAncestor, getAspects, getBasicAttributes, getGuid, getId, getIsNew, getIsRoot, getMergedFrom, getProperties, getProperty, getStoreNew, getVers, getVersionID, hashCode, removeAspect, setAcl, setAncestor, setAspects, setBasicAttributes, setGuid, setId, setIsRoot, setMergedFrom, setProperties, setProperty, setStoreNew, setVers, setVersionID, toString, updateModTime |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.avm.AVMNode |
---|
addAspect, addProperties, changeAncestor, copyACLs, copyACLs, copyMetaDataFrom, deleteProperties, deleteProperty, getAcl, getAncestor, getAspects, getBasicAttributes, getGuid, getId, getIsNew, getIsRoot, getMergedFrom, getProperties, getProperty, getStoreNew, getVersionID, removeAspect, setAcl, setAncestor, setGuid, setIsRoot, setMergedFrom, setProperties, setProperty, setStoreNew, setVersionID, updateModTime |
Constructor Detail |
---|
public PlainFileNodeImpl()
public PlainFileNodeImpl(AVMStore store)
store
- An AVMStore.public PlainFileNodeImpl(PlainFileNode other, AVMStore store, java.lang.Long parentAcl, ACLCopyMode mode)
other
- The node we are being copied from.store
- The AVMStore.public PlainFileNodeImpl(AVMStore store, BasicAttributes attrs, org.alfresco.service.cmr.repository.ContentData content, java.util.Map props, java.util.Set aspects, Acl acl, int versionID, Acl parentAcl, ACLCopyMode mode)
store
- attrs
- content
- Method Detail |
---|
public AVMNode copy(org.alfresco.repo.avm.Lookup lPath)
copy
in interface AVMNode
lPath
- The lookup path.
public int getType()
getType
in interface AVMNode
public java.lang.String toString(org.alfresco.repo.avm.Lookup lPath)
toString
in interface AVMNode
lPath
- The Lookup.
public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath, java.lang.String name)
getDescriptor
in interface AVMNode
lPath
- The Lookup.name
- The name of this in the current context.
public AVMNodeDescriptor getDescriptor(org.alfresco.repo.avm.Lookup lPath)
getDescriptor
in interface AVMNode
lPath
- The Lookup.
public AVMNodeDescriptor getDescriptor(java.lang.String parentPath, java.lang.String name, java.lang.String parentIndirection, int parentIndirectionVersion)
getDescriptor
in interface AVMNode
parentPath
- The parent path.name
- The name this was looked up with.parentIndirection
- The parent indirection.parentIndirectionVersion
- The indirection version of the parent.
public java.lang.String getContentURL()
getContentURL
in interface PlainFileNode
public void setContentURL(java.lang.String contentURL)
public java.lang.String getMimeType()
getMimeType
in interface PlainFileNode
public void setMimeType(java.lang.String mimeType)
public java.lang.String getEncoding()
getEncoding
in interface PlainFileNode
public void setEncoding(java.lang.String encoding)
public long getLength()
getLength
in interface PlainFileNode
public void setLength(long length)
public void setContentData(org.alfresco.service.cmr.repository.ContentData contentData)
setContentData
in interface FileNode
setContentData
in interface PlainFileNode
contentData
- The value to set.public org.alfresco.service.cmr.repository.ContentData getContentData(org.alfresco.repo.avm.Lookup lPath)
getContentData
in interface FileNode
lPath
- The lookup path used to get here. Unused here.
public org.alfresco.service.cmr.repository.ContentData getContentData()
PREFIX_CONTENT_DATA_ID
,
then the data is pulled directly from the ContentDataDAO
.
getContentData
in interface PlainFileNode
public boolean isLegacyContentData()
prefix
indicating the an new ContentData storage ID, returns true.
isLegacyContentData
in interface PlainFileNode
public java.lang.Long getContentDataId()
getContentDataId
in interface PlainFileNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |