|
||||||||||
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 java.lang.String |
ACTIVATED
|
static int |
ACTIVATION_STATUS_ACTIVATED
|
static int |
ACTIVATION_STATUS_MODIFIED
|
static int |
ACTIVATION_STATUS_NOT_ACTIVATED
|
static java.lang.String |
ACTIVATOR_ID
|
static java.lang.String |
AUTHOR_ID
|
static java.lang.String |
CREATION_DATE
|
static java.lang.String |
DEFAULT_META_NODE
|
static java.lang.String |
LAST_ACTION
|
static java.lang.String |
LAST_MODIFIED
|
static java.lang.String |
TEMPLATE
|
static java.lang.String |
TEMPLATE_TYPE
|
static java.lang.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 | |
---|---|
protected |
MetaData()
|
protected |
MetaData(javax.jcr.Node workingNode,
AccessManager manager)
Package private constructor. |
Method Summary | |
---|---|
int |
getActivationStatus()
Returns one of the ACTIVATION_STATUS_* constants. |
java.lang.String |
getActivatorId()
Part of metadata, last known activator of this node. |
java.lang.String |
getAuthorId()
Part of metadata, last known author of this node. |
boolean |
getBooleanProperty(java.lang.String name)
|
java.util.Calendar |
getCreationDate()
Part of metadata, get creation date of the current node. |
java.util.Calendar |
getDateProperty(java.lang.String name)
Gets date property or null if such property doesn't exist. |
double |
getDoubleProperty(java.lang.String name)
|
java.lang.String |
getHandle()
|
boolean |
getIsActivated()
Part of metadata, get last activated status of the current node. |
java.lang.String |
getLabel()
Part of metadata, same as name of actual storage node. |
java.util.Calendar |
getLastActionDate()
Part of metadata, get last activated/de- date of the current node. |
long |
getLongProperty(java.lang.String name)
|
java.util.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. |
javax.jcr.PropertyIterator |
getProperties()
Deprecated. since 4.0 - not used. |
java.lang.String |
getStringProperty(java.lang.String name)
Returns a String property. |
java.lang.String |
getTemplate()
Part of metadata, template which will be used to render content of this node. |
java.lang.String |
getTitle()
Part of metadata , could be used as html header. |
boolean |
hasProperty(java.lang.String name)
Deprecated. since 4.0 - not used |
void |
removeProperty(java.lang.String name)
remove specified property. |
void |
setActivated()
Part of metadata, adds activated status of the current node. |
void |
setActivatorId(java.lang.String value)
Part of metadata, current logged-in author who last activated this page. |
void |
setAuthorId(java.lang.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(java.lang.String name,
boolean value)
|
void |
setProperty(java.lang.String name,
java.util.Calendar value)
|
void |
setProperty(java.lang.String name,
double value)
|
void |
setProperty(java.lang.String name,
long value)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
|
void |
setTemplate(java.lang.String value)
Part of metadata, template which will be used to render content of this node. |
void |
setTemplateType(java.lang.String value)
Deprecated. since 4.0 - not used - template type is determined by template definition |
void |
setTitle(java.lang.String value)
Part of metadata, could be used as html header. |
void |
setUnActivated()
Part of metadata, adds activated status of the current node. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TITLE
public static final java.lang.String CREATION_DATE
public static final java.lang.String LAST_MODIFIED
public static final java.lang.String LAST_ACTION
public static final java.lang.String AUTHOR_ID
public static final java.lang.String ACTIVATOR_ID
public static final java.lang.String TEMPLATE
public static final java.lang.String TEMPLATE_TYPE
public static final java.lang.String ACTIVATED
public static final java.lang.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 manager)
workingNode
- current Node
on which MetaData
is requestedprotected MetaData()
Method Detail |
---|
public java.lang.String getHandle() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated public javax.jcr.PropertyIterator getProperties()
public java.lang.String getLabel()
public java.lang.String getTitle()
public void setTitle(java.lang.String value) throws AccessDeniedException
value
-
AccessDeniedException
public void setCreationDate() throws AccessDeniedException
AccessDeniedException
public java.util.Calendar getCreationDate()
public void setActivated() throws AccessDeniedException
AccessDeniedException
public void setUnActivated() throws AccessDeniedException
AccessDeniedException
public boolean getIsActivated()
public int getActivationStatus()
public void setLastActivationActionDate() throws AccessDeniedException
AccessDeniedException
public java.util.Calendar getLastActionDate()
public void setModificationDate() throws AccessDeniedException
AccessDeniedException
public java.util.Calendar getModificationDate()
public java.lang.String getAuthorId()
public void setAuthorId(java.lang.String value) throws AccessDeniedException
value
-
AccessDeniedException
public java.lang.String getActivatorId()
public void setActivatorId(java.lang.String value) throws AccessDeniedException
value
-
AccessDeniedException
public java.lang.String getTemplate()
public void setTemplate(java.lang.String value) throws AccessDeniedException
value
-
AccessDeniedException
@Deprecated public void setTemplateType(java.lang.String value) throws AccessDeniedException
value
-
AccessDeniedException
public void setProperty(java.lang.String name, java.lang.String value) throws AccessDeniedException
AccessDeniedException
public void setProperty(java.lang.String name, long value) throws AccessDeniedException
AccessDeniedException
public void setProperty(java.lang.String name, double value) throws AccessDeniedException
AccessDeniedException
public void setProperty(java.lang.String name, boolean value) throws AccessDeniedException
AccessDeniedException
public void setProperty(java.lang.String name, java.util.Calendar value) throws AccessDeniedException
AccessDeniedException
public java.util.Calendar getDateProperty(java.lang.String name)
public boolean getBooleanProperty(java.lang.String name)
public double getDoubleProperty(java.lang.String name)
public long getLongProperty(java.lang.String name)
public java.lang.String getStringProperty(java.lang.String name)
name
-
public void removeProperty(java.lang.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(java.lang.String name)
name
-
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |