public interface Content extends MetadataAwareAmetysObject, DublinCoreAwareAmetysObject, TagAwareAmetysObject, ModifiableACLAmetysObject
Modifier and Type | Method and Description |
---|---|
Date |
getCreationDate()
Retrieves the creation date.
|
UserIdentity |
getCreator()
Retrieves the login of the creator.
|
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). |
getMetadataHolder
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
getTags
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers
equals, getId, getName, getParent, getParentPath, getPath, hashCode
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 UnknownMetadataException, AmetysRepositoryException
locale
- The locale. Can be null if the content is not a multilingual content or to get the title in the default locale.UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.String getTitle() throws UnknownMetadataException, 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.UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.UserIdentity getCreator() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.Date getCreationDate() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.UserIdentity getLastContributor() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.Date getLastModified() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.Date getLastValidationDate() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- if this property does not exist.AmetysRepositoryException
- if an error occurs.Date getLastMajorValidationDate() throws UnknownMetadataException, AmetysRepositoryException
UnknownMetadataException
- 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.