public interface OwVersion
Base interface for Object versions to identify a single version of a document in a versioning system.
To be implemented with the specific ECM system.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Method and Description |
---|---|
boolean |
canCancelcheckout(int context_p)
check if cancel checkout function is allowed
|
void |
cancelcheckout()
cancel checkout
|
boolean |
canCheckin(int context_p)
check if checkin function is allowed
|
boolean |
canCheckout(int context_p)
check if checkout function is allowed
|
boolean |
canDemote(int context_p)
check if demote version function is allowed
|
boolean |
canPromote(int context_p)
check if promote version function is allowed
|
boolean |
canSave(int context_p)
check if a reservation object is available, which can be saved to
|
void |
checkin(boolean fPromote_p,
Object mode_p,
String strObjectClassName_p,
OwPropertyCollection properties_p,
OwPermissionCollection permissions_p,
OwContentCollection content_p,
boolean fOverwriteContent_p,
String strMimeType_p,
String strMimeParameter_p)
checkin
|
void |
checkout(Object mode_p)
checkout
|
void |
demote()
demote version
|
boolean |
equals(OwVersion version_p)
check if this version is equal to the given version
|
String |
getCheckedOutUserID(int iContext_p)
get the user who checked out the object
|
String |
getVersionInfo()
get the version number as a String
|
int[] |
getVersionNumber()
get the version number as an array of integer.
|
boolean |
isCheckedOut(int context_p)
true if object is locked due to check out
|
boolean |
isLatest(int context_p)
check if this version is the latest version
|
boolean |
isMajor(int context_p)
check if this version is a major version, e.g.
|
boolean |
isMyCheckedOut(int context_p)
true if object is locked by the current user due to check out
|
boolean |
isReleased(int context_p)
check if this version is the released version
|
void |
promote()
promote version
|
void |
save(OwContentCollection content_p,
String strMimeType_p,
String strMimeParameter_p)
set the content to the checked out object
|
int[] getVersionNumber() throws Exception
Exception
String getVersionInfo() throws Exception
Exception
boolean isReleased(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean isLatest(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean isMajor(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean isCheckedOut(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean isMyCheckedOut(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
String getCheckedOutUserID(int iContext_p) throws Exception
iContext_p
- OwStatusContextDefinitionsException
boolean equals(OwVersion version_p) throws Exception
version_p
- OwVersion to compare toException
void checkout(Object mode_p) throws Exception
mode_p
- Object access mode for checked out object, see getCheckoutModesException
boolean canCheckout(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
void checkin(boolean fPromote_p, Object mode_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, boolean fOverwriteContent_p, String strMimeType_p, String strMimeParameter_p) throws Exception
fPromote_p
- boolean true = create a released version right awaymode_p
- Object checkin mode for objects, see getCheckinModes, or null to use defaultstrObjectClassName_p
- requested class name of the new objectproperties_p
- OwPropertyCollection with new properties to set, or null to use defaultspermissions_p
- OwPermissionCollection ECM specific permissions or null to use defaultscontent_p
- OwContentCollection the new content to set, null to create an empty objectfOverwriteContent_p
- boolean true = content_p overwrites existing content, even if null, false = existing content is keptstrMimeType_p
- String MIME Types of the new object contentstrMimeParameter_p
- extra info to the MIME typeException
boolean canCheckin(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean canCancelcheckout(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean canPromote(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
boolean canDemote(int context_p) throws Exception
context_p
- OwStatusContextDefinitionsException
void save(OwContentCollection content_p, String strMimeType_p, String strMimeParameter_p) throws Exception
content_p
- OwContentCollection the new content to set, null to create an empty objectstrMimeType_p
- String MIME Types of the new object contentstrMimeParameter_p
- extra info to the MIME typeException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.