org.apache.jackrabbit.rmi.server
Class ServerItemDefinition

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerItemDefinition
All Implemented Interfaces:
Serializable, Remote, RemoteItemDefinition
Direct Known Subclasses:
ServerNodeDefinition, ServerPropertyDefinition

public class ServerItemDefinition
extends ServerObject
implements RemoteItemDefinition

Remote adapter for the JCR ItemDefinition interface. This class makes a local item definition available as an RMI service using the RemoteItemDefinition interface. Used mainly as the base class for the ServerPropertyDefinition and ServerNodeDefinition adapters.

See Also:
ItemDefinition, RemoteItemDefinition, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerItemDefinition(ItemDefinition def, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local item definition.
 
Method Summary
 RemoteNodeType getDeclaringNodeType()
          Remote version of the ItemDef.getDeclaringNodeType() method.
 String getName()
          Remote version of the ItemDef.getName() method.
 int getOnParentVersion()
          Remote version of the ItemDef.getOnParentVersion() method.
 boolean isAutoCreated()
          Remote version of the ItemDef.isAutoCreate() method.
 boolean isMandatory()
          Remote version of the ItemDef.isMandatory() method.
 boolean isProtected()
          Remote version of the ItemDef.isProtected() method.
 
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, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerItemDefinition

public ServerItemDefinition(ItemDefinition def,
                            RemoteAdapterFactory factory)
                     throws RemoteException
Creates a remote adapter for the given local item definition.

Parameters:
def - local item definition
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getDeclaringNodeType

public RemoteNodeType getDeclaringNodeType()
                                    throws RemoteException
Remote version of the ItemDef.getDeclaringNodeType() method.

Specified by:
getDeclaringNodeType in interface RemoteItemDefinition
Returns:
declaring node type
Throws:
RemoteException - on RMI errors

getName

public String getName()
               throws RemoteException
Remote version of the ItemDef.getName() method.

Specified by:
getName in interface RemoteItemDefinition
Returns:
item name
Throws:
RemoteException - on RMI errors

isAutoCreated

public boolean isAutoCreated()
                      throws RemoteException
Remote version of the ItemDef.isAutoCreate() method.

Specified by:
isAutoCreated in interface RemoteItemDefinition
Returns:
true if the item is automatically created, false otherwise
Throws:
RemoteException - on RMI errors

isMandatory

public boolean isMandatory()
                    throws RemoteException
Remote version of the ItemDef.isMandatory() method.

Specified by:
isMandatory in interface RemoteItemDefinition
Returns:
true if the item is mandatory, false otherwise
Throws:
RemoteException - on RMI errors

getOnParentVersion

public int getOnParentVersion()
                       throws RemoteException
Remote version of the ItemDef.getOnParentVersion() method.

Specified by:
getOnParentVersion in interface RemoteItemDefinition
Returns:
parent version behaviour
Throws:
RemoteException - on RMI errors

isProtected

public boolean isProtected()
                    throws RemoteException
Remote version of the ItemDef.isProtected() method.

Specified by:
isProtected in interface RemoteItemDefinition
Returns:
true if the item is protected, false otherwise
Throws:
RemoteException - on RMI errors


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.