Package org.alfresco.service.cmr.model
Interface FileInfo
-
- All Superinterfaces:
PermissionCheckValue,java.io.Serializable
- All Known Implementing Classes:
FileInfoImpl
@AlfrescoPublicApi public interface FileInfo extends PermissionCheckValue, java.io.Serializable
Common file information. The implementations may store the properties for the lifetime of this instance; i.e. the values are transient and can be used as read-only values for a short time only.- Author:
- Derek Hulley
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.ContentDatagetContentData()Get the content data.java.util.DategetCreatedDate()org.alfresco.service.cmr.repository.NodeRefgetLinkNodeRef()java.util.DategetModifiedDate()java.lang.StringgetName()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>getProperties()org.alfresco.service.namespace.QNamegetType()booleanisFolder()booleanisHidden()booleanisLink()
-
-
-
Method Detail
-
getNodeRef
org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfacePermissionCheckValue- Returns:
- Returns a reference to the low-level node representing this file
-
isFolder
boolean isFolder()
- Returns:
- Return true if this instance represents a folder, false if this represents a file
-
isLink
boolean isLink()
- Returns:
- true if this instance represents a link to a node
-
isHidden
boolean isHidden()
- Returns:
- true if this instance represents a hidden file
-
getLinkNodeRef
org.alfresco.service.cmr.repository.NodeRef getLinkNodeRef()
- Returns:
- Return the reference to the node that this node is linked to
-
getName
java.lang.String getName()
- Returns:
- Returns the name of the file or folder within the parent folder
-
getCreatedDate
java.util.Date getCreatedDate()
- Returns:
- Returns the date the node was created
-
getModifiedDate
java.util.Date getModifiedDate()
- Returns:
- Returns the modified date
-
getContentData
org.alfresco.service.cmr.repository.ContentData getContentData()
Get the content data. This is only valid forfiles.- Returns:
- Returns the content data
-
getProperties
java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getProperties()
- Returns:
- Returns all the node properties
-
getType
org.alfresco.service.namespace.QName getType()
- Returns:
- Returns (sub-)type of folder or file
-
-