Interface PrimaryDataDirectoryRmiInterface
-
- All Superinterfaces:
PrimaryDataEntityRmiInterface,java.rmi.Remote
- All Known Implementing Classes:
PrimaryDataDirectoryWrapper
public interface PrimaryDataDirectoryRmiInterface extends PrimaryDataEntityRmiInterface
RMI Interface forPrimaryDataDirectoryobjects.
-
-
Method Summary
Modifier and Type Method Description PrimaryDataDirectoryRmiInterfacecreatePrimaryDataDirectory(java.lang.String path, javax.security.auth.Subject subject, java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> defaultPermissions)PrimaryDataFileRmiInterfacecreatePrimaryDataFile(java.lang.String name, javax.security.auth.Subject subject, java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> defaultPermissions)booleanexist(java.lang.String path, javax.security.auth.Subject subject)java.util.List<PrimaryDataEntityRmiInterface>getAllPublishedEntities(javax.security.auth.Subject subject)PrimaryDataEntityRmiInterfacegetPrimaryDataEntity(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)voidsetMetaData(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
PrimaryDataDirectoryobject.
nullif failed - Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataDirectoryException- if the currentPrimaryDataEntityVersionof thisPrimaryDataDirectoryis marked as deleted or if there is already aPrimaryDataEntitywith 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 newPrimaryDataFileobject.subject- the authenticated subject for check permission.defaultPermissions- current default permissions- Returns:
- the new
PrimaryDataFile.
nullif failed - Throws:
PrimaryDataDirectoryException- if the currentPrimaryDataEntityVersionof thisPrimaryDataDirectoryis marked as deleted or if there is already aPrimaryDataEntitywith 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 thePrimaryDataEntityto check.subject- the authenticated subject for check permission.- Returns:
trueif there is already a PrimartyDataEntity with the same path;
falseotherwise- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataDirectoryException- if unable to load allPrimaryDataEntityobjects in thisPrimaryDataDirectoryto 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
Listof allPrimaryDataEntitywith 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 thePrimaryDataEntityin thisPrimaryDataDirectory.subject- the authenticated subject for check permission.- Returns:
- the found
PrimaryDataEntityobject. - Throws:
PrimaryDataDirectoryException- if no suchPrimaryDataEntityexists.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
Listcontaining allPrimaryDataEntity - Throws:
PrimaryDataDirectoryException- if unable to load allPrimaryDataEntityobjects 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- theEnumDublinCoreElementsfor query.data-UntypedDataparameter for search.fuzzy-true: exact search;
false: fuzzy search.recursiveIntoSubdirectories-true: include also all sub directories recursively;
false: search only in the currentPrimaryDataDirectoryobject.subject- the authenticated subject for check permission.- Returns:
- an unmodifiable
ListofPrimaryDataEntitythat match the parameter. - Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataDirectoryException- if unable to findPrimaryDataEntityobject 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- aMetaDataobject for query.fuzzy-true: fuzzy search;
false: exact searchrecursiveIntoSubdirectories-true: include also all subPrimaryDataDirectoryrecursively;
falsesearch only in the currentPrimaryDataDirectoryobjectsubject- the authenticated subject for check permission.- Returns:
- a unmodifiable
ListofPrimaryDataEntitythat match theMetaDataparameter - Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataDirectoryException- if unable to findPrimaryDataEntityobject or if there are too much results.MetaDataException- if there are non valid values for someMetaDataelements.- 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- thePublicationStatusof the searchedPrimaryDataEntity.- Returns:
- a
Listof allPrimaryDataEntitywith aPublicReference. - Throws:
PrimaryDataDirectoryException- if unable to search forPublicationStatusjava.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 subPrimaryDataDirectoryrecursively;falsesearch only in the currentPrimaryDataDirectoryobject- Returns:
- a unmodifiable
ListofPrimaryDataEntitythat 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:
setMetaDatain interfacePrimaryDataEntityRmiInterface- Parameters:
metadata- the newMetaDataobject 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 theMetaDataobject.- See Also:
PrimaryDataEntity.setMetaData(MetaData)
-
-