Package org.apache.jackrabbit.rmi.server
Interface RemoteAdapterFactory
-
- All Known Implementing Classes:
ServerAdapterFactory
@Deprecated(forRemoval=true) public interface RemoteAdapterFactory
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Factory interface for creating remote adapters for local resources. This interface defines how the local JCR interfaces are adapted to remote JCR-RMI references. The adaption mechanism can be modified (for example to add extra features) by changing the remote adapter factory used by the repository server.
Note that the
ServerObject
base class provides a number of utility methods designed to work with a remote adapter factory. Adapter implementations may want to inherit that functionality by subclassing from ServerObject.- See Also:
LocalAdapterFactory
,ServerAdapterFactory
,ServerObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description int
getPortNumber()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the port number to which the server objects created by this factory are bound.RemoteAccessControlEntry
getRemoteAccessControlEntry(AccessControlEntry local)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteAccessControlEntry[]
getRemoteAccessControlEntry(AccessControlEntry[] local)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteAccessControlManager
getRemoteAccessControlManager(AccessControlManager acm)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteAccessControlPolicy
getRemoteAccessControlPolicy(AccessControlPolicy local)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteAccessControlPolicy[]
getRemoteAccessControlPolicy(AccessControlPolicy[] local)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteIterator
getRemoteAccessControlPolicyIterator(AccessControlPolicyIterator iterator)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteEventCollection
getRemoteEvent(long listenerId, EventIterator events)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local events.RemoteItem
getRemoteItem(Item item)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local item.RemoteItemDefinition
getRemoteItemDefinition(ItemDefinition def)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local item definition.RemoteLock
getRemoteLock(Lock lock)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local lock.RemoteLockManager
getRemoteLockManager(LockManager lockManager)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteNamespaceRegistry
getRemoteNamespaceRegistry(NamespaceRegistry registry)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local namespace registry.RemoteNode
getRemoteNode(Node node)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node.RemoteNodeDefinition
getRemoteNodeDefinition(NodeDefinition def)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node definition.RemoteIterator
getRemoteNodeIterator(NodeIterator iterator)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node iterator.RemoteNodeType
getRemoteNodeType(NodeType type)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node type.RemoteIterator
getRemoteNodeTypeIterator(NodeTypeIterator iterator)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node type iterator.RemoteNodeTypeManager
getRemoteNodeTypeManager(NodeTypeManager manager)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node type manager.RemoteObservationManager
getRemoteObservationManager(ObservationManager observationManager)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local observation manager.RemotePrincipal
getRemotePrincipal(Principal principal)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteIterator
getRemotePrincipalIterator(Iterator<Principal> principals)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemotePrivilege
getRemotePrivilege(Privilege local)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemotePrivilege[]
getRemotePrivilege(Privilege[] local)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.RemoteProperty
getRemoteProperty(Property property)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local property.RemotePropertyDefinition
getRemotePropertyDefinition(PropertyDefinition def)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local property definition.RemoteIterator
getRemotePropertyIterator(PropertyIterator iterator)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local property iterator.RemoteQuery
getRemoteQuery(Query query)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query.RemoteQueryManager
getRemoteQueryManager(Session session, QueryManager manager)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query manager.RemoteQueryResult
getRemoteQueryResult(QueryResult result)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query result.RemoteRepository
getRemoteRepository(Repository repository)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local repository.RemoteRow
getRemoteRow(Row row)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query row.RemoteIterator
getRemoteRowIterator(RowIterator iterator)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local row iterator.RemoteSession
getRemoteSession(Session session)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local session.RemoteVersion
getRemoteVersion(Version version)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local version.RemoteVersionHistory
getRemoteVersionHistory(VersionHistory versionHistory)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local version history.RemoteIterator
getRemoteVersionIterator(VersionIterator iterator)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local version iterator.RemoteVersionManager
getRemoteVersionManager(Session session, VersionManager versionManager)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteWorkspace
getRemoteWorkspace(Workspace workspace)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local workspace.
-
-
-
Method Detail
-
getPortNumber
int getPortNumber()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the port number to which the server objects created by this factory are bound. This method is mostly used internally by theServerObject
constructor to determine which port number to use.- Returns:
- port number, or 0 for a random port
-
getRemoteRepository
RemoteRepository getRemoteRepository(Repository repository) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local repository.- Parameters:
repository
- local repository- Returns:
- remote repository adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteSession
RemoteSession getRemoteSession(Session session) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local session.- Parameters:
session
- local session- Returns:
- remote session adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteWorkspace
RemoteWorkspace getRemoteWorkspace(Workspace workspace) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local workspace.- Parameters:
workspace
- local workspace- Returns:
- remote workspace adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteObservationManager
RemoteObservationManager getRemoteObservationManager(ObservationManager observationManager) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local observation manager.- Parameters:
observationManager
- local observation manager- Returns:
- remote observation manager adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNamespaceRegistry
RemoteNamespaceRegistry getRemoteNamespaceRegistry(NamespaceRegistry registry) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local namespace registry.- Parameters:
registry
- local namespace registry- Returns:
- remote namespace registry adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNodeTypeManager
RemoteNodeTypeManager getRemoteNodeTypeManager(NodeTypeManager manager) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node type manager.- Parameters:
manager
- local node type manager- Returns:
- remote node type manager adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteItem
RemoteItem getRemoteItem(Item item) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local item. This method will return an adapter that implements only theItem
interface. The caller may want to introspect the local item to determine whether to use either thegetRemoteNode
or thegetRemoteProperty
method instead.- Parameters:
item
- local item- Returns:
- remote item adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteProperty
RemoteProperty getRemoteProperty(Property property) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local property.- Parameters:
property
- local property- Returns:
- remote property adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNode
RemoteNode getRemoteNode(Node node) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node.- Parameters:
node
- local node- Returns:
- remote node adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteVersion
RemoteVersion getRemoteVersion(Version version) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local version.- Parameters:
version
- local version- Returns:
- remote version adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteVersionHistory
RemoteVersionHistory getRemoteVersionHistory(VersionHistory versionHistory) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local version history.- Parameters:
versionHistory
- local version history- Returns:
- remote version history adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNodeType
RemoteNodeType getRemoteNodeType(NodeType type) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node type.- Parameters:
type
- local node type- Returns:
- remote node type adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteItemDefinition
RemoteItemDefinition getRemoteItemDefinition(ItemDefinition def) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local item definition. This method will return an adapter that implements only theItemDefinition
interface. The caller may want to introspect the local item definition to determine whether to use either thegetRemoteNodeDef
or thegetRemotePropertyDef
method instead.- Parameters:
def
- local item definition- Returns:
- remote item definition adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNodeDefinition
RemoteNodeDefinition getRemoteNodeDefinition(NodeDefinition def) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node definition.- Parameters:
def
- local node definition- Returns:
- remote node definition adapter
- Throws:
RemoteException
- on RMI errors
-
getRemotePropertyDefinition
RemotePropertyDefinition getRemotePropertyDefinition(PropertyDefinition def) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local property definition.- Parameters:
def
- local property definition- Returns:
- remote property definition adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteLock
RemoteLock getRemoteLock(Lock lock) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local lock.- Parameters:
lock
- local lock- Returns:
- remote lock adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteQueryManager
RemoteQueryManager getRemoteQueryManager(Session session, QueryManager manager) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query manager.- Parameters:
session
- current sessionmanager
- local query manager- Returns:
- remote query manager adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteQuery
RemoteQuery getRemoteQuery(Query query) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query.- Parameters:
query
- local query- Returns:
- remote query adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteQueryResult
RemoteQueryResult getRemoteQueryResult(QueryResult result) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query result.- Parameters:
result
- local query result- Returns:
- remote query result adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteRow
RemoteRow getRemoteRow(Row row) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local query row.- Parameters:
row
- local query row- Returns:
- remote query row adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteEvent
RemoteEventCollection getRemoteEvent(long listenerId, EventIterator events) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local events.- Parameters:
listenerId
- The listener identifier to which the events are to be dispatched.events
- the local events- Returns:
- remote event iterator adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNodeIterator
RemoteIterator getRemoteNodeIterator(NodeIterator iterator) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node iterator.- Parameters:
iterator
- local node iterator- Returns:
- remote iterator adapter
- Throws:
RemoteException
- on RMI errors
-
getRemotePropertyIterator
RemoteIterator getRemotePropertyIterator(PropertyIterator iterator) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local property iterator.- Parameters:
iterator
- local property iterator- Returns:
- remote iterator adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteVersionIterator
RemoteIterator getRemoteVersionIterator(VersionIterator iterator) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local version iterator.- Parameters:
iterator
- local version iterator- Returns:
- remote iterator adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteNodeTypeIterator
RemoteIterator getRemoteNodeTypeIterator(NodeTypeIterator iterator) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local node type iterator.- Parameters:
iterator
- local node type iterator- Returns:
- remote iterator adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteRowIterator
RemoteIterator getRemoteRowIterator(RowIterator iterator) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local row iterator.- Parameters:
iterator
- local row iterator- Returns:
- remote iterator adapter
- Throws:
RemoteException
- on RMI errors
-
getRemoteLockManager
RemoteLockManager getRemoteLockManager(LockManager lockManager) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
RemoteException
-
getRemoteVersionManager
RemoteVersionManager getRemoteVersionManager(Session session, VersionManager versionManager) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
RemoteException
-
getRemoteAccessControlManager
RemoteAccessControlManager getRemoteAccessControlManager(AccessControlManager acm) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Parameters:
acm
- local access control manager- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemotePrivilege
RemotePrivilege getRemotePrivilege(Privilege local) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemotePrivilege
RemotePrivilege[] getRemotePrivilege(Privilege[] local) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemoteAccessControlPolicy
RemoteAccessControlPolicy getRemoteAccessControlPolicy(AccessControlPolicy local) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemoteAccessControlPolicy
RemoteAccessControlPolicy[] getRemoteAccessControlPolicy(AccessControlPolicy[] local) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemoteAccessControlPolicyIterator
RemoteIterator getRemoteAccessControlPolicyIterator(AccessControlPolicyIterator iterator) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemoteAccessControlEntry
RemoteAccessControlEntry getRemoteAccessControlEntry(AccessControlEntry local) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemoteAccessControlEntry
RemoteAccessControlEntry[] getRemoteAccessControlEntry(AccessControlEntry[] local) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemotePrincipal
RemotePrincipal getRemotePrincipal(Principal principal) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
getRemotePrincipalIterator
RemoteIterator getRemotePrincipalIterator(Iterator<Principal> principals) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Returns a remote adapter for the given local access control manager.- Returns:
- remote access control manager
- Throws:
RemoteException
- on RMI errors
-
-