org.alfresco.repo.model.filefolder
Class FileInfoImpl

java.lang.Object
  extended by org.alfresco.repo.model.filefolder.FileInfoImpl
All Implemented Interfaces:
java.io.Serializable, PermissionCheckValue, FileInfo

public class FileInfoImpl
extends java.lang.Object
implements FileInfo

Common file information implementation.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object obj)
           
 org.alfresco.service.cmr.repository.ContentData getContentData()
          Get the content data.
 java.util.Date getCreatedDate()
           
 org.alfresco.service.cmr.repository.NodeRef getLinkNodeRef()
           
 java.util.Date getModifiedDate()
           
 java.lang.String getName()
           
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
          Get the underlying node value that needs to be permission checked.
 java.util.Map getProperties()
           
 org.alfresco.service.namespace.QName getType()
           
 int hashCode()
           
 boolean isFolder()
           
 boolean isLink()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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()
Description copied from interface: PermissionCheckValue
Get the underlying node value that needs to be permission checked.

Specified by:
getNodeRef in interface PermissionCheckValue
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

getType

public org.alfresco.service.namespace.QName getType()
Specified by:
getType in interface FileInfo
Returns:
Returns (sub-)type of folder or file


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.