|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentNodeControl
Control to represent interface to node methods in content mgmt system.
Method Summary | |
---|---|
Node |
addNode(ContentContext context,
int type,
String parentPath,
String newNodeName)
Create a Node in the repository. |
Node |
addNode(ContentContext context,
int type,
String parentPath,
String newNodeName,
String objectClassName,
Property[] properties)
Create a Node in 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)
Returns the children of the provided parent node. |
SortableFilterablePagedResult<Node> |
getNodesWithNestedDACheck(ContentContext context,
ID parentId)
Return all the children of the node. |
ObjectClass |
getObjectClassFromNode(Node node,
boolean repoIsManaged,
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. |
Node |
move(ContentContext context,
ID sourceId,
ID destinationId)
Move a node. |
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
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 node
RepositoryException
NodeExistsException
AuthorizationException
NoSuchObjectClassException
Node addNode(ContentContext context, int type, String parentPath, String newNodeName, String objectClassName, Property[] properties) throws RepositoryException, AuthorizationException, NodeExistsException, NoSuchObjectClassException
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 nodeobjectClassName
- The object class name to be associated with the node.properties
- The properties of the node.
RepositoryException
AuthorizationException
NodeExistsException
NoSuchObjectClassException
Node 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.
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
context
- The ContentContext objectparentId
- The parentIdtype
- The type of child - Node.HIERARACHY or Node.CONTENT
RepositoryException
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 node
AuthorizationException
boolean hasDeleteCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The node
AuthorizationException
boolean hasViewCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The node
AuthorizationException
boolean hasUpdateCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The node
AuthorizationException
boolean hasBrowseCapability(ContentContext context, String repositoryName, Node node) throws AuthorizationException
context
- The ContentContext objectrepositoryName
- The name of the content repositorynode
- The node
AuthorizationException
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 not
RepositoryException
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, HttpServletRequest request) throws NoSuchNodeException, AuthenticationException, AuthorizationException, NoSuchObjectClassException, RepositoryException
node
- repoIsManaged
- request
-
NoSuchNodeException
AuthenticationException
AuthorizationException
NoSuchObjectClassException
RepositoryException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |