/** * {@inheritDoc} * * <p> * <b>Implementation Hints:</b> * <ul> * <li>Bindings: AtomPub, Web Services, Browser, Local</li> * <li>Implementation is optional. Convenience implementation is present.</li> * </ul> */ @Override public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) { return getObject(repositoryId, objectId, "cmis:objectId", true, IncludeRelationships.NONE, "cmis:none", false, false, extension).getAllowableActions(); }
/** * {@inheritDoc} * * <p> * <b>Implementation Hints:</b> * <ul> * <li>Bindings: AtomPub, Web Services, Browser, Local</li> * <li>Implementation is optional. Convenience implementation is present.</li> * </ul> */ @Override public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) { return getObject(repositoryId, objectId, "cmis:objectId", true, IncludeRelationships.NONE, "cmis:none", false, false, extension).getAllowableActions(); }
if (objectData.getAllowableActions() != null) { this.allowableActions = objectData.getAllowableActions();
if (objectData.getAllowableActions() != null) { this.allowableActions = objectData.getAllowableActions();
if (objectData.getAllowableActions() != null) { allowableActions = objectData.getAllowableActions(); extensions.put(ExtensionLevel.ALLOWABLE_ACTIONS, objectData.getAllowableActions().getExtensions()); } else { allowableActions = null;
if (objectData.getAllowableActions() != null) { allowableActions = objectData.getAllowableActions(); extensions.put(ExtensionLevel.ALLOWABLE_ACTIONS, objectData.getAllowableActions().getExtensions()); } else { allowableActions = null;
writer.writeEndElement(); if (source.getAllowableActions() != null) { writeAllowableActions(writer, cmisVersion, false, source.getAllowableActions());
@Override public Void execute(CmisService cmisService) { try { // check allowable actions ObjectData originalDoc = cmisService.getObject(testContext.getRepositoryId(), objectData.getId(), null, true, IncludeRelationships.NONE, null, false, true, null); AllowableActions allowableActions = originalDoc.getAllowableActions(); assertNotNull(allowableActions); assertFalse(allowableActions.getAllowableActions().contains(Action.CAN_DELETE_OBJECT)); // try to cancel the checkout cmisService.deleteObjectOrCancelCheckOut(testContext.getRepositoryId(), objectData.getId(), Boolean.TRUE, null); fail(); } catch(CmisConstraintException e) { // expected } return null; } });
result.setAllowableActions(convert(object.getAllowableActions(), cmisVersion)); if (object.getChangeEventInfo() != null) { CmisChangeEventType changeEventInfo = new CmisChangeEventType();
writer.endTag(NAMESPACE_CMIS, TAG_OBJECT_PROPERTIES); if (source.getAllowableActions() != null) { writeAllowableActions(writer, cmisVersion, false, source.getAllowableActions());
if (object.getAllowableActions() != null) { result.put(JSON_OBJECT_ALLOWABLE_ACTIONS, convert(object.getAllowableActions()));
if (object.getAllowableActions() != null) { result.put(JSON_OBJECT_ALLOWABLE_ACTIONS, convert(object.getAllowableActions()));