com.bea.content.virtual
Class VirtualNode

java.lang.Object
  extended by com.bea.content.virtual.VirtualNode
All Implemented Interfaces
Serializable

public class VirtualNode
extends Object
implements Serializable

A Virtual Node represents an element in a virtual hieararchy.

Methods which return an ISortableFilterablePagedList from IVersionManager can sort and filter the responses. For a discussion on paging, sorting and filtering, see com.bea.content.paging and ContentListKeys. Native sortable properties for the BEA Repository are found via the ISortablePagedList.getNativeSortableProperties() method on a paged list of Node objects.

For the Virtual Nodes in the BEA Repository, the current list of native sortable and filterable properties is:

See Also
Serialized Form

Field Summary
protected  String[] assignedToRoles
          The roles that this virtual node is assigned to.
protected  String assignedToUser
          The user that this virtual node is assigned to.
protected  Version currentVersion
          The current version of this virtual node.
protected  String currentVersionName
          The name of the virtual node's current version.
protected  ID id
          The virtual node's ID.
protected  boolean isLocked
          The flag indicating if this virtual node is locked.
protected  String name
          The virtual node's name.
protected  ObjectClass objectClass
          The object class of this virtual node.
protected  String objectClassId
          The object class id for this virtual node.
 
Constructor Summary
VirtualNode()
           
 
Method Summary
 String[] getAssignedToRoles()
          Gets the role the Node is assigned to.
 String getAssignedToUser()
          Get the user name that this node is assigned to.
 Version getCurrentVersion()
          Gets the latest version, if the user requesting the operation has a working version of the Node then that will be returned.
 ID getId()
          Gets the id, including the repository name and uid.
 String getName()
          Gets the name of the virtual node.
 ObjectClass getObjectClass()
          Return the objectClass associated with the node.
 String getObjectClassId()
          Return the objectClassId associated with the node.
 boolean isLocked()
          Gets the user id who has the lock.
 void setName(String name)
          Set the name of the virtual node.
 void setObjectClass(ObjectClass objectClass)
          Sets the objectClass associated with the node.
 void setObjectClassId(String objectClassId)
          Sets the objectClass ID associated with the node.
 String toString()
          Returns the attributes of this Node in a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected ID id
The virtual node's ID.


name

protected String name
The virtual node's name.


assignedToRoles

protected String[] assignedToRoles
The roles that this virtual node is assigned to.


assignedToUser

protected String assignedToUser
The user that this virtual node is assigned to.


isLocked

protected boolean isLocked
The flag indicating if this virtual node is locked.


currentVersion

protected Version currentVersion
The current version of this virtual node.


currentVersionName

protected String currentVersionName
The name of the virtual node's current version.


objectClassId

protected String objectClassId
The object class id for this virtual node.


objectClass

protected ObjectClass objectClass
The object class of this virtual node.

Constructor Detail

VirtualNode

public VirtualNode()
Method Detail

getId

public ID getId()
Gets the id, including the repository name and uid.


getName

public String getName()
Gets the name of the virtual node.

Returns
The name.

setName

public void setName(String name)
Set the name of the virtual node.

Parameters
name - The name.

getCurrentVersion

public Version getCurrentVersion()
Gets the latest version, if the user requesting the operation has a working version of the Node then that will be returned.


isLocked

public boolean isLocked()
Gets the user id who has the lock. Returns false if the Node is not locked.


getAssignedToRoles

public String[] getAssignedToRoles()
Gets the role the Node is assigned to.


getAssignedToUser

public String getAssignedToUser()
Get the user name that this node is assigned to.

Returns
The user name

getObjectClassId

public String getObjectClassId()
Return the objectClassId associated with the node.

Returns
The objectclass Uid

setObjectClassId

public void setObjectClassId(String objectClassId)
Sets the objectClass ID associated with the node.

Parameters
objectClassId - The objectclass UID.

getObjectClass

public ObjectClass getObjectClass()
                           throws RepositoryException
Return the objectClass associated with the node.

Returns
The objectclass
Throws
RepositoryException

setObjectClass

public void setObjectClass(ObjectClass objectClass)
Sets the objectClass associated with the node.

Parameters
objectClass - The objectclass.

toString

public String toString()
Returns the attributes of this Node in a String.

Overrides:
toString in class Object


Copyright © 2006 BEA Systems, Inc. All Rights Reserved