As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Yes you can use the RM services. But you will run into difficulty if, like the first post in this thread, you only do part of the required action.Under the covers RM works via a set of "RMActions" and you can call those. Its exactly how the RM Share interface works.
// Add the declared aspect Map<QName, Serializable> declaredProps = new HashMap<QName, Serializable>(2); declaredProps.put(PROP_DECLARED_AT, new Date()); declaredProps.put(PROP_DECLARED_BY, AuthenticationUtil.getRunAsUser()); this.nodeService.addAspect(actionedUponNodeRef, ASPECT_DECLARED_RECORD, declaredProps); // remove all owner related rights this.ownableService.setOwner(actionedUponNodeRef, OwnableService.NO_OWNER);