public interface Content extends ModelAwareDataAwareAmetysObject, MetadataAwareAmetysObject, DublinCoreAwareAmetysObject, TagAwareAmetysObject, ModifiableACLAmetysObject
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_TITLE
Constants for title attribute
|
static String |
METADATA_TITLE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationDate()
Retrieves the creation date.
|
UserIdentity |
getCreator()
Retrieves the login of the creator.
|
ModelItem |
getDefinition(String dataPath)
Retrieves the definition of the data at the given path
|
Date |
getFirstValidationDate()
Retrieves the first validation date
|
String |
getLanguage()
Retrieves the language of this content.
|
UserIdentity |
getLastContributor()
Retrieves the login of the last contributor.
|
Date |
getLastMajorValidationDate()
Retrieves the last validation date resulting from a major modification.
|
Date |
getLastModified()
Retrieves the last modification date.
|
Date |
getLastValidationDate()
Retrieves the last validation date
|
String[] |
getMixinTypes()
Retrieves the mixin types of this content.
|
Map<String,OutgoingReferences> |
getOutgoingReferences()
Get the stored outgoing references of the content.
|
Collection<Content> |
getReferencingContents()
Returns all Contents referencing this Content (as a metadata).
|
ResourceCollection |
getRootAttachments()
Retrieves the attachments root node
|
String |
getTitle()
Retrieves the title.
|
String |
getTitle(Locale locale)
Retrieves the title for the given locale.
|
String[] |
getTypes()
Retrieves the types of this content.
|
boolean |
hasReferencingContents()
Returns
true if there is at least one Content referencing this Content (as a metadata). |
getComposite, getDataHolder, getRepeater, getType, getValue, getValue, hasValue, isMultiplecopyTo, getDataNamestoSAX, toSAXdataToSAX, dataToSAX, dataToSAX, dataToSAXgetMetadataHoldergetDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCTypegetTagsaddAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsersgetAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsersstatic final String ATTRIBUTE_TITLE
@Deprecated static final String METADATA_TITLE
String[] getTypes() throws AmetysRepositoryException
AmetysRepositoryException - if an error occurs.String[] getMixinTypes() throws AmetysRepositoryException
AmetysRepositoryException - if an error occurs.String getLanguage() throws AmetysRepositoryException
null if the content is a multilingual contentAmetysRepositoryException - if an error occurs.String getTitle(Locale locale) throws UnknownDataException, AmetysRepositoryException
locale - The locale. Can be null if the content is not a multilingual content or to get the title in the default locale.UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.String getTitle() throws UnknownDataException, AmetysRepositoryException
getTitle(Locale) with a null locale.
Use this method only if you are manipulating no-multilingual content. If not sure, use getTitle(Locale) instead.UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.UserIdentity getCreator() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.Date getCreationDate() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.UserIdentity getLastContributor() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.Date getLastModified() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.Date getFirstValidationDate() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.Date getLastValidationDate() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.Date getLastMajorValidationDate() throws UnknownDataException, AmetysRepositoryException
UnknownDataException - if this property does not exist.AmetysRepositoryException - if an error occurs.Collection<Content> getReferencingContents() throws AmetysRepositoryException
AmetysRepositoryException - if an error occurs.boolean hasReferencingContents() throws AmetysRepositoryException
true if there is at least one Content referencing this Content (as a metadata).true if there is at least one Content referencing this Content.AmetysRepositoryException - if an error occurs.Map<String,OutgoingReferences> getOutgoingReferences() throws AmetysRepositoryException
AmetysRepositoryException - if an error occurs.ResourceCollection getRootAttachments() throws AmetysRepositoryException
AmetysRepositoryException - if an error occurs.ModelItem getDefinition(String dataPath)
dataPath - path of the datanull if there is no item defined at this path.
TODO NEWATTRIBUTEAPI_CONTENT: Move this method in ModelAwareDataHolder