org.alfresco.repo.model.filefolder
Class FileInfoImpl
java.lang.Object
org.alfresco.repo.model.filefolder.FileInfoImpl
- All Implemented Interfaces:
- java.io.Serializable, FileInfo
public class FileInfoImpl
- extends java.lang.Object
- implements FileInfo
Common file information implementation.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
FileInfoImpl.getNodeRef()
,
NodeRef.equals(Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
FileInfoImpl.getNodeRef()
,
NodeRef.hashCode()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
- Specified by:
getNodeRef
in interface FileInfo
- Returns:
- Returns a reference to the low-level node representing this file
isFolder
public boolean isFolder()
- Specified by:
isFolder
in interface FileInfo
- Returns:
- Return true if this instance represents a folder, false if this represents a file
isLink
public boolean isLink()
- Specified by:
isLink
in interface FileInfo
- Returns:
- true if this instance represents a link to a node
getLinkNodeRef
public org.alfresco.service.cmr.repository.NodeRef getLinkNodeRef()
- Specified by:
getLinkNodeRef
in interface FileInfo
- Returns:
- Return the reference to the node that this node is linked to
getName
public java.lang.String getName()
- Specified by:
getName
in interface FileInfo
- Returns:
- Returns the name of the file or folder within the parent folder
getCreatedDate
public java.util.Date getCreatedDate()
- Specified by:
getCreatedDate
in interface FileInfo
- Returns:
- Returns the date the node was created
getModifiedDate
public java.util.Date getModifiedDate()
- Specified by:
getModifiedDate
in interface FileInfo
- Returns:
- Returns the modified date
getContentData
public org.alfresco.service.cmr.repository.ContentData getContentData()
- Description copied from interface:
FileInfo
- Get the content data. This is only valid for
files
.
- Specified by:
getContentData
in interface FileInfo
- Returns:
- Returns the content data
getProperties
public java.util.Map getProperties()
- Specified by:
getProperties
in interface FileInfo
- Returns:
- Returns all the node properties
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.