com.sas.drugdev.remote.repository
Class ContainerBean

java.lang.Object
  extended bycom.sas.drugdev.remote.repository.NodeBean
      extended bycom.sas.drugdev.remote.repository.ContainerBean
All Implemented Interfaces:
Container, Node

public class ContainerBean
extends NodeBean
implements Container

Simple bean to represent a container. This can be constructed various ways. This class allows the user to construct a Container object without requiring a server call.

It is the only way to create a Container on the server. Construct a ContainerBean, then pass it into RepositoryService.createContainer(ContainerBean).

It is also the only means for performing write operations on the Container, such as updating metadata or moving and copying. Construct a ContainerBean, then perform any setProperty methods on it and call RepositoryService.updateNode(NodeBean) to perform those operations on the server side.


Field Summary
 
Fields inherited from class com.sas.drugdev.remote.repository.NodeBean
PROPERTY_COPIEDFROM, PROPERTY_CREATED_BY, PROPERTY_CREATIONDATE, PROPERTY_DISPLAYNAME, PROPERTY_GETCONTENTLENGTH, PROPERTY_GETLASTMODIFIED, PROPERTY_HAVE_SIGNED, PROPERTY_HREF, PROPERTY_ID, PROPERTY_IS_SIGNED, PROPERTY_LAST_UPLOAD_DATE, PROPERTY_LAST_UPLOAD_HOST, PROPERTY_LAST_UPLOAD_PATH, PROPERTY_LAST_UPLOADED_BY, PROPERTY_LOCKED, PROPERTY_LOCKED_BY, PROPERTY_MODIFIED_BY, PROPERTY_MUST_SIGN, PROPERTY_OWNER, PROPERTY_PATH, PROPERTY_REMOTE_REFRESHABLE, PROPERTY_SIGNING_STATUS, PROPERTY_TYPEDEF_ID, PROPERTY_TYPEDEF_NAME, SYSTEM_PROPERTIES
 
Constructor Summary
ContainerBean(NodeId id)
          Constructor that takes only an NodeId.
ContainerBean(RemoteContainer remoteContainer)
          Constructor that takes a RemoteContainer.
ContainerBean(java.lang.String path)
          Construct a ContainerBean with just the path.
ContainerBean(java.lang.String path, Type type)
          Construct the ContainerBean with a type and a path.
 
Methods inherited from class com.sas.drugdev.remote.repository.NodeBean
getId, getPath, getProperties, getType, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sas.drugdev.remote.repository.Node
getId, getPath, getProperties, getType
 

Constructor Detail

ContainerBean

public ContainerBean(NodeId id)
Constructor that takes only an NodeId.

Parameters:
id - id with which to populate the ContainerBean

ContainerBean

public ContainerBean(RemoteContainer remoteContainer)
Constructor that takes a RemoteContainer. This is useful for updating entities. If a ContainerBean is constructed using a remote node, then checking is done on the server when an node is moved or updated to ensure that it hasn't been modified since it was retrieved. All the properties from the remote container are copied into the properties of this bean.

Parameters:
remoteContainer - remoteNode with which to populate the ContainerBean

ContainerBean

public ContainerBean(java.lang.String path)
Construct a ContainerBean with just the path.

Parameters:
path - path with which to populate the ContainerBean

ContainerBean

public ContainerBean(java.lang.String path,
                     Type type)
Construct the ContainerBean with a type and a path. This is the constructor that must be used for creating containers.

Parameters:
path - path of the container you are creating
type - type of the container you are creating