|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.content.virtual.VirtualNode
public class VirtualNode
A Virtual Node represents an element in a virtual hieararchy. <p/> 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 WLP Repository are found via the ISortablePagedList.getNativeSortableProperties()
method on a paged list of Node objects. <p/> For the Virtual Nodes in the WLP Repository, the current list of native sortable and filterable properties is:
<p/>
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 String |
assignedToVersionName This value is set to the version name if this virtual node is locked. |
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 | |
---|---|
Object |
clone() Clones a virutal node and its current version if it has previously been loaded. |
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() Returns the lock value of this virtual node. |
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ID id
protected String name
protected String[] assignedToRoles
protected String assignedToUser
protected boolean isLocked
protected Version currentVersion
getCurrentVersion()
should be used.protected String currentVersionName
protected String objectClassId
protected ObjectClass objectClass
protected String assignedToVersionName
Constructor Detail |
---|
public VirtualNode()
Method Detail |
---|
public ID getId()
public String getName()
public void setName(String name)
name
- The name.public Version getCurrentVersion()
IVersionManager versionManager = ContentManagerFactory.getVersionManager(); VirtualNode vn = versionManager.checkOut(context, nodeId, version); Version currentVersion = vn.getCurrentVersion(); currentVersion.setStatus(Workflow.PUBLISHED); versionManager.checkIn(context, nodeId, currentVersion); // Instead of: vn.getCurrentVersion().setStatus(Workflow.PUBLISHED); // This subsequent call gets the version again and will not checkIn the node as Published as desired.chec versionManager.checkIn(context, nodeId, vn.getCurrentVersion());
public boolean isLocked()
public String[] getAssignedToRoles()
public String getAssignedToUser()
public String getObjectClassId()
public void setObjectClassId(String objectClassId)
objectClassId
- The objectclass UID.public ObjectClass getObjectClass() throws RepositoryException
RepositoryException
- if this object class cannot be retrieved.public void setObjectClass(ObjectClass objectClass)
objectClass
- The objectclass.public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- If the clone fails.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.