public class NodeImpl extends Object implements Node
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<NodeImpl> |
CREATOR
Android specific internal methods to retrieve information depending on
state. By state it means that
a node is created by a "cmisobject" so parameter object is not
null
if configuration change (orientation screen change...) the parameter
object is not saved so become null.
To save informations (properties, aspects...), Android can use Parcel
object that can store important information.
This method is similar as "deserialization" in java world.
|
Constructor and Description |
---|
NodeImpl() |
NodeImpl(org.apache.chemistry.opencmis.client.api.CmisObject o)
Default constructor of a Node based on CMIS service and object.
|
NodeImpl(org.apache.chemistry.opencmis.client.api.CmisObject o,
boolean hasAllProperties) |
NodeImpl(android.os.Parcel o)
Constructor of a Node object depending of a Parcel object previously
created by writeToParcel method.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
Set<String> |
getAllowableActions() |
List<String> |
getAspects()
Returns all the aspects applied to the node.
|
GregorianCalendar |
getCreatedAt()
Returns the timestamp in the session’s locale when the node was created.
|
String |
getCreatedBy()
Returns the username of the person who created the node.
|
String |
getDescription()
Returns the description of the Node.
|
String |
getIdentifier()
Returns unique identifier of the node.
|
GregorianCalendar |
getModifiedAt()
Gets the modified at.
|
String |
getModifiedBy()
Returns the username of the person who modified the node.
|
String |
getName()
Returns the name of the node.
|
String |
getPath() |
Map<String,Property> |
getProperties()
Returns a Map of all available properties for the specific node object.
|
Property |
getProperty(String name)
Returns the requested property.
|
<T> T |
getPropertyValue(String name)
Returns the value of the property with the given name.
|
String |
getTitle()
Returns the title of the Node.
|
String |
getType()
Returns the type of this Node.
|
boolean |
hasAllowableAction(org.apache.chemistry.opencmis.commons.enums.Action action) |
boolean |
hasAllowableAction(String action) |
boolean |
hasAllProperties()
Indicates whether the node has all it’s metadata populated.
|
boolean |
hasAspect(String aspectName)
Determines if the node has the specified aspect.
|
boolean |
isDocument()
Return true if this instance represents a document, false if this
represents a folder.
|
boolean |
isFolder()
Return true if this instance represents a folder, false if this
represents a document.
|
void |
writeToParcel(android.os.Parcel dest,
int arg1)
Android specific internal methods to save information depending on state.
|
public static final android.os.Parcelable.Creator<NodeImpl> CREATOR
public NodeImpl()
public NodeImpl(org.apache.chemistry.opencmis.client.api.CmisObject o)
o
- public NodeImpl(org.apache.chemistry.opencmis.client.api.CmisObject o, boolean hasAllProperties)
o
- public NodeImpl(android.os.Parcel o)
o
- the Parcel objectpublic String getIdentifier()
getIdentifier
in interface Node
public String getName()
public String getTitle()
public String getDescription()
getDescription
in interface Node
public String getType()
getType
in interface Node
TYPE_CONTENT
in document case or
TYPE_FOLDER
in folder case.public String getCreatedBy()
getCreatedBy
in interface Node
public GregorianCalendar getCreatedAt()
getCreatedAt
in interface Node
public String getModifiedBy()
getModifiedBy
in interface Node
public GregorianCalendar getModifiedAt()
getModifiedAt
in interface Node
public Property getProperty(String name)
getProperty
in interface Node
name
- : unique identifier of your property.public Map<String,Property> getProperties()
getProperties
in interface Node
public <T> T getPropertyValue(String name)
getPropertyValue
in interface Node
name
- : unique identifier label of the propertypublic boolean hasAspect(String aspectName)
public List<String> getAspects()
getAspects
in interface Node
public boolean hasAllProperties()
Node
hasAllProperties
in interface Node
public boolean isFolder()
public boolean isDocument()
isDocument
in interface Node
public boolean hasAllowableAction(org.apache.chemistry.opencmis.commons.enums.Action action)
action
- : cmis type of action like move, delete, create...Action
public boolean hasAllowableAction(String action)
action
- : cmis type of action like move, delete, create...Action
public Set<String> getAllowableActions()
public String getPath()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int arg1)
writeToParcel
in interface android.os.Parcelable
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.