|
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 |
@ControlInterface
public interface ContentNodeControl
Control to represent interface to node methods in content mgmt system.
Nested Class Summary | |
---|---|
static class |
ContentNodeControl.NodeType |
Method Summary | |
---|---|
Node |
addNode(ContentContext context, int type, String parentPath, String newNodeName) Deprecated Use addNode(ContentContext, String, String) |
Node |
addNode(ContentContext context, int type, String parentPath, String newNodeName, String objectClassName, Property[] properties) Deprecated Use addNode(ContentContext, String, String, String, Property[]) |
Node |
addNode(ContentContext context, String parentPath, String newNodeName) Create a typeless Node in the repository. |
Node |
addNode(ContentContext context, String parentPath, String newNodeName, String objectClassName, Property[] properties) Create a Node in the repository. |
Node |
addNode(ContentContext context, String parentPath, String newNodeName, String objectClassName, Property[] properties, ID workflowId) This method adds a new node to the repository. |
Node |
copy(ContentContext context, ID sourceId, ID destinationId) Copy a node. |
Node |
getNode(ContentContext context, String path) Get a node by path. |
Node |
getNodeByUUID(ContentContext context, ID nodeId) This method gets a particular Node based on its ID. |
ISortableFilterablePagedList<Node> |
getNodeReferences(ContentContext context, ID nodeId) Retrieve nodes which have a link property referring to the specified node. |
SortableFilterablePagedResult<Node> |
getNodes(ContentContext context, ID parentId) Return all the children of the node. |
SortableFilterablePagedResult<Node> |
getNodes(ContentContext context, ID parentId, int type) Deprecated Use getNodes(ContentContext, ID) . |
SortableFilterablePagedResult<Node> |
getNodesWithNestedDACheck(ContentContext context, ID parentId) Return all the children of the node. |
ObjectClass |
getObjectClassFromNode(Node node, boolean repoIsManaged, javax.servlet.http.HttpServletRequest request) The only time you can get the ObjectClass directly from Node.getObjectClass() is when the node has published content. |
InputStream |
getStream(ContentContext context, ID nodeId, String propertyName) Gets the Binary data for the given Node and its property. |
String |
getTaxonomy(Node node) Return the taxonomy of the node used by the DA System. |
boolean |
hasBrowseCapability(ContentContext context, String repositoryName, Node node) Check to see if the given node hasBrowseCapability for the current user. |
boolean |
hasCreateCapability(ContentContext context, String repositoryName, Node node) Check to see if the given node hasCreateCapability |
boolean |
hasDeleteCapability(ContentContext context, String repositoryName, Node node) Check to see if the given node hasDeleteCapability for the current user. |
boolean |
hasNodeReferences(ContentContext context, ID nodeId) Determines if there are any nodes (including possibly some which cannot be accessed) which have a link property referring to the specified node. |
boolean |
hasUpdateCapability(ContentContext context, String repositoryName, Node node) Check to see if the given node hasUpdateCapability for the current user. |
boolean |
hasViewCapability(ContentContext context, String repositoryName, Node node) Check to see if the given node hasViewCapability for the current user. |
boolean |
isANewContentNode(ContentContext context, ID id, boolean hasVirtualNode) Check whether or not a node has ever been published. |
boolean |
isHierarchyNode(Node node, boolean repoIsManaged, javax.servlet.http.HttpServletRequest request) Determine if the given Node is a folder node. |
Node |
move(ContentContext context, ID sourceId, ID destinationId) Move a node. |
void |
orderBefore(ContentContext context, ID srcId, ID destId) JSR-170 child node ordering |
void |
remove(ContentContext context, ID nodeId) Delete a node from the system. |
Node |
save(ContentContext context, Node node) This method updates an existing node in a single transaction. |
Method Detail |
---|
Node addNode(ContentContext context, int type, String parentPath, String newNodeName) throws RepositoryException, NodeExistsException, AuthorizationException, NoSuchObjectClassException
addNode(ContentContext, String, String)
context
- The ContentContext Objecttype
- The type of node - can be Node.HIERARCHY or Node.CONTENTparentPath
- The path to the parent of the new node to create.newNodeName
- The name of the nodeRepositoryException
NodeExistsException
AuthorizationException
NoSuchObjectClassException
Node addNode(ContentContext context, String parentPath, String newNodeName) throws RepositoryException, NodeExistsException, AuthorizationException, NoSuchObjectClassException
context
- The ContentContext ObjectparentPath
- The path to the parent of the new node to create.newNodeName
- The name of the nodeRepositoryException
NodeExistsException
AuthorizationException
NoSuchObjectClassException
Node addNode(ContentContext context, int type, String parentPath, String newNodeName, String objectClassName, Property[] properties) throws RepositoryException, AuthorizationException, NodeExistsException, NoSuchObjectClassException
addNode(ContentContext, String, String, String, Property[])
context
- The ContentContext Objecttype
- The type of nodeparentPath
- The path to the parent of the new node to create.newNodeName
- The name of the nodeobjectClassName
- The object class name to be associated with the node.properties
- The properties of the node.RepositoryException
AuthorizationException
NodeExistsException
NoSuchObjectClassException
Node addNode(ContentContext context, String parentPath, String newNodeName, String objectClassName, Property[] properties) throws RepositoryException, AuthorizationException, NodeExistsException, NoSuchObjectClassException
context
- The ContentContext ObjectparentPath
- The path to the parent of the new node to create.newNodeName
- The name of the nodeobjectClassName
- The object class name to be associated with the node.properties
- The properties of the node.RepositoryException
AuthorizationException
NodeExistsException
NoSuchObjectClassException
Node addNode(ContentContext context, String parentPath, String newNodeName, String objectClassName, Property[] properties, ID workflowId) throws AuthorizationException, NodeExistsException, NoSuchObjectClassException, RepositoryException
context
- The ContentContext ObjectparentPath
- The path to the parent of the new node to create.newNodeName
- The name of the nodeobjectClassName
- The type name of the node to create.properties
- The properties of the nodeworkflowId
- Optional workflow Id for the node. Null will cause it to inherit the workflow.AuthorizationException
- - if the user does not have CREATE capability on the parent node, or if the user does not have INSTANTIATE capability on the type of the node. This exception will also be thrown if the user is not authorizated by the repository.NodeExistsException
- - if the parent Node already has a child with the same name.NoSuchObjectClassException
- - if the node's ObjectClass doesn't exist.RepositoryException
- - for any other exceptionNode getNodeByUUID(ContentContext context, ID nodeId) throws RepositoryException, AuthorizationException, AuthenticationException, NoSuchNodeException
If a Property is Binary, then the bytes will not be contained in the BinaryValue. In order to get the bytes a call to (@link #getPropertyBytes} is necessary.
The Node Cache will be checked first before going to the spi to retrieve the Node. <p/> Before retrieving the node it will see if the node has BROWSE & the VIEW capability on it. If either one of them is not set, it'll throw an exception.
context
- The contentContext objectnodeId
- - the ID for the node to get. The ID must include the repository and uid.RepositoryException
AuthorizationException
AuthenticationException
NoSuchNodeException
Node getNode(ContentContext context, String path) throws RepositoryException, AuthorizationException, NoSuchNodeException
context
- The content context objectpath
-RepositoryException
AuthorizationException
NoSuchNodeException
SortableFilterablePagedResult<Node> getNodes(ContentContext context, ID parentId) throws RepositoryException, AuthorizationException, NoSuchNodeException, AuthenticationException
parentId
-RepositoryException
AuthorizationException
NoSuchNodeException
AuthenticationException
SortableFilterablePagedResult<Node> getNodesWithNestedDACheck(ContentContext context, ID parentId) throws RepositoryException, AuthorizationException, NoSuchNodeException, AuthenticationException
parentId
-RepositoryException
AuthorizationException
NoSuchNodeException
AuthenticationException
SortableFilterablePagedResult<Node> getNodes(ContentContext context, ID parentId, int type) throws RepositoryException, AuthorizationException, NoSuchNodeException, AuthenticationException
getNodes(ContentContext, ID)
.context
- The ContentContext objectparentId
- The parentIdtype
- The type of child - Node.HIERARACHY or Node.CONTENTRepositoryException
AuthorizationException
NoSuchNodeException
AuthenticationException
InputStream getStream(ContentContext context, ID nodeId, String propertyName) throws AuthenticationException, AuthorizationException, NoSuchPropertyException, RepositoryException
NESTED_DELIMITER
between each parent and child property name. The delimiter is not valid for use within the actual name, only to seperate the parent/child names. If the nested property type is multi-valued, then the name passed through should be the indexed name, which contains an index representing which multivalued property is being referenced. See Property
indexedName
.nodeId
- - the node IdpropertyName
- - the name for the Property that contains the binary data.AuthenticationException
AuthorizationException
- if the user does not have VIEW capabilities on the node.NoSuchPropertyException
- - if the Property does not exist.RepositoryException
void remove(ContentContext context, ID nodeId) throws RepositoryException, AuthorizationException, NoSuchNodeException, AuthenticationException
context
-nodeId
-RepositoryException
AuthorizationException
NoSuchNodeException
AuthenticationException
Node copy(ContentContext context, ID sourceId, ID destinationId) throws RepositoryException, AuthorizationException, NoSuchNodeException, AuthenticationException
sourceId
-destinationId
-RepositoryException
AuthorizationException
NoSuchNodeException
AuthenticationException
Node move(ContentContext context, ID sourceId, ID destinationId) throws RepositoryException, AuthorizationException, NoSuchNodeException, AuthenticationException
context
-sourceId
-destinationId
-RepositoryException
AuthorizationException
NoSuchNodeException
AuthenticationException
boolean hasNodeReferences(ContentContext context, ID nodeId) throws AuthorizationException, AuthenticationException, RepositoryException
context
-nodeId
-AuthorizationException
AuthenticationException
RepositoryException
ISortableFilterablePagedList<Node> getNodeReferences(ContentContext context, ID nodeId) throws AuthenticationException, AuthorizationException, RepositoryException
context
-nodeId
-AuthorizationException
AuthenticationException
RepositoryException
boolean hasCreateCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The nodeAuthorizationException
boolean hasDeleteCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The nodeAuthorizationException
boolean hasViewCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The nodeAuthorizationException
boolean hasUpdateCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The nodeAuthorizationException
boolean hasBrowseCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The nodeAuthorizationException
String getTaxonomy(Node node)
node
- The node object If node is null, it will return the taxonomy of the repository root.boolean isANewContentNode(ContentContext context, ID id, boolean hasVirtualNode) throws RepositoryException
context
-id
-hasVirtualNode
- true if the node has a virtual node, false if notRepositoryException
Node save(ContentContext context, Node node) throws AuthenticationException, AuthorizationException, RepositoryException
node
- The node to update with the various changes set accordingly.AuthenticationException
AuthorizationException
RepositoryException
ObjectClass getObjectClassFromNode(Node node, boolean repoIsManaged, javax.servlet.http.HttpServletRequest request) throws NoSuchNodeException, AuthenticationException, AuthorizationException, NoSuchObjectClassException, RepositoryException
node
-repoIsManaged
-request
-NoSuchNodeException
AuthenticationException
AuthorizationException
NoSuchObjectClassException
RepositoryException
boolean isHierarchyNode(Node node, boolean repoIsManaged, javax.servlet.http.HttpServletRequest request) throws RepositoryException
Node
is a folder node.node
- the Node
true
if the the given Node
or is a folder node and false
otherwiseRepositoryException
void orderBefore(ContentContext context, ID srcId, ID destId) throws ConstraintViolationException, NoSuchNodeException, AuthorizationException, RepositoryException
context
- ContentContextsrcId
- the ID of the source node, that is being moveddestId
- the ID of the destination node, before which the src node is being moved toConstraintViolationException
NoSuchNodeException
AuthorizationException
RepositoryException
|
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.