Package org.apache.jackrabbit.rmi.server
Class ServerVersionManager
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerVersionManager
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteVersionManager
public class ServerVersionManager extends ServerObject implements RemoteVersionManager
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerVersionManager(Session session, VersionManager manager, RemoteAdapterFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelMerge(String absPath, String versionIdentifier)
RemoteVersion
checkin(String absPath)
Remote version of theVersionManager.checkin(String)
method.void
checkout(String absPath)
Remote version of theVersionManager.checkout(String)
method.RemoteVersion
checkpoint(String absPath)
Remote version of theVersionManager.checkpoint(String)
method.RemoteNode
createActivity(String title)
RemoteNode
createConfiguration(String absPath)
void
doneMerge(String absPath, String versionIdentifier)
RemoteNode
getActivity()
RemoteVersion
getBaseVersion(String absPath)
RemoteVersionHistory
getVersionHistory(String absPath)
boolean
isCheckedOut(String absPath)
Remote version of theVersionManager.isCheckedOut(String)
method.RemoteIterator
merge(String activityNodeIdentifier)
RemoteIterator
merge(String absPath, String srcWorkspace, boolean bestEffort)
RemoteIterator
merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow)
void
removeActivity(String activityNodeIdentifier)
void
restore(String[] versionIdentifiers, boolean removeExisting)
void
restore(String versionIdentifier, boolean removeExisting)
void
restore(String absPath, String versionName, boolean removeExisting)
void
restoreByLabel(String absPath, String versionLabel, boolean removeExisting)
void
restoreVI(String absPath, String versionIdentifier, boolean removeExisting)
RemoteNode
setActivity(String activityNodeIdentifier)
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerVersionManager
public ServerVersionManager(Session session, VersionManager manager, RemoteAdapterFactory factory) throws RemoteException
- Throws:
RemoteException
-
-
Method Detail
-
checkin
public RemoteVersion checkin(String absPath) throws RepositoryException, RemoteException
Description copied from interface:RemoteVersionManager
Remote version of theVersionManager.checkin(String)
method.- Specified by:
checkin
in interfaceRemoteVersionManager
- Parameters:
absPath
- an absolute path.- Returns:
- the created version.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
checkout
public void checkout(String absPath) throws RepositoryException
Description copied from interface:RemoteVersionManager
Remote version of theVersionManager.checkout(String)
method.- Specified by:
checkout
in interfaceRemoteVersionManager
- Parameters:
absPath
- an absolute path.- Throws:
RepositoryException
- on repository errors
-
checkpoint
public RemoteVersion checkpoint(String absPath) throws RepositoryException, RemoteException
Description copied from interface:RemoteVersionManager
Remote version of theVersionManager.checkpoint(String)
method.- Specified by:
checkpoint
in interfaceRemoteVersionManager
- Parameters:
absPath
- an absolute path.- Returns:
- the created version.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
createActivity
public RemoteNode createActivity(String title) throws RepositoryException, RemoteException
- Specified by:
createActivity
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
createConfiguration
public RemoteNode createConfiguration(String absPath) throws RepositoryException, RemoteException
- Specified by:
createConfiguration
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
getActivity
public RemoteNode getActivity() throws RepositoryException, RemoteException
- Specified by:
getActivity
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
getBaseVersion
public RemoteVersion getBaseVersion(String absPath) throws RepositoryException, RemoteException
- Specified by:
getBaseVersion
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
getVersionHistory
public RemoteVersionHistory getVersionHistory(String absPath) throws RepositoryException, RemoteException
- Specified by:
getVersionHistory
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
isCheckedOut
public boolean isCheckedOut(String absPath) throws RepositoryException
Description copied from interface:RemoteVersionManager
Remote version of theVersionManager.isCheckedOut(String)
method.- Specified by:
isCheckedOut
in interfaceRemoteVersionManager
- Parameters:
absPath
- an absolute path.- Returns:
- a boolean
- Throws:
RepositoryException
- on repository errors
-
merge
public RemoteIterator merge(String absPath, String srcWorkspace, boolean bestEffort) throws RepositoryException, RemoteException
- Specified by:
merge
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
merge
public RemoteIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow) throws RepositoryException, RemoteException
- Specified by:
merge
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
restore
public void restore(String absPath, String versionName, boolean removeExisting) throws RepositoryException
- Specified by:
restore
in interfaceRemoteVersionManager
- Throws:
RepositoryException
-
restoreByLabel
public void restoreByLabel(String absPath, String versionLabel, boolean removeExisting) throws RepositoryException
- Specified by:
restoreByLabel
in interfaceRemoteVersionManager
- Throws:
RepositoryException
-
cancelMerge
public void cancelMerge(String absPath, String versionIdentifier) throws RepositoryException, RemoteException
- Specified by:
cancelMerge
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
doneMerge
public void doneMerge(String absPath, String versionIdentifier) throws RepositoryException, RemoteException
- Specified by:
doneMerge
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
restore
public void restore(String[] versionIdentifiers, boolean removeExisting) throws RepositoryException, RemoteException
- Specified by:
restore
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
restore
public void restore(String versionIdentifier, boolean removeExisting) throws RepositoryException, RemoteException
- Specified by:
restore
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
setActivity
public RemoteNode setActivity(String activityNodeIdentifier) throws RepositoryException, RemoteException
- Specified by:
setActivity
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
removeActivity
public void removeActivity(String activityNodeIdentifier) throws RepositoryException, RemoteException
- Specified by:
removeActivity
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
merge
public RemoteIterator merge(String activityNodeIdentifier) throws RepositoryException, RemoteException
- Specified by:
merge
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
restoreVI
public void restoreVI(String absPath, String versionIdentifier, boolean removeExisting) throws RepositoryException, RemoteException
- Specified by:
restoreVI
in interfaceRemoteVersionManager
- Throws:
RepositoryException
RemoteException
-
-