public final class ModifiableContentHelper extends Object
ModifiableContent API on DefaultContents.| Modifier and Type | Field and Description |
|---|---|
static String |
METADATA_CONTRIBUTOR
Constants for last contributor Metadata*
|
static String |
METADATA_CREATION
Constants for lastModified Metadata*
|
static String |
METADATA_CREATOR
Constants for author Metadata*
|
static String |
METADATA_LANGUAGE
Constants for language Metadata*
|
static String |
METADATA_LAST_MAJORVALIDATION
Constants for lastMajorValidationDate Metadata*
|
static String |
METADATA_LAST_VALIDATION
Constants for lastValidationDate Metadata*
|
static String |
METADATA_MODIFIED
Constants for lastModified Metadata*
|
static String |
METADATA_OUTGOING_REFERENCE_NODETYPE
Constants for the outgoing reference property
|
static String |
METADATA_OUTGOING_REFERENCE_PROPERTY
Constants for the outgoing reference property
|
static String |
METADATA_OUTGOING_REFERENCES
Constants for the outgoing references node
|
static String |
METADATA_OUTGOING_REFERENCES_PATH_PROPERTY
Constants for the outgoing references path property
|
static String |
METADATA_ROOT_OUTGOING_REFERENCES
Constants for the root outgoing references node
|
static String |
METADATA_TITLE
Constants for title Metadata*
|
| Modifier | Constructor and Description |
|---|---|
private |
ModifiableContentHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setCreationDate(DefaultContent content,
Date creationDate)
Set a
DefaultContent creation date. |
static void |
setCreator(DefaultContent content,
UserIdentity user)
Set a
DefaultContent user. |
static void |
setLanguage(DefaultContent content,
String language)
Set a
DefaultContent language. |
static void |
setLastContributor(DefaultContent content,
UserIdentity user)
Set a
DefaultContent contributor. |
static void |
setLastMajorValidationDate(DefaultContent content,
Date validationDate)
Set a
DefaultContent last major validation date. |
static void |
setLastModified(DefaultContent content,
Date lastModified)
Set a
DefaultContent last modification date. |
static void |
setLastValidationDate(DefaultContent content,
Date validationDate)
Set a
DefaultContent last validation date. |
static void |
setMixinTypes(DefaultContent content,
String[] mixins)
Set
DefaultContent mixins. |
static void |
setOutgoingReferences(DefaultContent content,
Map<String,OutgoingReferences> references)
Store the outgoing references on the content.
|
static void |
setTitle(DefaultContent content,
String title)
Set a
DefaultContent title. |
static void |
setType(DefaultContent content,
String type)
Set a
DefaultContent type. |
static void |
setTypes(DefaultContent content,
String[] types)
Set
DefaultContent types. |
public static final String METADATA_ROOT_OUTGOING_REFERENCES
public static final String METADATA_OUTGOING_REFERENCES
public static final String METADATA_OUTGOING_REFERENCES_PATH_PROPERTY
public static final String METADATA_OUTGOING_REFERENCE_PROPERTY
public static final String METADATA_OUTGOING_REFERENCE_NODETYPE
public static final String METADATA_LANGUAGE
public static final String METADATA_TITLE
public static final String METADATA_CREATOR
public static final String METADATA_CREATION
public static final String METADATA_LAST_VALIDATION
public static final String METADATA_LAST_MAJORVALIDATION
public static final String METADATA_CONTRIBUTOR
public static final String METADATA_MODIFIED
private ModifiableContentHelper()
public static void setType(DefaultContent content, String type) throws AmetysRepositoryException
DefaultContent type.content - the DefaultContent to set.type - the type.AmetysRepositoryException - if an error occurs.public static void setTypes(DefaultContent content, String[] types) throws AmetysRepositoryException
DefaultContent types.content - the DefaultContent to set.types - the types.AmetysRepositoryException - if an error occurs.public static void setMixinTypes(DefaultContent content, String[] mixins) throws AmetysRepositoryException
DefaultContent mixins.content - the DefaultContent to set.mixins - the mixins.AmetysRepositoryException - if an error occurs.public static void setLanguage(DefaultContent content, String language) throws AmetysRepositoryException
DefaultContent language.content - the DefaultContent to modify.language - the language to set.AmetysRepositoryException - if an error occurs.public static void setTitle(DefaultContent content, String title) throws AmetysRepositoryException
DefaultContent title.content - the DefaultContent to set.title - the title to set.AmetysRepositoryException - if an error occurs.public static void setCreator(DefaultContent content, UserIdentity user) throws AmetysRepositoryException
DefaultContent user.content - the DefaultContent to set.user - the user to set.AmetysRepositoryException - if an error occurs.public static void setCreationDate(DefaultContent content, Date creationDate) throws AmetysRepositoryException
DefaultContent creation date.content - the DefaultContent to set.creationDate - the creation date to set.AmetysRepositoryException - if an error occurs.public static void setLastContributor(DefaultContent content, UserIdentity user) throws AmetysRepositoryException
DefaultContent contributor.content - the DefaultContent to set.user - the contributor to set.AmetysRepositoryException - if an error occurs.public static void setLastModified(DefaultContent content, Date lastModified) throws AmetysRepositoryException
DefaultContent last modification date.content - the DefaultContent to set.lastModified - the last modification date to set.AmetysRepositoryException - if an error occurs.public static void setLastValidationDate(DefaultContent content, Date validationDate) throws AmetysRepositoryException
DefaultContent last validation date.content - the DefaultContent to set.validationDate - the last validation date.AmetysRepositoryException - if an error occurs.public static void setLastMajorValidationDate(DefaultContent content, Date validationDate) throws AmetysRepositoryException
DefaultContent last major validation date.content - the DefaultContent to set.validationDate - the last major validation date.AmetysRepositoryException - if an error occurs.public static void setOutgoingReferences(DefaultContent content, Map<String,OutgoingReferences> references) throws AmetysRepositoryException
content - The content concerned by these outgoing references.references - A non null map of outgoing references grouped by metadata (key are metadata path)AmetysRepositoryException - if an error occurs.