com.bea.content.el.support
Class NodeWrapperImpl

java.lang.Object
  extended by com.bea.content.el.support.NodeWrapperImpl
All Implemented Interfaces
Serializable

public class NodeWrapperImpl
extends Object
implements Serializable

This EL wrapper class implementation adds functionality around the Node class.

Here are some common examples:

     ${myNode.isFolder}
     ${myNode.propertyMap['myBinaryPropertyName'].url.renderUrl}
     ${myNode.versions.allVersions}
 

See Also
Node, VersionServiceImpl, PropertyWrapperImpl, UrlServiceImpl, Serialized Form

Method Summary
 Node getAsNode()
          This returns the actual node so that the resolver mechanism can be circumvented if necessary.
 String getCreatedBy()
          See Node.getCreatedBy()
 Calendar getCreatedDate()
          See Node.getCreatedDate()
 boolean getHasParentNode()
          Determines if the current node has a valid parent node ID, or a node that has no parent.
 IconServiceImpl getIcon()
          Returns the icon service defined in the current web application.
 ID getId()
          See ContentEntity.getId()
 boolean getIsFolder()
          Convenience method to determine whether this node is associated with a folder or container.
 boolean getIsInherited()
          Convenience method to determine if this node is inherited by another object class definition.
 boolean getIsPropertiesNull()
          See Node.isPropertiesNull()
 boolean getIsRetired()
          See Node.isRetired()
 String getModifiedBy()
          See Node.getModifiedBy()
 Calendar getModifiedDate()
          See Node.getModifiedDate()
 String getName()
          See Node.getName()
 ObjectClass getObjectClass()
          See Node.getObjectClass()
 ID getParentId()
          See Node.getParentId()
 String getPath()
          See Node.getPath()
 PropertyWrapperImpl getPrimaryProperty()
          See Node.getPrimaryProperty()
 PropertyWrapperImpl[] getProperties()
          Create wrapped com.bea.content.Property objects.
 PropertyWrapperImpl[] getProperties(String name)
          Create wrapped com.bea.content.Property objects.
 PropertyWrapperImpl getProperty(String name)
          Create a wrapped com.bea.content.Property object.
 Map<String,PropertyWrapperImpl> getPropertyMap()
          Create and return a map of wrapped com.bea.content.Property objects, keyed by property name.
 UrlServiceImpl getUrl()
          Returns an instance of the node property Url service for the primary property of this node (if any).
 String getURLEncodedPath()
          See Node.getURLEncodedPath()
 VersionServiceImpl getVersions()
          Returns an instance of the version service to retrieve a node's version(s).
 Workflow getWorkflow()
          See Node.getWorkflow()
 int getWorkflowStatus()
          See Node.getWorkflowStatus()
 String toString()
          String representation of NodeMetadataInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAsNode

public Node getAsNode()
This returns the actual node so that the resolver mechanism can be circumvented if necessary.

This will allow retrieval of "real" nodes and properties rather than the wrappers.

Returns
The actual node.

getCreatedBy

public String getCreatedBy()
See Node.getCreatedBy()

See Also
Node.getCreatedBy()

getCreatedDate

public Calendar getCreatedDate()
See Node.getCreatedDate()

See Also
Node.getCreatedDate()

getModifiedBy

public String getModifiedBy()
See Node.getModifiedBy()

See Also
Node.getModifiedBy()

getModifiedDate

public Calendar getModifiedDate()
See Node.getModifiedDate()

See Also
Node.getModifiedDate()

getName

public String getName()
See Node.getName()

See Also
Node.getName()

getObjectClass

public ObjectClass getObjectClass()
See Node.getObjectClass()

See Also
Node.getObjectClass()

getParentId

public ID getParentId()
See Node.getParentId()

See Also
Node.getParentId()

getId

public ID getId()
See ContentEntity.getId()

See Also
ContentEntity.getId()

getPath

public String getPath()
See Node.getPath()

See Also
Node.getPath()

getPrimaryProperty

public PropertyWrapperImpl getPrimaryProperty()
See Node.getPrimaryProperty()

See Also
Node.getPrimaryProperty()

getProperties

public PropertyWrapperImpl[] getProperties()
Create wrapped com.bea.content.Property objects.

See Also
Node.getProperties()

getProperties

public PropertyWrapperImpl[] getProperties(String name)
Create wrapped com.bea.content.Property objects.

See Also
Node.getProperties(String)

getPropertyMap

public Map<String,PropertyWrapperImpl> getPropertyMap()
Create and return a map of wrapped com.bea.content.Property objects, keyed by property name.

Returns
a Map of PropertyWrapperImpl keyed by property name.

getProperty

public PropertyWrapperImpl getProperty(String name)
Create a wrapped com.bea.content.Property object.

See Also
Node.getProperty(String)

getURLEncodedPath

public String getURLEncodedPath()
See Node.getURLEncodedPath()

See Also
Node.getURLEncodedPath()

getWorkflow

public Workflow getWorkflow()
See Node.getWorkflow()

See Also
Node.getWorkflow()

getWorkflowStatus

public int getWorkflowStatus()
See Node.getWorkflowStatus()

See Also
Node.getWorkflowStatus()

getIsPropertiesNull

public boolean getIsPropertiesNull()
See Node.isPropertiesNull()

See Also
Node.isPropertiesNull()

getIsRetired

public boolean getIsRetired()
See Node.isRetired()

See Also
Node.isRetired()

getHasParentNode

public boolean getHasParentNode()
Determines if the current node has a valid parent node ID, or a node that has no parent.

Returns
True if this node has a valid parent node ID, false otherwise.

getIsInherited

public boolean getIsInherited()
Convenience method to determine if this node is inherited by another object class definition.

Returns
True if the backing object class inherits from another object class.

getIsFolder

public boolean getIsFolder()
Convenience method to determine whether this node is associated with a folder or container.

Returns
True if this node is associated with a folder, or false otherwise.

toString

public String toString()
String representation of NodeMetadataInfo

Overrides:
toString in class Object

getUrl

public UrlServiceImpl getUrl()
Returns an instance of the node property Url service for the primary property of this node (if any).

Returns
The url service for the primary property of this node, or null if there is no primary property.

getIcon

public IconServiceImpl getIcon()
Returns the icon service defined in the current web application.


getVersions

public VersionServiceImpl getVersions()
Returns an instance of the version service to retrieve a node's version(s).

Returns
An instance of VersionServiceImpl


Copyright © 2011, Oracle. All rights reserved.