|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.core.MetaData
public class MetaData
Meta data of a content like creation date, modification date, assigned template, ...
Field Summary | |
---|---|
static String |
ACTIVATED
|
static int |
ACTIVATION_STATUS_ACTIVATED
|
static int |
ACTIVATION_STATUS_MODIFIED
|
static int |
ACTIVATION_STATUS_NOT_ACTIVATED
|
static String |
ACTIVATOR_ID
|
static String |
AUTHOR_ID
|
static String |
CREATION_DATE
|
static String |
DEFAULT_META_NODE
Name of the Node hosting the MetaData. |
static String |
LAST_ACTION
|
static String |
LAST_MODIFIED
|
static String |
TEMPLATE
|
static String |
TEMPLATE_TYPE
|
static String |
TITLE
Top level atoms viewed as metadata of the specified content these must be set by the authoring system itself, but could be changed via custom templates if necessary. |
Constructor Summary | |
---|---|
|
MetaData(javax.jcr.Node workingNode)
|
protected |
MetaData(javax.jcr.Node workingNode,
AccessManager ignoredAccessManager)
Deprecated. since 4.5 use MetaData(Node) instead. |
Method Summary | |
---|---|
int |
getActivationStatus()
Returns one of the ACTIVATION_STATUS_* constants. |
String |
getActivatorId()
Part of metadata, last known activator of this node. |
String |
getAuthorId()
Part of metadata, last known author of this node. |
boolean |
getBooleanProperty(String name)
|
Calendar |
getCreationDate()
Part of metadata, get creation date of the current node. |
Calendar |
getDateProperty(String name)
|
double |
getDoubleProperty(String name)
|
String |
getHandle()
|
boolean |
getIsActivated()
Part of metadata, get last activated status of the current node. |
String |
getLabel()
Part of metadata, same as name of actual storage node. |
Calendar |
getLastActionDate()
Part of metadata, get last activated/de- date of the current node. |
long |
getLongProperty(String name)
|
Calendar |
getModificationDate()
Get last modified date of the node to which this meta data belongs or creation date in case content was not modified since. |
String |
getStringProperty(String name)
|
String |
getTemplate()
Part of metadata, template which will be used to render content of this node. |
String |
getTitle()
Part of metadata , could be used as html header. |
boolean |
hasProperty(String name)
Deprecated. since 4.0 - not used |
void |
removeProperty(String name)
remove specified property. |
void |
setActivated()
Part of metadata, adds activated status of the current node. |
void |
setActivatorId(String value)
Part of metadata, current logged-in author who last activated this page. |
void |
setAuthorId(String value)
Part of metadata, current logged-in author who did some action on this page. |
void |
setCreationDate()
Part of metadata, adds creation date of the current node. |
void |
setLastActivationActionDate()
Part of metadata, adds activated date of the current node. |
void |
setModificationDate()
Part of metadata, adds modification date of the current node. |
void |
setProperty(String name,
boolean value)
|
void |
setProperty(String name,
Calendar value)
|
void |
setProperty(String name,
double value)
|
void |
setProperty(String name,
long value)
|
void |
setProperty(String name,
String value)
|
void |
setTemplate(String value)
Part of metadata, template which will be used to render content of this node. |
void |
setTitle(String value)
Part of metadata, could be used as html header. |
void |
setUnActivated()
Part of metadata, adds activated status of the current node. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TITLE
public static final String CREATION_DATE
public static final String LAST_MODIFIED
public static final String LAST_ACTION
public static final String AUTHOR_ID
public static final String ACTIVATOR_ID
public static final String TEMPLATE
public static final String TEMPLATE_TYPE
public static final String ACTIVATED
public static final String DEFAULT_META_NODE
public static final int ACTIVATION_STATUS_NOT_ACTIVATED
public static final int ACTIVATION_STATUS_MODIFIED
public static final int ACTIVATION_STATUS_ACTIVATED
Constructor Detail |
---|
protected MetaData(javax.jcr.Node workingNode, AccessManager ignoredAccessManager)
workingNode
- current Node
on which MetaData
is requestedignoredAccessManager
- no longer required hence use other constructor.public MetaData(javax.jcr.Node workingNode)
workingNode
- current Node
on which MetaData
is requestedMethod Detail |
---|
public String getHandle() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public String getLabel()
public String getTitle()
public void setTitle(String value)
value
- public void setCreationDate()
public Calendar getCreationDate()
public void setActivated()
public void setUnActivated()
public boolean getIsActivated()
public int getActivationStatus()
public void setLastActivationActionDate()
public Calendar getLastActionDate()
public void setModificationDate()
public Calendar getModificationDate()
public String getAuthorId()
public void setAuthorId(String value)
value
- public String getActivatorId()
public void setActivatorId(String value)
value
- public String getTemplate()
public void setTemplate(String value)
value
- public void setProperty(String name, String value)
public void setProperty(String name, long value)
public void setProperty(String name, double value)
public void setProperty(String name, boolean value)
public void setProperty(String name, Calendar value)
public boolean getBooleanProperty(String name)
public double getDoubleProperty(String name)
public long getLongProperty(String name)
public String getStringProperty(String name)
public Calendar getDateProperty(String name)
public void removeProperty(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
name
- of the property to be removed
javax.jcr.PathNotFoundException
- if property does not exist
javax.jcr.RepositoryException
- if unable to remove@Deprecated public boolean hasProperty(String name)
name
-
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |