Package de.mhus.lib.cao

Examples of de.mhus.lib.cao.CaoInvalidException


    super(master);
  }

  @Override
  public void save() throws CaoException {
    if (!isValid()) throw new CaoInvalidException();
    File file = new File(master.getId());
    String newName = null;
    for (String name : data.keySet()) {
      CaoMetaDefinition def = master.getMetadata().getDefinition(name);
      if (isWritable(name) && def != null ) {
View Full Code Here


    return writable;
  }

  @Override
  public CaoWritableElement getWritableNode() throws CaoException {
    if (!isWritable()) throw new CaoInvalidException("Element is not writable");
    return new WritableElement(this) {
     
      @Override
      public boolean isValid() {
        return getParent().isValid();
View Full Code Here

   
  }

  @Override
  public boolean lock(int timeout) throws CaoException {
    if (timeout < 0) throw new CaoInvalidException("timeout less zero");
    synchronized (this) {
      while (locked) {
        MThread.sleep(100);
        if (timeout !=0) {
          timeout-=100;
View Full Code Here

    super(master);
  }

  @Override
  public void save() throws CaoException {
    if (!isValid()) throw new CaoInvalidException();
    try {
      IDfPersistentObject obj = (IDfPersistentObject) ((DctmConnection)getConnection()).getDctmObject(getId());
 
      for (String name : data.keySet()) {
        if (name.equals("r_folder_id")) {
View Full Code Here

    super(master);
  }

  @Override
  public void save() throws CaoException {
    if (!isValid()) throw new CaoInvalidException();
   
    Node node = ((JackElement)master).getNode();
   
    try {
      for (String name : data.keySet()) {
View Full Code Here

TOP

Related Classes of de.mhus.lib.cao.CaoInvalidException

Copyright © 2018 www.massapicom. 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.