public class AVMNodeDescriptor
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AVMNodeDescriptor(java.lang.String path,
java.lang.String name,
int type,
java.lang.String creator,
java.lang.String owner,
java.lang.String lastModifier,
long createDate,
long modDate,
long accessDate,
long id,
java.lang.String guid,
int versionID,
java.lang.String indirection,
int indirectionVersion,
boolean isPrimary,
long layerID,
boolean opacity,
long length,
int deletedType)
Make one up.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equals override.
|
long |
getAccessDate()
Get the last access date in java milliseconds.
|
long |
getCreateDate()
Get the creation date in java milliseconds.
|
java.lang.String |
getCreator()
Get the user who created this.
|
int |
getDeletedType()
Get the type of node that a deleted node is standing in for.
|
java.lang.String |
getGuid()
Get the GUID for the node.
|
long |
getId()
Get the object id.
|
java.lang.String |
getIndirection()
Get the indirection path if this is layered or null.
|
int |
getIndirectionVersion()
Get the indirection version.
|
java.lang.String |
getLastModifier()
Get the user who last modified this node.
|
long |
getLayerID()
Get the layer id of this node.
|
long |
getLength()
Get the file length if applicable.
|
long |
getModDate()
Get the modification date of this node.
|
java.lang.String |
getName()
Get the name of the node.
|
boolean |
getOpacity() |
java.lang.String |
getOwner()
Get the owner of this node.
|
java.lang.String |
getPath()
Get the path that this node was looked up by.
|
int |
getType()
Get the type of this node.
|
int |
getVersionID()
Get the version id of this node.
|
int |
hashCode()
Hashcode override.
|
boolean |
isDeleted()
Is this a deleted node.
|
boolean |
isDeletedDirectory()
Is this a deleted directory?
|
boolean |
isDeletedFile()
Is this a deleted file?
|
boolean |
isDirectory()
Determines whether this node corresponds to
either a plain or layered directory.
|
boolean |
isFile()
Determines whether this node corresponds to
either a plain or layered file.
|
boolean |
isLayeredDirectory()
Determines whether this node corresponds to
a layered directory.
|
boolean |
isLayeredFile()
Determines whether this node corresponds to
a layered file.
|
boolean |
isPlainDirectory()
Determines whether this node corresponds to
a plain (non-layered) directory.
|
boolean |
isPlainFile()
Determines whether this node corresponds to
a plain (non-layered) file.
|
boolean |
isPrimary()
Is this a primary indirection node.
|
java.lang.String |
toString()
Get a debuggable string representation of this.
|
public AVMNodeDescriptor(java.lang.String path, java.lang.String name, int type, java.lang.String creator, java.lang.String owner, java.lang.String lastModifier, long createDate, long modDate, long accessDate, long id, java.lang.String guid, int versionID, java.lang.String indirection, int indirectionVersion, boolean isPrimary, long layerID, boolean opacity, long length, int deletedType)
path
- The looked up path.type
- The type of the node.creator
- The creator of the node.owner
- The owner of the node.lastModifier
- The last modifier of the node.createDate
- The creation date.modDate
- The modification date.accessDate
- The access date.id
- The object id.versionID
- The version id.guid
- The GUID.indirection
- The indirection.indirectionVersion
- The indirection version.isPrimary
- Whether this is a primary indirection.layerID
- The layer id.length
- The file length.deletedType
- The type of node that was deleted.public long getAccessDate()
public long getCreateDate()
public java.lang.String getCreator()
public java.lang.String getIndirection()
public int getIndirectionVersion()
public boolean isPrimary()
public boolean isFile()
NOTE: A deleted file node is not considered a file (i.e.: isFile() returns false when isDeleted() returns true). Therefore, use isDeletedFile() to determine if a deleted node was a file, not isFile().
public boolean isPlainFile()
public boolean isLayeredFile()
public boolean isDirectory()
NOTE: A deleted directory node is not considered a directory (i.e.: isDirectory() returns false when isDeleted() returns true). Therefore, use isDeletedDirectory() to determine if a deleted node was a directory, not isDirectory().
public boolean isPlainDirectory()
public boolean isLayeredDirectory()
public boolean isDeleted()
public java.lang.String getLastModifier()
public long getLayerID()
public long getModDate()
public java.lang.String getOwner()
public java.lang.String getPath()
public int getType()
public int getVersionID()
public long getId()
public long getLength()
public java.lang.String getName()
public boolean getOpacity()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- public int hashCode()
hashCode
in class java.lang.Object
public int getDeletedType()
public boolean isDeletedDirectory()
public boolean isDeletedFile()
public java.lang.String getGuid()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.