Examples of IDfTypedObject


Examples of com.documentum.fc.client.IDfTypedObject

  @Override
  public boolean isLocked(boolean owner) throws CaoException {
    if (getId()==null) throw new CaoException("Not a canonical object");
    try {
      //TODO performance ....
      IDfTypedObject obj = ((DctmConnection)getConnection()).getDctmObject(getId());
      if (obj instanceof IDfSysObject) {
        if (owner)
          return ((IDfSysObject)obj).isCheckedOutBy( ((DctmConnection)getConnection()).getUser() );
        else
          return ((IDfSysObject)obj).isCheckedOut();
View Full Code Here

Examples of com.documentum.fc.client.IDfTypedObject

  @Override
  public boolean lock(int timeout) throws CaoException {
    try {
      if (timeout<0) throw new CaoException("timeout is less than zero");
      //TODO performance ....
      IDfTypedObject obj = ((DctmConnection)getConnection()).getDctmObject(getId());
      if (obj instanceof IDfSysObject) {
        if (timeout==0) {
          try {
            ((IDfSysObject)obj).lock();
            return true;
View Full Code Here

Examples of com.documentum.fc.client.IDfTypedObject

  @Override
  public boolean unlock() throws CaoException {
    try {
      //TODO performance ....
      IDfTypedObject obj = ((DctmConnection)getConnection()).getDctmObject(getId());
      if (obj instanceof IDfSysObject) {
        ((IDfSysObject)obj).cancelCheckout();
        return true;
      }
    } catch (DfException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.