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.Remote
RMI Interface forPrimaryDataEntity
objects.
-
-
Method Summary
Modifier and Type Method Description void
addPublicReference(PersistentIdentifier identifierType, javax.security.auth.Subject subject)
void
delete(javax.security.auth.Subject subject)
PrimaryDataEntityVersionRmiInterface
getCurrentVersion(javax.security.auth.Subject subject)
java.lang.String
getID(javax.security.auth.Subject subject)
MetaData
getMetaData(javax.security.auth.Subject subject)
java.lang.String
getName(javax.security.auth.Subject subject)
PrimaryDataDirectoryRmiInterface
getParentDirectory(javax.security.auth.Subject subject)
java.lang.String
getPath(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)
PrimaryDataEntityVersionRmiInterface
getVersionByDate(java.util.Calendar date, javax.security.auth.Subject subject)
PrimaryDataEntityVersionRmiInterface
getVersionByRevisionNumber(long revisionNumber, javax.security.auth.Subject subject)
java.util.Collection<PrimaryDataEntityVersionRmiInterface>
getVersions(javax.security.auth.Subject subject)
void
grantPermission(java.security.Principal principal, GrantableMethods.Methods method, javax.security.auth.Subject subject)
boolean
isDirectory(javax.security.auth.Subject subject)
void
move(PrimaryDataDirectoryRmiInterface destinationDirectory, javax.security.auth.Subject subject)
void
rename(java.lang.String name, javax.security.auth.Subject subject)
void
revokePermission(java.security.Principal principal, GrantableMethods.Methods method, javax.security.auth.Subject subject)
void
setMetaData(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 thePublicReference
to 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 rootPrimaryDataDirectory
PrimaryDataDirectoryException
- 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:
MetaData
object of the currentPrimaryDataEntityVersion
of 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
PrimaryDataDirectory
of thisPrimaryDataEntity
. - Throws:
PrimaryDataDirectoryException
- if trying to access the parentPrimaryDataDirectory
of 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
String
to thePrimaryDataEntity
object - 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
List
containing 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
List
with all storedPublicReference
s of the currentPrimaryDataEntityVersion
of 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
SortedSet
containing 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 thePrimaryDataEntityVersion
subject
- the authenticated subject for check permission.- Returns:
- the specified
PrimaryDataEntityVersion
- Throws:
PrimaryDataEntityVersionException
- if there is noPrimaryDataEntityVersion
with 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 thePrimaryDataEntityVersion
subject
- the authenticated subject for check permission.- Returns:
- the specified
PrimaryDataEntityVersion
- Throws:
PrimaryDataEntityVersionException
- if there is noPrimaryDataEntityVersion
with 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.Methods
for 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:
true
when it is aPrimaryDataDirectory
;
false
otherwise.- 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 parentPrimaryDataDirectory
for 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 anPrimaryDataEntity
with 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.Methods
for 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 theEdalPermission
forPrimaryDataEntity.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 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)
-
-