|
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 ContentVersionControl
Control to represent interface to version methods in content mgmt system.
Method Summary | |
---|---|
void |
checkIn(com.bea.content.ContentContext context,
com.bea.content.ID nodeId,
com.bea.content.virtual.version.VersionableContent content)
Checks in the the specified version of the node with the specified id. |
com.bea.content.virtual.VirtualNode |
checkOut(com.bea.content.ContentContext context,
com.bea.content.ID nodeId,
String version)
Check out the specified version of a content node. |
com.bea.content.virtual.version.Version |
getActivePublishedVersion(List<com.bea.content.virtual.version.Version> versionList)
Finds the most recently published Version. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.VirtualNode> |
getCheckedOutNodes(com.bea.content.ContentContext context)
Return all the checked-out nodes for the user. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.VirtualNode> |
getOnlyAssignedNodes(com.bea.content.ContentContext context)
Return all the assigned nodes for the user. |
InputStream |
getStream(com.bea.content.ContentContext context,
com.bea.content.ID nodeId,
com.bea.content.ID propertyId)
Gets the Binary data for the given Node and Property Id. |
com.bea.content.virtual.version.Version |
getVersion(com.bea.content.ContentContext context,
com.bea.content.ID nodeId,
String versionName)
Get the specified version for a given node. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.version.Version> |
getVersionHistory(com.bea.content.ContentContext context,
com.bea.content.ID nodeId)
Returns all the versions for a given node. |
List<com.bea.content.virtual.version.Version> |
getVersions(com.bea.content.ContentContext context,
com.bea.content.ID nodeId)
Returns all the versions for a given node. |
com.bea.content.virtual.VirtualNode |
getVirtualNode(com.bea.content.ContentContext context,
com.bea.content.ID nodeId)
Returns a VirtualNode corresponding to the provided Node id. |
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.VirtualNode> |
getWorkingNodes(com.bea.content.ContentContext context)
Return all the working nodes for the user. |
boolean |
isCheckedOut(com.bea.content.ContentContext context,
com.bea.content.ID nodeId)
Convenience method to help determine whether a node is checked out or not. |
boolean |
isCheckedOutByCurrentUser(com.bea.content.ID nodeId,
HttpServletRequest request)
Returns true if the VirtualNode exists and is checked out by the currently logged in user |
void |
revert(com.bea.content.ContentContext context,
com.bea.content.ID nodeId)
Reverts a given checked out node. |
void |
save(com.bea.content.ContentContext context,
com.bea.content.ID id,
com.bea.content.virtual.version.VersionableContent content)
Updates the current version of the node with the specified data. |
Method Detail |
---|
com.bea.content.virtual.VirtualNode getVirtualNode(com.bea.content.ContentContext context, com.bea.content.ID nodeId) throws com.bea.content.NoSuchNodeException, com.bea.content.RepositoryException
VirtualNode
corresponding to the provided Node
id.
context
- nodeId
-
com.bea.content.NoSuchNodeException
com.bea.content.RepositoryException
boolean isCheckedOut(com.bea.content.ContentContext context, com.bea.content.ID nodeId) throws com.bea.content.RepositoryException
context
- nodeId
-
com.bea.content.RepositoryException
com.bea.content.virtual.VirtualNode checkOut(com.bea.content.ContentContext context, com.bea.content.ID nodeId, String version) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.NoSuchNodeException
context
- The content context object which contains the user profile information.nodeId
- The id of the node to check outversion
- The version to be checked out, null if the latest version is desired.
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.NoSuchNodeException
void checkIn(com.bea.content.ContentContext context, com.bea.content.ID nodeId, com.bea.content.virtual.version.VersionableContent content) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.NoSuchNodeException
context
- The content context object which contains the user profile information.nodeId
- The id of the node being checked in.content
- The content to be checked in. If null, the latest version will be checked in.
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.NoSuchNodeException
com.bea.content.virtual.version.Version getVersion(com.bea.content.ContentContext context, com.bea.content.ID nodeId, String versionName) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.NoSuchNodeException
context
- nodeId
- versionName
-
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.NoSuchNodeException
List<com.bea.content.virtual.version.Version> getVersions(com.bea.content.ContentContext context, com.bea.content.ID nodeId) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.NoSuchNodeException
context
- nodeId
-
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.NoSuchNodeException
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.version.Version> getVersionHistory(com.bea.content.ContentContext context, com.bea.content.ID nodeId) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.NoSuchNodeException
context
- nodeId
-
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.NoSuchNodeException
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.VirtualNode> getWorkingNodes(com.bea.content.ContentContext context) throws com.bea.content.RepositoryException
context
-
com.bea.content.RepositoryException
com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.VirtualNode> getCheckedOutNodes(com.bea.content.ContentContext context) throws com.bea.content.RepositoryException
context
- The content context object which contains the user profile information.
com.bea.content.RepositoryException
- Thrown if an error occurs during this operation.com.bea.p13n.pagination.SortableFilterablePagedResult<com.bea.content.virtual.VirtualNode> getOnlyAssignedNodes(com.bea.content.ContentContext context) throws com.bea.content.RepositoryException
context
- The content context object which contains the user profile information.
com.bea.content.RepositoryException
- Thrown if an error occurs during this operation.void revert(com.bea.content.ContentContext context, com.bea.content.ID nodeId) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.NoSuchNodeException
context
- nodeId
-
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.NoSuchNodeException
InputStream getStream(com.bea.content.ContentContext context, com.bea.content.ID nodeId, com.bea.content.ID propertyId) throws com.bea.content.RepositoryException, com.bea.content.AuthorizationException, com.bea.content.AuthenticationException, com.bea.content.NoSuchPropertyException
After calling this method and retrieving the InputStream, you must close the InputStream when finished reading it in a finally block.
If retrieving binary content from a published repository, the uid of the propertyId parameter should be
nodeId
- - the ID for the node.propertyId
- - the ID for the Property that contains the binary data.
com.bea.content.RepositoryException
com.bea.content.AuthorizationException
com.bea.content.AuthenticationException
com.bea.content.NoSuchPropertyException
void save(com.bea.content.ContentContext context, com.bea.content.ID id, com.bea.content.virtual.version.VersionableContent content) throws com.bea.content.RepositoryException
context
- A ContentContext objectid
- the node to updatecontent
- the data to save
com.bea.content.RepositoryException
boolean isCheckedOutByCurrentUser(com.bea.content.ID nodeId, HttpServletRequest request) throws com.bea.content.RepositoryException
nodeId
- request
-
com.bea.content.RepositoryException
com.bea.content.virtual.version.Version getActivePublishedVersion(List<com.bea.content.virtual.version.Version> versionList)
versionList
-
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |