Class PrimaryDataEntityVersionWrapper
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- de.ipk_gatersleben.bit.bi.edal.rmi.server.wrapper.PrimaryDataEntityVersionWrapper
-
- All Implemented Interfaces:
PrimaryDataEntityVersionRmiInterface,java.io.Serializable,java.rmi.Remote
public class PrimaryDataEntityVersionWrapper extends java.rmi.server.UnicastRemoteObject implements PrimaryDataEntityVersionRmiInterface
Wrapper class to wrapPrimaryDataEntityVersionfunctions on server side.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intmyDataPortPrimaryDataEntityVersionmyVersion
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrimaryDataEntityVersionWrapper(int dataPort, PrimaryDataEntityVersion version)Constructor forPrimaryDataEntityVersionWrapperusing no SSL.
-
Method Summary
Modifier and Type Method Description java.util.CalendargetCreationDate()PrimaryDataEntityRmiInterfacegetEntity()MetaDatagetMetaData()java.security.PrincipalgetOwner()PublicReferencegetPublicReference(PersistentIdentifier identifierType)java.util.List<PublicReference>getPublicReferences()java.lang.LonggetRevision()java.util.CalendargetRevisionDate()booleanisDeleted()voidsetAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate)-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Field Detail
-
myVersion
public PrimaryDataEntityVersion myVersion
-
myDataPort
public int myDataPort
-
-
Constructor Detail
-
PrimaryDataEntityVersionWrapper
protected PrimaryDataEntityVersionWrapper(int dataPort, PrimaryDataEntityVersion version) throws java.rmi.RemoteExceptionConstructor forPrimaryDataEntityVersionWrapperusing no SSL.- Parameters:
dataPort- the data port for the remote objects.version- aPrimaryDataEntityVersionWrapperobject.- Throws:
java.rmi.RemoteException- is unable to call remote function.
-
-
Method Detail
-
getEntity
public PrimaryDataEntityRmiInterface getEntity() throws java.rmi.RemoteException
- Specified by:
getEntityin interfacePrimaryDataEntityVersionRmiInterface- Returns:
- the corresponding
PrimaryDataEntityto this version. - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getMetaData
public MetaData getMetaData() throws java.rmi.RemoteException
- Specified by:
getMetaDatain interfacePrimaryDataEntityVersionRmiInterface- Returns:
- the corresponding
MetaDatato this version. - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getRevision
public java.lang.Long getRevision() throws java.rmi.RemoteException- Specified by:
getRevisionin interfacePrimaryDataEntityVersionRmiInterface- Returns:
- the revision number of this version.
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
isDeleted
public boolean isDeleted() throws java.rmi.RemoteException- Specified by:
isDeletedin interfacePrimaryDataEntityVersionRmiInterface- Returns:
- if the version is marked as deleted.
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getRevisionDate
public java.util.Calendar getRevisionDate() throws java.rmi.RemoteException- Specified by:
getRevisionDatein interfacePrimaryDataEntityVersionRmiInterface- Returns:
- the revision date of this version.
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getCreationDate
public java.util.Calendar getCreationDate() throws java.rmi.RemoteException- Specified by:
getCreationDatein interfacePrimaryDataEntityVersionRmiInterface- Returns:
- the creation date of this version.
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
setAllReferencesPublic
public void setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate) throws PublicReferenceException, java.rmi.RemoteException- Specified by:
setAllReferencesPublicin interfacePrimaryDataEntityVersionRmiInterface- Parameters:
emailNotificationAddress- the eMail address of the requesting user.releaseDate- theDatewhen the reference should be released- Throws:
PublicReferenceException- if unable to request thePublicReferenceto set public.java.rmi.RemoteException- if unable to call remote function.
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences() throws java.rmi.RemoteException
- Specified by:
getPublicReferencesin interfacePrimaryDataEntityVersionRmiInterface- Returns:
- read only
ListofPublicReference. - Throws:
java.rmi.RemoteException- if unable to call remote function.
-
getPublicReference
public PublicReference getPublicReference(PersistentIdentifier identifierType) throws java.rmi.RemoteException, PrimaryDataEntityVersionException
- Specified by:
getPublicReferencein interfacePrimaryDataEntityVersionRmiInterface- Parameters:
identifierType- of thePublicReference- Returns:
- the found
PublicReference - Throws:
java.rmi.RemoteException- if unable to call remote function.PrimaryDataEntityVersionException- if there is noPublicReferencewith thisPersistentIdentifierdefined.
-
getOwner
public java.security.Principal getOwner() throws java.rmi.RemoteExceptionDescription copied from interface:PrimaryDataEntityVersionRmiInterface- Specified by:
getOwnerin interfacePrimaryDataEntityVersionRmiInterface- Returns:
- the owner of this version
- Throws:
java.rmi.RemoteException- if unable to call remote function.
-
-