Class JCRResource<F extends JCRResourceFactory>
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultAmetysObject<F>
-
- org.ametys.plugins.explorer.resources.jcr.JCRResource<F>
-
- Type Parameters:
F- the actual type of factory.
- All Implemented Interfaces:
CommentableResource,ModifiableResource,Resource,ACLAmetysObject,AmetysObject,CopiableAmetysObject,DublinCoreAwareAmetysObject,ModifiableDublinCoreAwareAmetysObject,JCRAmetysObject,LockableAmetysObject,LockAwareAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableACLAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,DataAndVersionAwareAmetysObject,ModifiableDataAwareVersionableAmetysObject,VersionableAmetysObject,VersionAwareAmetysObject
public class JCRResource<F extends JCRResourceFactory> extends DefaultAmetysObject<F> implements ModifiableResource, CopiableAmetysObject
Default implementation of anResource, backed by a JCR node.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTRIBUTOR_NODE_NAMEThe name of node holding the last contributorstatic StringCREATION_DATEConstants for lastModified Metadatastatic StringCREATOR_NODE_NAMEThe name of node holding the creator-
Fields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description JCRResource(Node node, String parentPath, F factory)Creates anJCRResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String_getDefaultDCType()AmetysObjectcopyTo(ModifiableTraversableAmetysObject parent, String name)Copy the currentAmetysObjectto the given object.AmetysObjectcopyTo(ModifiableTraversableAmetysObject parent, String name, List<String> restrictTo)Copy the currentAmetysObjectto the given object if it is not in the restriction list.UserIdentitygetAuthorFromRevision(String revision)Get the author from old revisionThreadgetComments(boolean createThread)Get the thread holding the commentsDategetCreationDate()Retrieves the creation date.UserIdentitygetCreator()Returns the last contributor of this resource.StringgetDCContributor()Get the Dublin Core contributor.StringgetDCCoverage()Get the Dublin Core coverage.StringgetDCCreator()Get the Dublin Core creator.DategetDCDate()Get the Dublin Core date.StringgetDCDescription()Get the Dublin Core description.StringgetDCFormat()Get the Dublin Core format.StringgetDCIdentifier()Get the Dublin Core identifier.StringgetDCLanguage()Get the Dublin Core language.StringgetDCPublisher()Get the Dublin Core publisher.StringgetDCRelation()Get the Dublin Core relation.StringgetDCRights()Get the Dublin Core rights.StringgetDCSource()Get the Dublin Core source.String[]getDCSubject()Get the Dublin Core subject.StringgetDCTitle()Get the Dublin Core title.StringgetDCType()Get the Dublin Core type.InputStreamgetInputStream()Returns the data stream.String[]getKeywords()Returns the keywords of this resource, as a String array.StringgetKeywordsAsString()Returns the keywords of this resource, as a comme-separated String.UserIdentitygetLastContributor()Retrieves the login of the last contributor.DategetLastModified()Returns the last modification date.longgetLength()Returns the length of the data stream.UserIdentitygetLockOwner()Returns the owner of the lock, or null if noneStringgetMimeType()Returns the data mime-type.StringgetResourcePath()Returns the path of this resource in its hierarchy (which is a subset of the whole repository).booleanisLocked()Returns true if thisAmetysObjectis lockedvoidlock()Locks thisAmetysObjectprotected voidrestoreFromNode(Node node)Restore from a nodevoidsetCreationDate(Date creationDate)Set the creation date if this resource.voidsetCreator(UserIdentity author)Set the creator of the resourcevoidsetData(InputStream stream, String mimeType, Date lastModified, UserIdentity author)Set binary data.voidsetDCContributor(String contributor)Set the Dublin Core contributor.voidsetDCCoverage(String coverage)Set the Dublin Core coverage.voidsetDCCreator(String creator)Set the Dublin Core creator.voidsetDCDate(Date date)Set the Dublin Core date.voidsetDCDescription(String description)Set the Dublin Core description.voidsetDCFormat(String format)Set the Dublin Core format.voidsetDCIdentifier(String identifier)Set the Dublin Core identifier.voidsetDCLanguage(String language)Set the Dublin Core language.voidsetDCPublisher(String publisher)Set the Dublin Core publisher.voidsetDCRelation(String relation)Set the Dublin Core relation.voidsetDCRights(String rights)Set the Dublin Core rights.voidsetDCSource(String source)Set the Dublin Core source.voidsetDCSubject(String[] subject)Set the Dublin Core subject.voidsetDCTitle(String title)Set the Dublin Core title.voidsetDCType(String type)Set the Dublin Core type.voidsetKeywords(String keywords)Set this resource's keywords.voidsetKeywords(String[] keywords)Set this resource's keywords.voidsetLastContributor(UserIdentity lastContributor)Set the last contributor of the resourcevoidsetLastModified(Date lastModified)Set the last modified date if this resource.voidsetMimeType(String mimeType)Set this resource mime type.voidunlock()Unlocks thisAmetysObject-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllRevisions, getBaseNode, getBaseVersion, getLabels, getLabels, getNode, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedDataHolder, getVersionHistory, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromRevision, switchToLabel, switchToRevision
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
-
-
-
Field Detail
-
CREATOR_NODE_NAME
public static final String CREATOR_NODE_NAME
The name of node holding the creator- See Also:
- Constant Field Values
-
CREATION_DATE
public static final String CREATION_DATE
Constants for lastModified Metadata- See Also:
- Constant Field Values
-
CONTRIBUTOR_NODE_NAME
public static final String CONTRIBUTOR_NODE_NAME
The name of node holding the last contributor- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCRResource
public JCRResource(Node node, String parentPath, F factory)
Creates anJCRResource.- Parameters:
node- the node backing thisAmetysObjectparentPath- the parentPath in the Ametys hierarchyfactory- the DefaultAmetysObjectFactory which created the AmetysObject
-
-
Method Detail
-
setData
public void setData(InputStream stream, String mimeType, Date lastModified, UserIdentity author)
Description copied from interface:ModifiableResourceSet binary data.- Specified by:
setDatain interfaceModifiableResource- Parameters:
stream- TheInputStream.mimeType- The file mimetype.lastModified- The date of last modification.author- The author of last modification.
-
setLastModified
public void setLastModified(Date lastModified)
Description copied from interface:ModifiableResourceSet the last modified date if this resource.- Specified by:
setLastModifiedin interfaceModifiableResource- Parameters:
lastModified- the last modified date.
-
setKeywords
public void setKeywords(String keywords)
Description copied from interface:ModifiableResourceSet this resource's keywords.- Specified by:
setKeywordsin interfaceModifiableResource- Parameters:
keywords- the comma-separated keywords.
-
setKeywords
public void setKeywords(String[] keywords)
Description copied from interface:ModifiableResourceSet this resource's keywords.- Specified by:
setKeywordsin interfaceModifiableResource- Parameters:
keywords- the keywords.
-
setMimeType
public void setMimeType(String mimeType)
Description copied from interface:ModifiableResourceSet this resource mime type.- Specified by:
setMimeTypein interfaceModifiableResource- Parameters:
mimeType- the mime type.
-
setCreator
public void setCreator(UserIdentity author)
Description copied from interface:ModifiableResourceSet the creator of the resource- Specified by:
setCreatorin interfaceModifiableResource- Parameters:
author- The author
-
getInputStream
public InputStream getInputStream() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the data stream.- Specified by:
getInputStreamin interfaceResource- Returns:
- the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getMimeType
public String getMimeType() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the data mime-type.- Specified by:
getMimeTypein interfaceResource- Returns:
- the data mime-type.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLastModified
public Date getLastModified() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the last modification date.- Specified by:
getLastModifiedin interfaceResource- Returns:
- the last modification date.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLength
public long getLength() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the length of the data stream.- Specified by:
getLengthin interfaceResource- Returns:
- the length of the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getCreator
public UserIdentity getCreator() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the last contributor of this resource.- Specified by:
getCreatorin interfaceResource- Returns:
- the last contributor of this resource.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getAuthorFromRevision
public UserIdentity getAuthorFromRevision(String revision) throws RepositoryException
Get the author from old revision- Parameters:
revision- The revision- Returns:
- The user identity of the author or
nullif not found - Throws:
RepositoryException- If an error occurred
-
getKeywords
public String[] getKeywords() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the keywords of this resource, as a String array.- Specified by:
getKeywordsin interfaceResource- Returns:
- the keywords of this resource.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getKeywordsAsString
public String getKeywordsAsString() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the keywords of this resource, as a comme-separated String.- Specified by:
getKeywordsAsStringin interfaceResource- Returns:
- the keywords of this resource.
- Throws:
AmetysRepositoryException- if an error occurs.
-
restoreFromNode
protected void restoreFromNode(Node node) throws RepositoryException
Description copied from class:DefaultAmetysObjectRestore from a node- Overrides:
restoreFromNodein classDefaultAmetysObject<F extends JCRResourceFactory>- Parameters:
node- The node to restore- Throws:
RepositoryException- If error occurs
-
getResourcePath
public String getResourcePath() throws AmetysRepositoryException
Description copied from interface:ResourceReturns the path of this resource in its hierarchy (which is a subset of the whole repository).- Specified by:
getResourcePathin interfaceResource- Returns:
- the path of this resource in its hierarchy.
- Throws:
AmetysRepositoryException- if an error occurs.
-
lock
public void lock() throws AmetysRepositoryException
Description copied from interface:LockableAmetysObjectLocks thisAmetysObject- Specified by:
lockin interfaceLockableAmetysObject- Throws:
AmetysRepositoryException- if a problem occurs
-
unlock
public void unlock() throws AmetysRepositoryException
Description copied from interface:LockableAmetysObjectUnlocks thisAmetysObject- Specified by:
unlockin interfaceLockableAmetysObject- Throws:
AmetysRepositoryException- if a problem occurs
-
isLocked
public boolean isLocked() throws AmetysRepositoryException
Description copied from interface:LockAwareAmetysObjectReturns true if thisAmetysObjectis locked- Specified by:
isLockedin interfaceLockAwareAmetysObject- Returns:
- true if this
AmetysObjectis locked - Throws:
AmetysRepositoryException- if a problem occurs
-
getLockOwner
public UserIdentity getLockOwner() throws AmetysRepositoryException
Description copied from interface:LockAwareAmetysObjectReturns the owner of the lock, or null if none- Specified by:
getLockOwnerin interfaceLockAwareAmetysObject- Returns:
- the owner of the lock, or null if none
- Throws:
AmetysRepositoryException- if a problem occurs
-
getComments
public Thread getComments(boolean createThread)
Description copied from interface:CommentableResourceGet the thread holding the comments- Specified by:
getCommentsin interfaceCommentableResource- Parameters:
createThread- True to force the creation of the thread if it does not exists.- Returns:
- the thread holding the comments or null if the tread does not exist
-
copyTo
public AmetysObject copyTo(ModifiableTraversableAmetysObject parent, String name) throws AmetysRepositoryException
Description copied from interface:CopiableAmetysObjectCopy the currentAmetysObjectto the given object. Be careful, this method save changes.- Specified by:
copyToin interfaceCopiableAmetysObject- Parameters:
parent- The parent of the new object. Can not be null.name- Name of the new object. Can be null. If null, the new name will be get from the copied object- Returns:
- the created object
- Throws:
AmetysRepositoryException- if an error occurs.
-
copyTo
public AmetysObject copyTo(ModifiableTraversableAmetysObject parent, String name, List<String> restrictTo) throws AmetysRepositoryException
Description copied from interface:CopiableAmetysObjectCopy the currentAmetysObjectto the given object if it is not in the restriction list. Be careful, this method save changes.- Specified by:
copyToin interfaceCopiableAmetysObject- Parameters:
parent- The parent of the new object. Can not be null.name- Name of the new object. Can be null. If null, the new name will be get from the copied objectrestrictTo- A restrict list ofCopiableAmetysObjectauthorized to be copied- Returns:
- the created object
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCTitle
public String getDCTitle() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core title.- Specified by:
getDCTitlein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core title. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCTitle
public void setDCTitle(String title) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core title.- Specified by:
setDCTitlein interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
title- the Dublin Core title to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCCreator
public String getDCCreator() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core creator.- Specified by:
getDCCreatorin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core creator. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCCreator
public void setDCCreator(String creator) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core creator.- Specified by:
setDCCreatorin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
creator- the Dublin Core creator to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCSubject
public String[] getDCSubject() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core subject.- Specified by:
getDCSubjectin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core subject. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCSubject
public void setDCSubject(String[] subject) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core subject.- Specified by:
setDCSubjectin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
subject- the Dublin Core subject to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCDescription
public String getDCDescription() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core description.- Specified by:
getDCDescriptionin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core description. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCDescription
public void setDCDescription(String description) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core description.- Specified by:
setDCDescriptionin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
description- the Dublin Core description to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCPublisher
public String getDCPublisher() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core publisher.- Specified by:
getDCPublisherin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core publisher. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCPublisher
public void setDCPublisher(String publisher) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core publisher.- Specified by:
setDCPublisherin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
publisher- the Dublin Core publisher to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCContributor
public String getDCContributor() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core contributor.- Specified by:
getDCContributorin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core contributor. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCContributor
public void setDCContributor(String contributor) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core contributor.- Specified by:
setDCContributorin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
contributor- the Dublin Core contributor to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCDate
public Date getDCDate() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core date.- Specified by:
getDCDatein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core date. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCDate
public void setDCDate(Date date) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core date.- Specified by:
setDCDatein interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
date- the Dublin Core date to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCType
public String getDCType() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core type.- Specified by:
getDCTypein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core type. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
_getDefaultDCType
private String _getDefaultDCType()
-
setDCType
public void setDCType(String type) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core type. You can use a constant from org.ametys.plugins.repository.dublincore.DCMITypes.- Specified by:
setDCTypein interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
type- the Dublin Core type to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCFormat
public String getDCFormat() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core format.- Specified by:
getDCFormatin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core format. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCFormat
public void setDCFormat(String format) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core format.- Specified by:
setDCFormatin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
format- the Dublin Core format to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCIdentifier
public String getDCIdentifier() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core identifier.- Specified by:
getDCIdentifierin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core identifier. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCIdentifier
public void setDCIdentifier(String identifier) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core identifier.- Specified by:
setDCIdentifierin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
identifier- the Dublin Core identifier to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCSource
public String getDCSource() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core source.- Specified by:
getDCSourcein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core source. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCSource
public void setDCSource(String source) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core source.- Specified by:
setDCSourcein interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
source- the Dublin Core source to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCLanguage
public String getDCLanguage() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core language.- Specified by:
getDCLanguagein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core language. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCLanguage
public void setDCLanguage(String language) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core language.- Specified by:
setDCLanguagein interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
language- the Dublin Core language to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCRelation
public String getDCRelation() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core relation.- Specified by:
getDCRelationin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core relation. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCRelation
public void setDCRelation(String relation) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core relation.- Specified by:
setDCRelationin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
relation- the Dublin Core relation to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCCoverage
public String getDCCoverage() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core coverage.- Specified by:
getDCCoveragein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core coverage. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCCoverage
public void setDCCoverage(String coverage) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core coverage.- Specified by:
setDCCoveragein interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
coverage- the Dublin Core coverage to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCRights
public String getDCRights() throws AmetysRepositoryException
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core rights.- Specified by:
getDCRightsin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core rights. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setDCRights
public void setDCRights(String rights) throws AmetysRepositoryException
Description copied from interface:ModifiableDublinCoreAwareAmetysObjectSet the Dublin Core rights.- Specified by:
setDCRightsin interfaceModifiableDublinCoreAwareAmetysObject- Parameters:
rights- the Dublin Core rights to set. Can be null.- Throws:
AmetysRepositoryException- if an error occurs.
-
getCreationDate
public Date getCreationDate() throws UnknownMetadataException, AmetysRepositoryException
Description copied from interface:ResourceRetrieves the creation date.- Specified by:
getCreationDatein interfaceResource- Returns:
- the creation date.
- Throws:
UnknownMetadataException- if this property does not exist.AmetysRepositoryException- if an error occurs.
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:ModifiableResourceSet the creation date if this resource.- Specified by:
setCreationDatein interfaceModifiableResource- Parameters:
creationDate- the creation date.
-
getLastContributor
public UserIdentity getLastContributor() throws UnknownMetadataException, AmetysRepositoryException
Description copied from interface:ResourceRetrieves the login of the last contributor.- Specified by:
getLastContributorin interfaceResource- Returns:
- the login of the last contributor.
- Throws:
UnknownMetadataException- if this property does not exist.AmetysRepositoryException- if an error occurs.
-
setLastContributor
public void setLastContributor(UserIdentity lastContributor)
Description copied from interface:ModifiableResourceSet the last contributor of the resource- Specified by:
setLastContributorin interfaceModifiableResource- Parameters:
lastContributor- The last contributor
-
-