|
Oracle Beehive Java Content Repository Java API Reference Release 1 (1.3) E11993-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OracleNodeType
Every node has a node type which defines the structure of the node. The node types are defined bottom up in our implementation i.e. for each content related entity that is supported in the beehive, a node type is defined. The following entities are supported:
Enterprise
Organization
Workspace
Heterogeneous Folder
Document.
Though Enterprise, organization and workspace are not really content related entities, they are required for accessing the content related entities by specifying the path. For each of the above entities, corresponding node type is defined. In addition to these, a base nodetype named beehive:base that extends from nt:node node type is also defined. This node type represents the properties of beehive entity. All the other nodetypes defined by the implementation extend from beehive:base nodetype.(i.e inherit the properties and children defined in the beehive:base nodetype).For other nodetypes, the important properties supported by the entities corresponding to them are included as properties in the nodetype definition. Use the appropriate string constants defined in this interface to specify the nodetypes.
Field Summary | |
---|---|
static java.lang.String |
BEEHIVE_BASE The base nodetype beehive:base that extends from nt:base nodetype, forms the supertype of all the nodetypes. |
static java.lang.String |
BEEHIVE_ENTERPRISE The Enterprise in Content Services is mapped to beehive:enterprise. |
static java.lang.String |
BEEHIVE_FILE The Document in Content Services is mapped to beehive:file. |
static java.lang.String |
BEEHIVE_FOLDER The Heterogeneous Folder in Content Services is mapped to beehive:folder. |
static java.lang.String |
BEEHIVE_FROZENNODE The nodetype jcr:frozenNode represents Frozen Node type. |
static java.lang.String |
BEEHIVE_LOCKABLE Only nodes with mixin node type mix:lockable may hold locks. |
static java.lang.String |
BEEHIVE_MIXREFERENCEABLE The nodetype mix:referenceable is required in order to support UUID-bearing nodes, which in turn support REFERENCE property types and versioning. |
static java.lang.String |
BEEHIVE_ORGANIZATION The Organization in Content Services is mapped to beehive:organization. |
static java.lang.String |
BEEHIVE_ROOT The Root Node is of type beehive:root. |
static java.lang.String |
BEEHIVE_ROOTVERSION The nodetype jcr:rootVersion represents root version. |
static java.lang.String |
BEEHIVE_TRASH The Trash in Content Services is mapped to beehive:trash. |
static java.lang.String |
BEEHIVE_TRASHITEM The Trash Item in Content Services is mapped to beehive:trashItem. |
static java.lang.String |
BEEHIVE_VERSION The nodetype nt:version represents a version. |
static java.lang.String |
BEEHIVE_VERSIONABLE Versioning requires the mixin node type mix:versionable. |
static java.lang.String |
BEEHIVE_VERSIONHISTORY The nodetype nt:versionHistory represents version history. |
static java.lang.String |
BEEHIVE_VERSIONLABEL The nodetype nt:versionLabels represents version Labels. |
static java.lang.String |
BEEHIVE_WORKSPACE The Workspace in Content Services is mapped to beehive:workspace. |
Method Summary | |
---|---|
boolean |
canAddChildNode(java.lang.String childNodeName) Returns true if this node type allows the addition of a child node called childNodeName without specific node type information (that is, given the definition of this parent node type, the child node name is sufficient to determine the intended child node type). |
boolean |
canAddChildNode(java.lang.String childNodeName, java.lang.String nodeTypeName) Returns true if this node type allows the addition of a child node called childNodeName of node type nodeTypeName . |
boolean |
canRemoveItem(java.lang.String itemName) Returns true if removing the child item called itemName is allowed by this node type. |
boolean |
canSetProperty(java.lang.String propertyName, javax.jcr.Value value) Returns true if setting propertyName to value is allowed by this node type. |
boolean |
canSetProperty(java.lang.String propertyName, javax.jcr.Value[] values) Returns false since multiple values are not supported. |
javax.jcr.nodetype.NodeDefinition[] |
getChildNodeDefinitions() Returns an array containing the child node definitions of this node type, including the child node definitions inherited from supertypes of this node type. |
javax.jcr.nodetype.NodeDefinition[] |
getDeclaredChildNodeDefinitions() Returns an array containing the child node definitions explicitly specified in the declaration of this node type. |
javax.jcr.nodetype.PropertyDefinition[] |
getDeclaredPropertyDefinitions() Returns an array containing the property definitions explicitly specified in the declaration of this node type. |
javax.jcr.nodetype.NodeType[] |
getDeclaredSupertypes() Returns the direct supertypes of this node type in the node type inheritance hierarchy, that is, those actually declared in this node type. |
java.lang.String |
getName() Returns the name of the node type. |
java.lang.String |
getPrimaryItemName() Returns the name of the primary item (one of the child items of the nodes of this node type). |
javax.jcr.nodetype.PropertyDefinition[] |
getPropertyDefinitions() Returns an array containing the property definitions of this node type, including the property definitions inherited from supertypes of this node type. |
javax.jcr.nodetype.NodeType[] |
getSupertypes() Returns all supertypes of this node type in the node type inheritance hierarchy. |
boolean |
hasOrderableChildNodes() Returns false since ordering of nodes is not supported. |
boolean |
isMixin() Returns true if this node type is a mixin node type. |
boolean |
isNodeType(java.lang.String nodeTypeName) Returns true if this node type is nodeTypeName or a subtype of nodeTypeName , otherwise returns false . |
Field Detail |
---|
static final java.lang.String BEEHIVE_ROOT
static final java.lang.String BEEHIVE_ENTERPRISE
static final java.lang.String BEEHIVE_ORGANIZATION
static final java.lang.String BEEHIVE_WORKSPACE
static final java.lang.String BEEHIVE_FOLDER
static final java.lang.String BEEHIVE_FILE
static final java.lang.String BEEHIVE_TRASH
static final java.lang.String BEEHIVE_TRASHITEM
static final java.lang.String BEEHIVE_BASE
static final java.lang.String BEEHIVE_MIXREFERENCEABLE
static final java.lang.String BEEHIVE_LOCKABLE
static final java.lang.String BEEHIVE_VERSIONABLE
static final java.lang.String BEEHIVE_VERSION
static final java.lang.String BEEHIVE_VERSIONHISTORY
static final java.lang.String BEEHIVE_VERSIONLABEL
static final java.lang.String BEEHIVE_FROZENNODE
static final java.lang.String BEEHIVE_ROOTVERSION
Method Detail |
---|
java.lang.String getName()
getName
in interface javax.jcr.nodetype.NodeType
boolean isMixin()
true
if this node type is a mixin node type. Returns false
if this node type is a primary node type.isMixin
in interface javax.jcr.nodetype.NodeType
boolean hasOrderableChildNodes()
false
since ordering of nodes is not supported.hasOrderableChildNodes
in interface javax.jcr.nodetype.NodeType
false
.java.lang.String getPrimaryItemName()
null
. This indicator is used by the method Node.getPrimaryItem()
.getPrimaryItemName
in interface javax.jcr.nodetype.NodeType
javax.jcr.nodetype.NodeType[] getSupertypes()
nt:base
, this list will always include at least nt:base
. For mixin types, there is no required supertype.getSupertypes
in interface javax.jcr.nodetype.NodeType
NodeType
objects.getDeclaredSupertypes()
javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes
in interface javax.jcr.nodetype.NodeType
NodeType
objects.getSupertypes()
boolean isNodeType(java.lang.String nodeTypeName)
nodeTypeName
or a subtype of nodeTypeName
, otherwise returns false
.isNodeType
in interface javax.jcr.nodetype.NodeType
nodeTypeName
- the name of a node type.javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions
in interface javax.jcr.nodetype.NodeType
getDeclaredPropertyDefinitions()
javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions
in interface javax.jcr.nodetype.NodeType
getPropertyDefinitions()
javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions
in interface javax.jcr.nodetype.NodeType
getDeclaredChildNodeDefinitions()
javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions
in interface javax.jcr.nodetype.NodeType
getChildNodeDefinitions()
boolean canSetProperty(java.lang.String propertyName, javax.jcr.Value value)
true
if setting propertyName
to value
is allowed by this node type. Otherwise returns false
.canSetProperty
in interface javax.jcr.nodetype.NodeType
propertyName
- The name of the propertyvalue
- A Value
object.boolean canSetProperty(java.lang.String propertyName, javax.jcr.Value[] values)
false
since multiple values are not supported.canSetProperty
in interface javax.jcr.nodetype.NodeType
propertyName
- The name of the propertyvalues
- A Value
array.boolean canAddChildNode(java.lang.String childNodeName)
true
if this node type allows the addition of a child node called childNodeName
without specific node type information (that is, given the definition of this parent node type, the child node name is sufficient to determine the intended child node type). Returns false
otherwise.canAddChildNode
in interface javax.jcr.nodetype.NodeType
childNodeName
- The name of the child node.boolean canAddChildNode(java.lang.String childNodeName, java.lang.String nodeTypeName)
true
if this node type allows the addition of a child node called childNodeName
of node type nodeTypeName
. Returns false
otherwise.canAddChildNode
in interface javax.jcr.nodetype.NodeType
childNodeName
- The name of the child node.nodeTypeName
- The name of the node type of the child node.boolean canRemoveItem(java.lang.String itemName)
itemName
is allowed by this node type. Otherwise returns false
.canRemoveItem
in interface javax.jcr.nodetype.NodeType
itemName
- The name of the child item
|
Oracle Beehive Java Content Repository Java API Reference Release 1 (1.3) E11993-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |