Interface PrimaryDataDirectoryRmiInterface
-
- All Superinterfaces:
PrimaryDataEntityRmiInterface
,java.rmi.Remote
- All Known Implementing Classes:
PrimaryDataDirectoryWrapper
public interface PrimaryDataDirectoryRmiInterface extends PrimaryDataEntityRmiInterface
RMI Interface forPrimaryDataDirectory
objects.
-
-
Method Summary
Modifier and Type Method Description PrimaryDataDirectoryRmiInterface
createPrimaryDataDirectory(java.lang.String path, javax.security.auth.Subject subject, java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> defaultPermissions)
PrimaryDataFileRmiInterface
createPrimaryDataFile(java.lang.String name, javax.security.auth.Subject subject, java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> defaultPermissions)
boolean
exist(java.lang.String path, javax.security.auth.Subject subject)
java.util.List<PrimaryDataEntityRmiInterface>
getAllPublishedEntities(javax.security.auth.Subject subject)
PrimaryDataEntityRmiInterface
getPrimaryDataEntity(java.lang.String name, javax.security.auth.Subject subject)
java.util.List<PrimaryDataEntityRmiInterface>
listPrimaryDataEntities(javax.security.auth.Subject subject)
java.util.List<PrimaryDataEntityRmiInterface>
searchByDublinCoreElement(EnumDublinCoreElements element, UntypedData data, boolean fuzzy, boolean recursiveIntoSubdirectories, javax.security.auth.Subject subject)
java.util.List<PrimaryDataEntityRmiInterface>
searchByKeyword(java.lang.String keyword, boolean fuzzy, boolean recursiveIntoSubdirectories, javax.security.auth.Subject subject)
java.util.List<PrimaryDataEntityRmiInterface>
searchByMetaData(MetaData query, boolean fuzzy, boolean recursiveIntoSubdirectories, javax.security.auth.Subject subject)
java.util.List<PrimaryDataEntityRmiInterface>
searchByPublicationStatus(PublicationStatus publicationStatus, javax.security.auth.Subject subject)
void
setMetaData(MetaData metadata, javax.security.auth.Subject subject)
-
Methods inherited from interface de.ipk_gatersleben.bit.bi.edal.rmi.interfaces.PrimaryDataEntityRmiInterface
addPublicReference, delete, getCurrentVersion, getID, getMetaData, getName, getParentDirectory, getPath, getPermissions, getPublicReferences, getVersionByDate, getVersionByRevisionNumber, getVersions, grantPermission, isDirectory, move, rename, revokePermission
-
-
-
-
Method Detail
-
createPrimaryDataDirectory
PrimaryDataDirectoryRmiInterface createPrimaryDataDirectory(java.lang.String path, javax.security.auth.Subject subject, java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> defaultPermissions) throws java.rmi.RemoteException, PrimaryDataDirectoryException
- Parameters:
path
- the name of the newPrimaryDataDirectory
.subject
- the authenticated subject for check permission.defaultPermissions
- current default permissions.- Returns:
- the new
PrimaryDataDirectory
object.
null
if failed - Throws:
java.rmi.RemoteException
- if unable to call remote function.PrimaryDataDirectoryException
- if the currentPrimaryDataEntityVersion
of thisPrimaryDataDirectory
is marked as deleted or if there is already aPrimaryDataEntity
with the same name.- See Also:
PrimaryDataDirectory.createPrimaryDataDirectory(String)
-
createPrimaryDataFile
PrimaryDataFileRmiInterface createPrimaryDataFile(java.lang.String name, javax.security.auth.Subject subject, java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> defaultPermissions) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
name
- of the newPrimaryDataFile
object.subject
- the authenticated subject for check permission.defaultPermissions
- current default permissions- Returns:
- the new
PrimaryDataFile
.
null
if failed - Throws:
PrimaryDataDirectoryException
- if the currentPrimaryDataEntityVersion
of thisPrimaryDataDirectory
is marked as deleted or if there is already aPrimaryDataEntity
with the same name.java.rmi.RemoteException
- if unable to call remote function.- See Also:
PrimaryDataDirectory.createPrimaryDataFile(String)
-
exist
boolean exist(java.lang.String path, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataDirectoryException
- Parameters:
path
- the name of thePrimaryDataEntity
to check.subject
- the authenticated subject for check permission.- Returns:
true
if there is already a PrimartyDataEntity with the same path;
false
otherwise- Throws:
java.rmi.RemoteException
- if unable to call remote function.PrimaryDataDirectoryException
- if unable to load allPrimaryDataEntity
objects in thisPrimaryDataDirectory
to check if the name already exists.- See Also:
PrimaryDataDirectory.exist(String)
-
getAllPublishedEntities
java.util.List<PrimaryDataEntityRmiInterface> getAllPublishedEntities(javax.security.auth.Subject subject) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
subject
- the authenticated subject for check permission.- Returns:
- a
List
of allPrimaryDataEntity
with aPublicReference
. - Throws:
PrimaryDataDirectoryException
- if unable to load objcts.java.rmi.RemoteException
- if unable to call remote function.
-
getPrimaryDataEntity
PrimaryDataEntityRmiInterface getPrimaryDataEntity(java.lang.String name, javax.security.auth.Subject subject) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
name
- name of thePrimaryDataEntity
in thisPrimaryDataDirectory
.subject
- the authenticated subject for check permission.- Returns:
- the found
PrimaryDataEntity
object. - Throws:
PrimaryDataDirectoryException
- if no suchPrimaryDataEntity
exists.java.rmi.RemoteException
- if unable to call remote function.- See Also:
PrimaryDataDirectory.getPrimaryDataEntity(String)
-
listPrimaryDataEntities
java.util.List<PrimaryDataEntityRmiInterface> listPrimaryDataEntities(javax.security.auth.Subject subject) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
subject
- the authenticated subject for check permission.- Returns:
- an unmodifiable
List
containing allPrimaryDataEntity
- Throws:
PrimaryDataDirectoryException
- if unable to load allPrimaryDataEntity
objects in thisPrimaryDataDirectory
.java.rmi.RemoteException
- if unable to call remote function.- See Also:
PrimaryDataDirectory.listPrimaryDataEntities()
-
searchByDublinCoreElement
java.util.List<PrimaryDataEntityRmiInterface> searchByDublinCoreElement(EnumDublinCoreElements element, UntypedData data, boolean fuzzy, boolean recursiveIntoSubdirectories, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataDirectoryException
- Parameters:
element
- theEnumDublinCoreElements
for query.data
-UntypedData
parameter for search.fuzzy
-true
: exact search;
false
: fuzzy search.recursiveIntoSubdirectories
-true
: include also all sub directories recursively;
false
: search only in the currentPrimaryDataDirectory
object.subject
- the authenticated subject for check permission.- Returns:
- an unmodifiable
List
ofPrimaryDataEntity
that match the parameter. - Throws:
java.rmi.RemoteException
- if unable to call remote function.PrimaryDataDirectoryException
- if unable to findPrimaryDataEntity
object or if there are too much results.- See Also:
PrimaryDataDirectory.searchByDublinCoreElement(EnumDublinCoreElements, UntypedData, boolean, boolean)
-
searchByMetaData
java.util.List<PrimaryDataEntityRmiInterface> searchByMetaData(MetaData query, boolean fuzzy, boolean recursiveIntoSubdirectories, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataDirectoryException, MetaDataException
- Parameters:
query
- aMetaData
object for query.fuzzy
-true
: fuzzy search;
false
: exact searchrecursiveIntoSubdirectories
-true
: include also all subPrimaryDataDirectory
recursively;
false
search only in the currentPrimaryDataDirectory
objectsubject
- the authenticated subject for check permission.- Returns:
- a unmodifiable
List
ofPrimaryDataEntity
that match theMetaData
parameter - Throws:
java.rmi.RemoteException
- if unable to call remote function.PrimaryDataDirectoryException
- if unable to findPrimaryDataEntity
object or if there are too much results.MetaDataException
- if there are non valid values for someMetaData
elements.- See Also:
PrimaryDataDirectory.searchByMetaData(MetaData, boolean, boolean)
-
searchByPublicationStatus
java.util.List<PrimaryDataEntityRmiInterface> searchByPublicationStatus(PublicationStatus publicationStatus, javax.security.auth.Subject subject) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
subject
- the authenticated subject for check permission.publicationStatus
- thePublicationStatus
of the searchedPrimaryDataEntity
.- Returns:
- a
List
of allPrimaryDataEntity
with aPublicReference
. - Throws:
PrimaryDataDirectoryException
- if unable to search forPublicationStatus
java.rmi.RemoteException
- if unable to call remote function.- See Also:
PrimaryDataDirectory.searchByPublicationStatus(PublicationStatus)
-
searchByKeyword
java.util.List<PrimaryDataEntityRmiInterface> searchByKeyword(java.lang.String keyword, boolean fuzzy, boolean recursiveIntoSubdirectories, javax.security.auth.Subject subject) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
subject
- the authenticated subject for check permission.keyword
- the term to search over all elements.fuzzy
-true
: fuzzy search;false
: exact searchrecursiveIntoSubdirectories
-true
: include also all subPrimaryDataDirectory
recursively;false
search only in the currentPrimaryDataDirectory
object- Returns:
- a unmodifiable
List
ofPrimaryDataEntity
that match the keyword. - Throws:
PrimaryDataDirectoryException
- if unable to search for the keyword.java.rmi.RemoteException
- if unable to call remote function.- See Also:
PrimaryDataDirectory.searchByKeyword(String, boolean, boolean)
-
setMetaData
void setMetaData(MetaData metadata, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityVersionException, MetaDataException
- Specified by:
setMetaData
in interfacePrimaryDataEntityRmiInterface
- Parameters:
metadata
- the newMetaData
object to set.subject
- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException
- if unable to call remote function.PrimaryDataEntityVersionException
- if unable to storePrimaryDataEntityVersion
.MetaDataException
- if there are non valid value for element in theMetaData
object.- See Also:
PrimaryDataEntity.setMetaData(MetaData)
-
-