|
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 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. |
JobResult |
checkIn(ContentContext context, List<ID> nodeIds, String description, int endStatus) CheckIn a group of nodes with the given end status. |
VirtualNode |
checkOut(ContentContext context, ID nodeId, String version) Check out the specified version of a content node. |
JobResult |
checkOut(ContentContext context, List<ID> nodeIds) CheckOut a list of nodes. |
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. |
Version |
getLatestPublishedVersion(ContentContext context, ID nodeId) Return the latest published version for the given node. |
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) Deprecated use getVersionHistory(ContentContext, ID) |
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 |
boolean |
isCheckedOutByCurrentUser(VirtualNode vNode, javax.servlet.http.HttpServletRequest request) Returns true if the VirtualNode is not null and it 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
JobResult checkOut(ContentContext context, List<ID> nodeIds) throws AuthorizationException, NoSuchNodeException, RepositoryException
context
-nodeIds
-AuthorizationException
NoSuchNodeException
RepositoryException
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
JobResult checkIn(ContentContext context, List<ID> nodeIds, String description, int endStatus) throws RepositoryException
context
- The ContentContext objectnodeIds
- The list of node id objectsdescription
- The description for the changesendStatus
- The new checkedIn status of the nodes.RepositoryException
- if there's an error in checking in the nodesVersion 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
getVersionHistory(ContentContext, ID)
context
-nodeId
-RepositoryException
AuthorizationException
NoSuchNodeException
Version getLatestPublishedVersion(ContentContext context, ID nodeId) throws AuthorizationException, NoSuchNodeException, RepositoryException
context
- The content context object which contains the user profile information.nodeId
- The id of the node.AuthorizationException
- Thrown if user is not authorized to perform action.NoSuchNodeException
- Thrown if the node does not exist.RepositoryException
- Thrown if an error occurs during this operation.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. <p/> If retrieving binary content from a published repository, the uid of the propertyId parameter should be <nodeName>/<propertyName>. If retrieving binary content from a managed repository, the uid should be <uid> where uid is the value of PROPERTY_ID column in the CMV_VALUE table.
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 saveRepositoryException
boolean isCheckedOutByCurrentUser(ID nodeId, javax.servlet.http.HttpServletRequest request) throws RepositoryException
nodeId
-request
-RepositoryException
boolean isCheckedOutByCurrentUser(VirtualNode vNode, javax.servlet.http.HttpServletRequest request) throws RepositoryException
vNode
-request
-RepositoryException
Version getActivePublishedVersion(List<Version> versionList)
versionList
-
|
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.