Examples of AllowableActions


Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        Set<Action> actions = res.getAllowableActions().getAllowableActions();
        assertNotNull(actions);
        verifyAllowableActionsDocument(actions, false, withContent);

        // get allowable actions via getAllowableActions
        AllowableActions allowableActions = fObjSvc.getAllowableActions(fRepositoryId, id, null);
        assertNotNull(allowableActions);
        actions = allowableActions.getAllowableActions();
        assertNotNull(actions);
        verifyAllowableActionsDocument(actions, false, withContent);

        // cleanup
        fObjSvc.deleteObject(fRepositoryId, id, true, null);
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        List<String> requestedIds = FilterParser.getRequestedIdsFromFilter(filter);
        Properties props = getPropertiesFromObject(so, typeDef, requestedIds);

        // fill output object
        if (null != includeAllowableActions && includeAllowableActions) {
            AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
            od.setAllowableActions(allowableActions);
        }
        if (null != includeACL && includeACL)
            od.setAcl(null);
        od.setIsExactAcl(true);
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        // build properties collection
        Properties props = getPropertiesFromObject(so, typeDef, requestedProperties, requestedFuncs);

        // fill output object
        if (null != includeAllowableActions && includeAllowableActions) {
            AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
            od.setAllowableActions(allowableActions);
        }
       
        if (null != includeRelationships && includeRelationships != IncludeRelationships.NONE)
            od.setRelationships(DataObjectCreator.fillRelationships(includeRelationships, so));
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

            ObjectInFolderDataImpl oifd = new ObjectInFolderDataImpl();
            ObjectDataImpl objectData = new ObjectDataImpl();
            if (includePathSegments != null && includePathSegments)
                oifd.setPathSegment(spo.getName());
            if (includeAllowableActions != null && includeAllowableActions) {
                AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(spo, user);
                objectData.setAllowableActions(allowableActions);
            }
            if (includeRelationships != null && includeRelationships != IncludeRelationships.NONE) {
                objectData.setRelationships(null /* f.getRelationships() */);
            }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        if (so == null)
            throw new CmisObjectNotFoundException("Unknown object id: " + objectId);

        String user = context.getUsername();
        AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
        LOG.debug("stop getAllowableActions()");
        return allowableActions;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        Set<Action> actions = res.getAllowableActions().getAllowableActions();
        assertNotNull(actions);
        verifyAllowableActionsDocument(actions, false, withContent);

        // get allowable actions via getAllowableActions
        AllowableActions allowableActions = fObjSvc.getAllowableActions(fRepositoryId, id, null);
        assertNotNull(allowableActions);
        actions = allowableActions.getAllowableActions();
        assertNotNull(actions);
        verifyAllowableActionsDocument(actions, false, withContent);

        // cleanup
        fObjSvc.deleteObject(fRepositoryId, id, true, null);
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        if (so == null) {
            throw new CmisObjectNotFoundException("Unknown object id: " + objectId);
        }

        String user = context.getUsername();
        AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
        LOG.debug("stop getAllowableActions()");
        return allowableActions;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

            ObjectDataImpl objectData = new ObjectDataImpl();
            if (includePathSegments != null && includePathSegments) {
                oifd.setPathSegment(spo.getName());
            }
            if (includeAllowableActions != null && includeAllowableActions) {
                AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(spo, user);
                objectData.setAllowableActions(allowableActions);
            }
            if (includeRelationships != null && includeRelationships != IncludeRelationships.NONE) {
                objectData.setRelationships(null /* f.getRelationships() */);
            }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        List<String> requestedIds = FilterParser.getRequestedIdsFromFilter(filter);
        Properties props = getPropertiesFromObject(so, typeDef, requestedIds, true);

        // fill output object
        if (null != includeAllowableActions && includeAllowableActions) {
            AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
            od.setAllowableActions(allowableActions);
        }
        if (null != includeACL && includeACL) {
            od.setAcl(null);
        }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.AllowableActions

        // build properties collection
        Properties props = getPropertiesFromObject(so, typeDef, requestedProperties, requestedFuncs);

        // fill output object
        if (null != includeAllowableActions && includeAllowableActions) {
            AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
            od.setAllowableActions(allowableActions);
        }

        if (null != includeRelationships && includeRelationships != IncludeRelationships.NONE) {
            od.setRelationships(DataObjectCreator.fillRelationships(includeRelationships, so));
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.