Package org.apache.chemistry.opencmis.client.api

Examples of org.apache.chemistry.opencmis.client.api.FileableCmisObject


                    rename(object, after);
                }
           
                // run move action
                if (delta.getParentChanges().hasNewPrimaryParent()) {
                    FileableCmisObject object = (FileableCmisObject)cmisObject;
                    CmisObject source = object.getParents().get(0);
                    CmisObject destination = session.getObject(delta.getParentChanges().getNewPrimaryParent());

                    object.move(source, destination);

                    // rename temporary name to a original
                    String name = object.getName();
                    if (name.endsWith("-temp")) {
                        rename(object, name.replace("-temp", ""));
                    }
                }
               
View Full Code Here


            f = createResult(FAILURE, "Child is not fileable! Id: " + child.getId() + " / Type: "
                    + child.getType().getId());
            addResult(results, assertIsTrue(child instanceof FileableCmisObject, null, f));

            if (child instanceof FileableCmisObject) {
                FileableCmisObject fileableChild = (FileableCmisObject) child;

                Set<Action> actions = fileableChild.getAllowableActions().getAllowableActions();
                boolean hasObjectParentsAction = actions.contains(Action.CAN_GET_OBJECT_PARENTS);
                boolean hasFolderParentAction = actions.contains(Action.CAN_GET_FOLDER_PARENT);

                if (hasObjectParentsAction || hasFolderParentAction) {
                    List<Folder> parents = fileableChild.getParents();

                    f = createResult(FAILURE, "Child has no parents! Id: " + child.getId());
                    addResult(results, assertIsTrue(parents.size() > 0, null, f));

                    boolean foundParent = false;
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.client.api.FileableCmisObject

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.