com.wewebu.ow.server.ecmimpl.cmis.version
Class OwCMISStandardVersion

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.version.OwCMISStandardVersion
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwVersion

public class OwCMISStandardVersion
extends Object
implements com.wewebu.ow.server.ecm.OwVersion

OwCMISStandardVersion.

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


Constructor Summary
OwCMISStandardVersion(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p, OwCMISNetwork network_p, String repositoryId_p)
           
 
Method Summary
 boolean canCancelcheckout(int context_p)
           
 void cancelcheckout()
           
 boolean canCheckin(int contextStatus_p)
           
 boolean canCheckout(int contextStatus_p)
           
 boolean canDemote(int context_p)
           
 boolean canPromote(int context_p)
           
 boolean canSave(int contextStatus_p)
           
 void checkin(boolean fPromote_p, Object mode_p, String strObjectClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p, com.wewebu.ow.server.ecm.OwContentCollection content_p, boolean fOverwriteContent_p, String strMimeType_p, String strMimeParameter_p)
           
 void checkout(Object mode_p)
           
 OwCMISObject createObject()
           
 void demote()
           
 boolean equals(com.wewebu.ow.server.ecm.OwVersion version_p)
           
protected  org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyString getChangeToken()
          Helper to get the cmis:changeToken definition.
 String getCheckedOutUserID(int context_p)
           
 String getVersionInfo()
           
 int[] getVersionNumber()
           
 boolean isCheckedOut(int contextStatus_p)
           
 boolean isLatest(int contextStatus_p)
           
 boolean isMajor(int contextStatus_p)
           
 boolean isMyCheckedOut(int contextStatus_p)
           
 boolean isReleased(int contextStatus_p)
           
protected  org.oasis_open.docs.ns.cmis.core._200908.CmisPropertiesType processChangeToken(org.oasis_open.docs.ns.cmis.core._200908.CmisPropertiesType cmisProperties)
          Process the CMIS properties for changeToken like specified in CMIS 1.0.
 void promote()
           
 void save(com.wewebu.ow.server.ecm.OwContentCollection contentCol_p, String strMimeType_p, String strMimeParameter_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISStandardVersion

public OwCMISStandardVersion(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p,
                             OwCMISNetwork network_p,
                             String repositoryId_p)
Method Detail

canCancelcheckout

public boolean canCancelcheckout(int context_p)
                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canCancelcheckout in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

canCheckin

public boolean canCheckin(int contextStatus_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canCheckin in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

canCheckout

public boolean canCheckout(int contextStatus_p)
                    throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canCheckout in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

canDemote

public boolean canDemote(int context_p)
                  throws Exception
Specified by:
canDemote in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

canPromote

public boolean canPromote(int context_p)
                   throws Exception
Specified by:
canPromote in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

canSave

public boolean canSave(int contextStatus_p)
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
canSave in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

cancelcheckout

public void cancelcheckout()
                    throws com.wewebu.ow.server.exceptions.OwException
Specified by:
cancelcheckout in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

checkin

public void checkin(boolean fPromote_p,
                    Object mode_p,
                    String strObjectClassName_p,
                    com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
                    com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p,
                    com.wewebu.ow.server.ecm.OwContentCollection content_p,
                    boolean fOverwriteContent_p,
                    String strMimeType_p,
                    String strMimeParameter_p)
             throws com.wewebu.ow.server.exceptions.OwException
Specified by:
checkin in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

checkout

public void checkout(Object mode_p)
              throws com.wewebu.ow.server.exceptions.OwException
Specified by:
checkout in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

demote

public void demote()
            throws Exception
Specified by:
demote in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

equals

public boolean equals(com.wewebu.ow.server.ecm.OwVersion version_p)
               throws Exception
Specified by:
equals in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

getCheckedOutUserID

public String getCheckedOutUserID(int context_p)
                           throws Exception
Specified by:
getCheckedOutUserID in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

getVersionInfo

public String getVersionInfo()
                      throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getVersionInfo in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

getVersionNumber

public int[] getVersionNumber()
                       throws Exception
Specified by:
getVersionNumber in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

isCheckedOut

public boolean isCheckedOut(int contextStatus_p)
                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isCheckedOut in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

isLatest

public boolean isLatest(int contextStatus_p)
                 throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isLatest in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

isMajor

public boolean isMajor(int contextStatus_p)
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isMajor in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

isMyCheckedOut

public boolean isMyCheckedOut(int contextStatus_p)
                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isMyCheckedOut in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

isReleased

public boolean isReleased(int contextStatus_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isReleased in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

promote

public void promote()
             throws Exception
Specified by:
promote in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
Exception

save

public void save(com.wewebu.ow.server.ecm.OwContentCollection contentCol_p,
                 String strMimeType_p,
                 String strMimeParameter_p)
          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
save in interface com.wewebu.ow.server.ecm.OwVersion
Throws:
com.wewebu.ow.server.exceptions.OwException

createObject

public OwCMISObject createObject()
                          throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

getChangeToken

protected org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyString getChangeToken()
                                                                              throws com.wewebu.ow.server.exceptions.OwException
Helper to get the cmis:changeToken definition. Will first check the local object for occurrence and if is missing will retrieve from CMIS repository (round-trip).

Returns:
CmisPropertyString representing the cmis:changeToken
Throws:
com.wewebu.ow.server.exceptions.OwException

processChangeToken

protected org.oasis_open.docs.ns.cmis.core._200908.CmisPropertiesType processChangeToken(org.oasis_open.docs.ns.cmis.core._200908.CmisPropertiesType cmisProperties)
                                                                                  throws com.wewebu.ow.server.exceptions.OwException
Process the CMIS properties for changeToken like specified in CMIS 1.0.

Parameters:
cmisProperties - CmisPropertiesType to work on
Returns:
CmisPropertiesType w/o changeToken property
Throws:
com.wewebu.ow.server.exceptions.OwException
Since:
3.2.0.1


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.