@Entity public class PrimaryDataDirectoryImplementation extends PrimaryDataDirectory
PrimaryDataDirectory.PATH_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
PrimaryDataDirectoryImplementation()
Default constructor for
PrimaryDataDirectoryImplementation is
necessary for PojoInstantiator of HIBERNATE. |
|
PrimaryDataDirectoryImplementation(PrimaryDataDirectory path,
java.lang.String name)
Constructor for PrimaryDataDirectoryImplementation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
existImpl(java.lang.String path)
Abstract function for implementation of
PrimaryDataDirectory.exist(String) |
java.lang.String |
getID()
Getter for the ID of this
PrimaryDataEntity. |
PrimaryDataDirectoryImplementation |
getParentDirectory()
Getter for the parent
PrimaryDataDirectory of this
PrimaryDataEntity . |
protected java.util.Map<java.security.Principal,java.util.List<EdalPermission>> |
getPermissionsImpl()
Abstract function for implementation of
PrimaryDataEntity.getPermissions(). |
protected PrimaryDataEntity |
getPrimaryDataEntityImpl(java.lang.String name)
Abstract function for the implementation of
PrimaryDataDirectory.getPrimaryDataEntity(String). |
protected java.util.SortedSet<PrimaryDataEntityVersionImplementation> |
getVersionList()
Getter for the field
versionList. |
protected java.util.SortedSet<PrimaryDataEntityVersion> |
getVersionsImpl()
Abstract function for implementation of
PrimaryDataEntity.getVersions(). |
protected java.util.List<PrimaryDataEntity> |
listPrimaryDataEntitiesImpl(java.util.Calendar currentVersionDate,
java.util.Calendar nextVersionDate)
Abstract function for the implementation of
PrimaryDataDirectory.listPrimaryDataEntities(). |
protected void |
moveImpl(PrimaryDataDirectory destinationDirectory)
Abstract function for implementation of
PrimaryDataEntity.move(PrimaryDataDirectory). |
protected java.util.List<PrimaryDataEntity> |
searchByDublinCoreElementImpl(EnumDublinCoreElements element,
UntypedData data,
boolean fuzzy,
boolean recursiveIntoSubdirectories)
Abstract function for implementation of
PrimaryDataDirectory.searchByDublinCoreElement(EnumDublinCoreElements, UntypedData, boolean, boolean)
. |
protected java.util.List<? extends PrimaryDataEntity> |
searchByKeywordImpl(java.lang.String keyword,
boolean fuzzy,
boolean recursiveIntoSubdirectories)
Abstract function for the implementation of
PrimaryDataDirectory.searchByKeyword(String, boolean, boolean) |
protected java.util.List<PrimaryDataEntity> |
searchByMetaDataImpl(MetaData query,
boolean fuzzy,
boolean recursiveIntoSubdirectories)
Abstract function for implementation of
PrimaryDataDirectory.searchByMetaData(MetaData, boolean, boolean)
. |
protected java.util.List<? extends PrimaryDataEntity> |
searchByPublicationStatusImpl(PublicationStatus publicationStatus)
Abstract function for the implementation of
PrimaryDataDirectory.searchByPublicationStatus(PublicationStatus)
. |
protected void |
setVersionList(java.util.SortedSet<PrimaryDataEntityVersionImplementation> versionList)
Setter for the field
versionList. |
protected void |
storeVersion(PrimaryDataEntityVersion publicVersion)
Abstract function for storing a new
PrimaryDataEntityVersion for
an PrimaryDataEntity object. |
createPrimaryDataDirectory, createPrimaryDataFile, exist, getAllPublishedEntities, getPrimaryDataEntity, getRootDirectory, listPrimaryDataEntities, searchByDublinCoreElement, searchByKeyword, searchByMetaData, searchByPublicationStatus, setMetaDataaddPublicReference, commitVersion, compareTo, delete, equals, getCurrentVersion, getImplementationProvider, getMetaData, getName, getPath, getPermissions, getPublicReferences, getSubject, getVersionByDate, getVersionByRevisionNumber, getVersions, grantPermission, hashCode, isDirectory, move, reloadOldDataType, rename, revokePermission, setCurrentVersion, setDefaultPermissions, setID, setParentDirectory, switchCurrentVersion, toStringprotected PrimaryDataDirectoryImplementation()
PrimaryDataDirectoryImplementation is
necessary for PojoInstantiator of HIBERNATE.public PrimaryDataDirectoryImplementation(PrimaryDataDirectory path, java.lang.String name) throws PrimaryDataEntityVersionException, PrimaryDataDirectoryException, MetaDataException
path - a PrimaryDataDirectory object.name - a String object.PrimaryDataEntityVersionException - if can not set current PrimaryDataEntityVersion.PrimaryDataDirectoryException - if no parent PrimaryDataDirectory is found.MetaDataException - if the MetaData object of the parent
PrimaryDataDirectory is not clone-ablepublic boolean existImpl(java.lang.String path)
throws PrimaryDataDirectoryException
PrimaryDataDirectory.exist(String)existImpl in class PrimaryDataDirectorypath - the name of the PrimaryDataEntity to check.true if there is already a PrimartyDataEntity with
the same path;false otherwisePrimaryDataDirectoryException - if unable to load all PrimaryDataEntity objects in
this PrimaryDataDirectory to check if the name
already exists.public java.lang.String getID()
PrimaryDataEntity.
HIBERNATE : constant length cause it is an
UUID
getID in class PrimaryDataEntityPrimaryDataEntityUUIDpublic PrimaryDataDirectoryImplementation getParentDirectory()
PrimaryDataDirectory of this
PrimaryDataEntity .
NOTE: It is not allowed to access the parent PrimaryDataDirectory of the root PrimaryDataDirectory!
HIBERNATE : FetchType.EAGER for getPath()
getParentDirectory in class PrimaryDataEntityPrimaryDataDirectory of this
PrimaryDataEntity.protected java.util.Map<java.security.Principal,java.util.List<EdalPermission>> getPermissionsImpl() throws PrimaryDataEntityException
PrimaryDataEntity.getPermissions().getPermissionsImpl in class PrimaryDataEntityList containing all
EdalPermissionPrimaryDataEntityException - if unable to load all permissions.protected PrimaryDataEntity getPrimaryDataEntityImpl(java.lang.String name) throws PrimaryDataDirectoryException
PrimaryDataDirectory.getPrimaryDataEntity(String).getPrimaryDataEntityImpl in class PrimaryDataDirectoryname - name of the PrimaryDataEntity in this
PrimaryDataDirectory.PrimaryDataEntity object.PrimaryDataDirectoryException - if no such PrimaryDataEntity exists.protected java.util.SortedSet<PrimaryDataEntityVersionImplementation> getVersionList()
versionList.SortedSet object.protected java.util.SortedSet<PrimaryDataEntityVersion> getVersionsImpl()
PrimaryDataEntity.getVersions().getVersionsImpl in class PrimaryDataEntitySortedSet containing all
PrimaryDataEntity.protected java.util.List<PrimaryDataEntity> listPrimaryDataEntitiesImpl(java.util.Calendar currentVersionDate, java.util.Calendar nextVersionDate) throws PrimaryDataDirectoryException
PrimaryDataDirectory.listPrimaryDataEntities().listPrimaryDataEntitiesImpl in class PrimaryDataDirectorycurrentVersionDate - the date of the current PrimaryDataEntityVersionnextVersionDate - the date of the next PrimaryDataEntityVersionList containing all PrimaryDataEntityPrimaryDataDirectoryException - if unable to load all PrimaryDataEntity objects in
this PrimaryDataDirectory.protected void moveImpl(PrimaryDataDirectory destinationDirectory)
PrimaryDataEntity.move(PrimaryDataDirectory).moveImpl in class PrimaryDataEntitydestinationDirectory - the new PrimaryDataDirectory for this
PrimaryDataEntity.protected java.util.List<PrimaryDataEntity> searchByDublinCoreElementImpl(EnumDublinCoreElements element, UntypedData data, boolean fuzzy, boolean recursiveIntoSubdirectories) throws PrimaryDataDirectoryException
PrimaryDataDirectory.searchByDublinCoreElement(EnumDublinCoreElements, UntypedData, boolean, boolean)
.searchByDublinCoreElementImpl in class PrimaryDataDirectoryelement - the EnumDublinCoreElements for querydata - UntypedData parameter for searchfuzzy - true: exact search; false: fuzzy
searchrecursiveIntoSubdirectories - true: include also all sub directories
recursively; false: search only in the current
PrimaryDataDirectory objectList of PrimaryDataEntity that
match the parameterPrimaryDataDirectoryException - if unable to find PrimaryDataEntity object or if
there are too much results.protected java.util.List<? extends PrimaryDataEntity> searchByKeywordImpl(java.lang.String keyword, boolean fuzzy, boolean recursiveIntoSubdirectories) throws PrimaryDataDirectoryException
PrimaryDataDirectoryPrimaryDataDirectory.searchByKeyword(String, boolean, boolean)searchByKeywordImpl in class PrimaryDataDirectorykeyword - the term to search over all elements.fuzzy - true: fuzzy search; false: exact
searchrecursiveIntoSubdirectories - true: include also all sub
PrimaryDataDirectory recursively; false
search only in the current PrimaryDataDirectory objectList of PrimaryDataEntity that
match the keyword.PrimaryDataDirectoryException - if unable to search for the keyword.protected java.util.List<PrimaryDataEntity> searchByMetaDataImpl(MetaData query, boolean fuzzy, boolean recursiveIntoSubdirectories) throws PrimaryDataDirectoryException, MetaDataException
PrimaryDataDirectory.searchByMetaData(MetaData, boolean, boolean)
.searchByMetaDataImpl in class PrimaryDataDirectoryquery - a MetaData object.fuzzy - true: fuzzy search; false: exact
searchrecursiveIntoSubdirectories - true: include also all sub
PrimaryDataDirectory recursively; false
search only in the current PrimaryDataDirectory objectList of PrimaryDataEntity that
match the MetaData parameterPrimaryDataDirectoryException - if unable to find PrimaryDataEntity object or if
there are too much results.MetaDataException - if there are non valid values for some MetaData
elements.protected java.util.List<? extends PrimaryDataEntity> searchByPublicationStatusImpl(PublicationStatus publicationStatus) throws PrimaryDataDirectoryException
PrimaryDataDirectory.searchByPublicationStatus(PublicationStatus)
.searchByPublicationStatusImpl in class PrimaryDataDirectorypublicationStatus - the PublicationStatus of the searched
PrimaryDataEntity.List of all PrimaryDataEntity with a
PublicReference.PrimaryDataDirectoryException - if unable to search for PublicationStatusprotected void setVersionList(java.util.SortedSet<PrimaryDataEntityVersionImplementation> versionList)
versionList.versionList - a SortedSet object.protected void storeVersion(PrimaryDataEntityVersion publicVersion) throws PrimaryDataEntityVersionException
PrimaryDataEntityVersion for
an PrimaryDataEntity object.storeVersion in class PrimaryDataEntitypublicVersion - the new PrimaryDataEntityVersion to store.PrimaryDataEntityVersionException - if unable to store PrimaryDataEntityVersion.