Class DublinCoreStorageServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageServiceImpl
-
- All Implemented Interfaces:
DublinCoreStorageService
,Adaptable
,Component
,Extensible
,TimestampedService
public class DublinCoreStorageServiceImpl extends DefaultComponent implements DublinCoreStorageService
DublinCore Storage Service Implementation.- Since:
- 10.2
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Fields inherited from interface org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageService
ID
-
-
Constructor Summary
Constructors Constructor Description DublinCoreStorageServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContributor(DocumentModel doc, Event event)
Adds a contributor to the document.protected List<String>
getSanitizedExistingContributors(DocumentModel doc)
Returns a "Sanitized" list of contributors according to NXP-25005void
setCreationDate(DocumentModel doc, Calendar creationDate)
Sets the document's creation date.void
setIssuedDate(DocumentModel doc, Calendar issuedDate)
Sets the document's issued date.void
setModificationDate(DocumentModel doc, Calendar modificationDate)
Sets the document's modified date.protected static String
stripPrincipalPrefix(String principal)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
Methods inherited from interface org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageService
setCreationDate, setModificationDate
-
-
-
-
Method Detail
-
setCreationDate
public void setCreationDate(DocumentModel doc, Calendar creationDate)
Description copied from interface:DublinCoreStorageService
Sets the document's creation date.- Specified by:
setCreationDate
in interfaceDublinCoreStorageService
-
setIssuedDate
public void setIssuedDate(DocumentModel doc, Calendar issuedDate)
Description copied from interface:DublinCoreStorageService
Sets the document's issued date.- Specified by:
setIssuedDate
in interfaceDublinCoreStorageService
-
setModificationDate
public void setModificationDate(DocumentModel doc, Calendar modificationDate)
Description copied from interface:DublinCoreStorageService
Sets the document's modified date.- Specified by:
setModificationDate
in interfaceDublinCoreStorageService
-
addContributor
public void addContributor(DocumentModel doc, Event event)
Description copied from interface:DublinCoreStorageService
Adds a contributor to the document.- Specified by:
addContributor
in interfaceDublinCoreStorageService
-
getSanitizedExistingContributors
protected List<String> getSanitizedExistingContributors(DocumentModel doc)
Returns a "Sanitized" list of contributors according to NXP-25005- Parameters:
doc
- The document from which the contributors list will be retrieved.- Returns:
- A list of contributors without repetitions and prefixed entries.
-
-