|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ControlInterface public interface ContentVersionControl
Control to represent interface to version methods in content mgmt system.
Method Summary | |
---|---|
void |
checkIn(ContentContext context,
ID nodeId,
VersionableContent content)
Checks in the the specified version of the node with the specified id. |
VirtualNode |
checkOut(ContentContext context,
ID nodeId,
String version)
Check out the specified version of a content node. |
Version |
getActivePublishedVersion(List<Version> versionList)
Finds the most recently published Version. |
SortableFilterablePagedResult<VirtualNode> |
getCheckedOutNodes(ContentContext context)
Return all the checked-out nodes for the user. |
SortableFilterablePagedResult<VirtualNode> |
getOnlyAssignedNodes(ContentContext context)
Return all the assigned nodes for the user. |
InputStream |
getStream(ContentContext context,
ID nodeId,
ID propertyId)
Gets the Binary data for the given Node and Property Id. |
Version |
getVersion(ContentContext context,
ID nodeId,
String versionName)
Get the specified version for a given node. |
SortableFilterablePagedResult<Version> |
getVersionHistory(ContentContext context,
ID nodeId)
Returns all the versions for a given node. |
List<Version> |
getVersions(ContentContext context,
ID nodeId)
Returns all the versions for a given node. |
VirtualNode |
getVirtualNode(ContentContext context,
ID nodeId)
Returns a VirtualNode corresponding to the provided Node id. |
SortableFilterablePagedResult<VirtualNode> |
getWorkingNodes(ContentContext context)
Return all the working nodes for the user. |
boolean |
isCheckedOut(ContentContext context,
ID nodeId)
Convenience method to help determine whether a node is checked out or not. |
boolean |
isCheckedOutByCurrentUser(ID nodeId,
javax.servlet.http.HttpServletRequest request)
Returns true if the VirtualNode exists and is checked out by the currently logged in user |
void |
revert(ContentContext context,
ID nodeId)
Reverts a given checked out node. |
void |
save(ContentContext context,
ID id,
VersionableContent content)
Updates the current version of the node with the specified data. |
Method Detail |
---|
VirtualNode getVirtualNode(ContentContext context, ID nodeId) throws NoSuchNodeException, RepositoryException
VirtualNode
corresponding to the provided Node
id.
context
- nodeId
-
NoSuchNodeException
RepositoryException
boolean isCheckedOut(ContentContext context, ID nodeId) throws RepositoryException
context
- nodeId
-
RepositoryException
VirtualNode checkOut(ContentContext context, ID nodeId, String version) throws RepositoryException, AuthorizationException, 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.
RepositoryException
AuthorizationException
NoSuchNodeException
void checkIn(ContentContext context, ID nodeId, VersionableContent content) throws RepositoryException, AuthorizationException, 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.
RepositoryException
AuthorizationException
NoSuchNodeException
Version getVersion(ContentContext context, ID nodeId, String versionName) throws RepositoryException, AuthorizationException, NoSuchNodeException
context
- nodeId
- versionName
-
RepositoryException
AuthorizationException
NoSuchNodeException
List<Version> getVersions(ContentContext context, ID nodeId) throws RepositoryException, AuthorizationException, NoSuchNodeException
context
- nodeId
-
RepositoryException
AuthorizationException
NoSuchNodeException
SortableFilterablePagedResult<Version> getVersionHistory(ContentContext context, ID nodeId) throws RepositoryException, AuthorizationException, NoSuchNodeException
context
- nodeId
-
RepositoryException
AuthorizationException
NoSuchNodeException
SortableFilterablePagedResult<VirtualNode> getWorkingNodes(ContentContext context) throws RepositoryException
context
-
RepositoryException
SortableFilterablePagedResult<VirtualNode> getCheckedOutNodes(ContentContext context) throws RepositoryException
context
- The content context object which contains the user profile information.
RepositoryException
- Thrown if an error occurs during this operation.SortableFilterablePagedResult<VirtualNode> getOnlyAssignedNodes(ContentContext context) throws RepositoryException
context
- The content context object which contains the user profile information.
RepositoryException
- Thrown if an error occurs during this operation.void revert(ContentContext context, ID nodeId) throws RepositoryException, AuthorizationException, NoSuchNodeException
context
- nodeId
-
RepositoryException
AuthorizationException
NoSuchNodeException
InputStream getStream(ContentContext context, ID nodeId, ID propertyId) throws RepositoryException, AuthorizationException, AuthenticationException, 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.
RepositoryException
AuthorizationException
AuthenticationException
NoSuchPropertyException
void save(ContentContext context, ID id, VersionableContent content) throws RepositoryException
context
- A ContentContext objectid
- the node to updatecontent
- the data to save
RepositoryException
boolean isCheckedOutByCurrentUser(ID nodeId, javax.servlet.http.HttpServletRequest request) throws RepositoryException
nodeId
- request
-
RepositoryException
Version getActivePublishedVersion(List<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 |