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 wrapPrimaryDataEntityVersion
functions on server side.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
myDataPort
PrimaryDataEntityVersion
myVersion
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrimaryDataEntityVersionWrapper(int dataPort, PrimaryDataEntityVersion version)
Constructor forPrimaryDataEntityVersionWrapper
using no SSL.
-
Method Summary
Modifier and Type Method Description java.util.Calendar
getCreationDate()
PrimaryDataEntityRmiInterface
getEntity()
MetaData
getMetaData()
java.security.Principal
getOwner()
PublicReference
getPublicReference(PersistentIdentifier identifierType)
java.util.List<PublicReference>
getPublicReferences()
java.lang.Long
getRevision()
java.util.Calendar
getRevisionDate()
boolean
isDeleted()
void
setAllReferencesPublic(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.RemoteException
Constructor forPrimaryDataEntityVersionWrapper
using no SSL.- Parameters:
dataPort
- the data port for the remote objects.version
- aPrimaryDataEntityVersionWrapper
object.- Throws:
java.rmi.RemoteException
- is unable to call remote function.
-
-
Method Detail
-
getEntity
public PrimaryDataEntityRmiInterface getEntity() throws java.rmi.RemoteException
- Specified by:
getEntity
in interfacePrimaryDataEntityVersionRmiInterface
- Returns:
- the corresponding
PrimaryDataEntity
to this version. - Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getMetaData
public MetaData getMetaData() throws java.rmi.RemoteException
- Specified by:
getMetaData
in interfacePrimaryDataEntityVersionRmiInterface
- Returns:
- the corresponding
MetaData
to this version. - Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getRevision
public java.lang.Long getRevision() throws java.rmi.RemoteException
- Specified by:
getRevision
in 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:
isDeleted
in 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:
getRevisionDate
in 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:
getCreationDate
in 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:
setAllReferencesPublic
in interfacePrimaryDataEntityVersionRmiInterface
- Parameters:
emailNotificationAddress
- the eMail address of the requesting user.releaseDate
- theDate
when the reference should be released- Throws:
PublicReferenceException
- if unable to request thePublicReference
to set public.java.rmi.RemoteException
- if unable to call remote function.
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences() throws java.rmi.RemoteException
- Specified by:
getPublicReferences
in interfacePrimaryDataEntityVersionRmiInterface
- Returns:
- read only
List
ofPublicReference
. - Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
getPublicReference
public PublicReference getPublicReference(PersistentIdentifier identifierType) throws java.rmi.RemoteException, PrimaryDataEntityVersionException
- Specified by:
getPublicReference
in interfacePrimaryDataEntityVersionRmiInterface
- Parameters:
identifierType
- of thePublicReference
- Returns:
- the found
PublicReference
- Throws:
java.rmi.RemoteException
- if unable to call remote function.PrimaryDataEntityVersionException
- if there is noPublicReference
with thisPersistentIdentifier
defined.
-
getOwner
public java.security.Principal getOwner() throws java.rmi.RemoteException
Description copied from interface:PrimaryDataEntityVersionRmiInterface
- Specified by:
getOwner
in interfacePrimaryDataEntityVersionRmiInterface
- Returns:
- the owner of this version
- Throws:
java.rmi.RemoteException
- if unable to call remote function.
-
-