|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
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 |
Method Detail |
---|
int[] getVersionNumber() throws Exception
Exception
String getVersionInfo() throws Exception
Exception
boolean isReleased(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
boolean isLatest(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
boolean isMajor(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
boolean isCheckedOut(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
boolean isMyCheckedOut(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
String getCheckedOutUserID(int iContext_p) throws Exception
iContext_p
- OwStatusContextDefinitions
Exception
boolean equals(OwVersion version_p) throws Exception
version_p
- OwVersion to compare to
Exception
void checkout(Object mode_p) throws Exception
mode_p
- Object access mode for checked out object, see getCheckoutModes
Exception
boolean canCheckout(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
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 type
Exception
boolean canCheckin(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
void cancelcheckout() throws Exception
Exception
boolean canCancelcheckout(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
void promote() throws Exception
Exception
boolean canPromote(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
void demote() throws Exception
Exception
boolean canDemote(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
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 type
Exception
boolean canSave(int context_p) throws Exception
context_p
- OwStatusContextDefinitions
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |