Interface PrimaryDataEntityRmiInterface
-
- All Superinterfaces:
java.rmi.Remote
- All Known Subinterfaces:
PrimaryDataDirectoryRmiInterface,PrimaryDataFileRmiInterface
- All Known Implementing Classes:
PrimaryDataDirectoryWrapper,PrimaryDataEntityWrapper,PrimaryDataFileWrapper
public interface PrimaryDataEntityRmiInterface extends java.rmi.RemoteRMI Interface forPrimaryDataEntityobjects.
-
-
Method Summary
Modifier and Type Method Description voidaddPublicReference(PersistentIdentifier identifierType, javax.security.auth.Subject subject)voiddelete(javax.security.auth.Subject subject)PrimaryDataEntityVersionRmiInterfacegetCurrentVersion(javax.security.auth.Subject subject)java.lang.StringgetID(javax.security.auth.Subject subject)MetaDatagetMetaData(javax.security.auth.Subject subject)java.lang.StringgetName(javax.security.auth.Subject subject)PrimaryDataDirectoryRmiInterfacegetParentDirectory(javax.security.auth.Subject subject)java.lang.StringgetPath(javax.security.auth.Subject subject)java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>>getPermissions(javax.security.auth.Subject subject)java.util.List<PublicReference>getPublicReferences(javax.security.auth.Subject subject)PrimaryDataEntityVersionRmiInterfacegetVersionByDate(java.util.Calendar date, javax.security.auth.Subject subject)PrimaryDataEntityVersionRmiInterfacegetVersionByRevisionNumber(long revisionNumber, javax.security.auth.Subject subject)java.util.Collection<PrimaryDataEntityVersionRmiInterface>getVersions(javax.security.auth.Subject subject)voidgrantPermission(java.security.Principal principal, GrantableMethods.Methods method, javax.security.auth.Subject subject)booleanisDirectory(javax.security.auth.Subject subject)voidmove(PrimaryDataDirectoryRmiInterface destinationDirectory, javax.security.auth.Subject subject)voidrename(java.lang.String name, javax.security.auth.Subject subject)voidrevokePermission(java.security.Principal principal, GrantableMethods.Methods method, javax.security.auth.Subject subject)voidsetMetaData(MetaData metadata, javax.security.auth.Subject subject)
-
-
-
Method Detail
-
addPublicReference
void addPublicReference(PersistentIdentifier identifierType, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityException
- Parameters:
identifierType- the type of the new Identifier.subject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityException- if unable to add thePublicReferenceto thisPrimaryDataEntity.
-
delete
void delete(javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityVersionException, PrimaryDataDirectoryException- Parameters:
subject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityVersionException- if trying to delete the rootPrimaryDataDirectoryPrimaryDataDirectoryException- if trying to delete a non-currentPrimaryDataEntityVersion.- See Also:
PrimaryDataEntity.delete()
-
getCurrentVersion
PrimaryDataEntityVersionRmiInterface getCurrentVersion(javax.security.auth.Subject subject) throws java.rmi.RemoteException
- Parameters:
subject- the authenticated subject for check permission..- Returns:
- the currently set
PrimaryDataEntityVersion - Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getCurrentVersion()
-
getID
java.lang.String getID(javax.security.auth.Subject subject) throws java.rmi.RemoteException- Parameters:
subject- the authenticated subject for check permission.- Returns:
- the ID of this
PrimaryDataEntity. - Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getID()
-
getMetaData
MetaData getMetaData(javax.security.auth.Subject subject) throws java.rmi.RemoteException
- Parameters:
subject- the authenticated subject for check permission.- Returns:
MetaDataobject of the currentPrimaryDataEntityVersionof thisPrimaryDataEntity- Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getMetaData()
-
getName
java.lang.String getName(javax.security.auth.Subject subject) throws java.rmi.RemoteException- Parameters:
subject- the authenticated subject for check permission.- Returns:
- the file name.
- Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getName()
-
getParentDirectory
PrimaryDataDirectoryRmiInterface getParentDirectory(javax.security.auth.Subject subject) throws PrimaryDataDirectoryException, java.rmi.RemoteException
- Parameters:
subject- the authenticated subject for check permission.- Returns:
- the parent
PrimaryDataDirectoryof thisPrimaryDataEntity. - Throws:
PrimaryDataDirectoryException- if trying to access the parentPrimaryDataDirectoryof the rootPrimaryDataDirectory.java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getParentDirectory()
-
getPath
java.lang.String getPath(javax.security.auth.Subject subject) throws java.rmi.RemoteException- Parameters:
subject- the authenticated subject for check permission.- Returns:
- the complete path as
Stringto thePrimaryDataEntityobject - Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getPath()
-
getPermissions
java.util.Map<java.security.Principal,java.util.List<GrantableMethods.Methods>> getPermissions(javax.security.auth.Subject subject) throws PrimaryDataEntityException, java.rmi.RemoteException
- Parameters:
subject- the authenticated subject for check permission.- Returns:
- an unmodifiable
Listcontaining allEdalPermission. - Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityException- if unable to load permissions
-
getPublicReferences
java.util.List<PublicReference> getPublicReferences(javax.security.auth.Subject subject) throws java.rmi.RemoteException
- Parameters:
subject- the authenticated subject for check permission.- Returns:
- a
Listwith all storedPublicReferences of the currentPrimaryDataEntityVersionof thisPrimaryDataEntity. - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getVersions
java.util.Collection<PrimaryDataEntityVersionRmiInterface> getVersions(javax.security.auth.Subject subject) throws java.rmi.RemoteException
- Parameters:
subject- the authenticated subject for check permission.- Returns:
- an unmodifiable
SortedSetcontaining allPrimaryDataEntity - Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getVersions()
-
getVersionByDate
PrimaryDataEntityVersionRmiInterface getVersionByDate(java.util.Calendar date, javax.security.auth.Subject subject) throws PrimaryDataEntityVersionException, java.rmi.RemoteException
- Parameters:
date- the date of thePrimaryDataEntityVersionsubject- the authenticated subject for check permission.- Returns:
- the specified
PrimaryDataEntityVersion - Throws:
PrimaryDataEntityVersionException- if there is noPrimaryDataEntityVersionwith this version stored.java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getVersionByDate(Calendar)
-
getVersionByRevisionNumber
PrimaryDataEntityVersionRmiInterface getVersionByRevisionNumber(long revisionNumber, javax.security.auth.Subject subject) throws PrimaryDataEntityVersionException, java.rmi.RemoteException
- Parameters:
revisionNumber- the number of thePrimaryDataEntityVersionsubject- the authenticated subject for check permission.- Returns:
- the specified
PrimaryDataEntityVersion - Throws:
PrimaryDataEntityVersionException- if there is noPrimaryDataEntityVersionwith this version stored.java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.getVersionByRevisionNumber(long)
-
grantPermission
void grantPermission(java.security.Principal principal, GrantableMethods.Methods method, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityException- Parameters:
principal- to grant this methodmethod-GrantableMethods.Methodsfor a the methodsubject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityException- if can not found method to grant.- See Also:
PrimaryDataEntity.grantPermission(Principal, de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods)
-
isDirectory
boolean isDirectory(javax.security.auth.Subject subject) throws java.rmi.RemoteException- Parameters:
subject- the authenticated subject for check permission.- Returns:
truewhen it is aPrimaryDataDirectory;
falseotherwise.- Throws:
java.rmi.RemoteException- if unable to call remote function.- See Also:
PrimaryDataEntity.isDirectory()
-
move
void move(PrimaryDataDirectoryRmiInterface destinationDirectory, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataDirectoryException
- Parameters:
destinationDirectory- the new parentPrimaryDataDirectoryfor thisPrimaryDataEntity.subject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataDirectoryException- if trying to move the rootPrimaryDataDirectory.- See Also:
PrimaryDataEntity.move(de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataDirectory)
-
rename
void rename(java.lang.String name, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityVersionException, PrimaryDataDirectoryException- Parameters:
name- the new name for thisPrimaryDataEntity.subject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityVersionException- if unable to set the newPrimaryDataEntityVersion.PrimaryDataDirectoryException- if anPrimaryDataEntitywith this name already exists.- See Also:
PrimaryDataEntity.rename(String)
-
revokePermission
void revokePermission(java.security.Principal principal, GrantableMethods.Methods method, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityException- Parameters:
principal- to revoke this method.method-GrantableMethods.Methodsfor a the method.subject- the authenticated subject for check permission.- Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityException- if trying to revoke theEdalPermissionforPrimaryDataEntity.grantPermission(Principal, de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods)of your ownPrimaryDataEntity.- See Also:
PrimaryDataEntity.revokePermission(Principal, de.ipk_gatersleben.bit.bi.edal.aspectj.security.GrantableMethods.Methods)
-
setMetaData
void setMetaData(MetaData metadata, javax.security.auth.Subject subject) throws java.rmi.RemoteException, PrimaryDataEntityVersionException, MetaDataException
- 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)
-
-