org.exoplatform.commons.api.event.data
Interface BaseObject

All Known Subinterfaces:
File

public interface BaseObject

This Object will be used to get information from a JCR node instead of open a direct access to javax.jcr.Node object. However, it just provide the basic information of an object which could be used in search result or somewhere else.


Method Summary
 Calendar getCreatedDate()
          Return the value of the created date on this Object.
 Calendar getLastModifiedDate()
          Return the value of the last modified date on this Object.
 String getLastModifier()
          Return the name of last person who edited this Object.
 List<String> getMixinTypes()
          Return a list of node type name which added to this Object as the mix-in.
 String getName()
          Return the name of Object.
 String getOwner()
          Return the name of who created this Object.
 String getPath()
          * Returns the absolute path to this item.
 String getPrimaryType()
          Return the primary type of current Object For example: nt:file, exo:webContent,...
 String getRating()
          Return the rate value for this Object
 List<String> getTags()
          Return a list of tags name which added to this Object
 String getTitle()
          Return the title value on this Object.
 String getUUID()
          Return the UUID value of this Object.
 String getWorkspace()
          Return the workspace name where stored current object.
 void save()
          This function used to store all the information to the database.
 

Method Detail

getName

String getName()
Return the name of Object. The name of an object is the last element in its path, minus any square-bracket index that may exist.

Returns:
The name of this Object.

getPath

String getPath()
* Returns the absolute path to this item.

Returns:
The path of this Object.

getTitle

String getTitle()
Return the title value on this Object.

Returns:
The value of exo:title property.

getCreatedDate

Calendar getCreatedDate()
Return the value of the created date on this Object.

Returns:
The value of exo:dateCreated property.

getLastModifiedDate

Calendar getLastModifiedDate()
Return the value of the last modified date on this Object.

Returns:
The value of exo:lastModifiedDate property.

getLastModifier

String getLastModifier()
Return the name of last person who edited this Object.

Returns:
The value of exo:lastModifier property.

getOwner

String getOwner()
Return the name of who created this Object.

Returns:
The value of exo:owner property

getPrimaryType

String getPrimaryType()
Return the primary type of current Object For example: nt:file, exo:webContent,...

Returns:
The value of jcr:primartyType property.

getMixinTypes

List<String> getMixinTypes()
Return a list of node type name which added to this Object as the mix-in.

Returns:
List A list contains the mix-in name.

getWorkspace

String getWorkspace()
Return the workspace name where stored current object.

Returns:
The name of current workspace

getTags

List<String> getTags()
Return a list of tags name which added to this Object

Returns:
A list of tagged value.

getRating

String getRating()
Return the rate value for this Object

Returns:
The rating number

getUUID

String getUUID()
Return the UUID value of this Object. This one just available when already added the mix:referenceable mix-in node type.

Returns:
The value of exo:uuid property

save

void save()
This function used to store all the information to the database.



Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.