Exemplo n.º 1
0
 /**
  * @param permissionSetId One of the constants in {@link DocumentPermissionSet}.
  * @since 2.0
  * @deprecated Use {@link #setPermissionSetTypeForRole(Role, DocumentPermissionSetType)}
  */
 public void setPermissionSetIdForRole(Role role, int permissionSetId) {
   if (null != role) {
     internalDocument.setDocumentPermissionSetTypeForRoleId(
         role.getInternal().getId(),
         DocumentPermissionSetTypeDomainObject.fromInt(permissionSetId));
   }
 }
Exemplo n.º 2
0
 /** @since 3.0 */
 public void setPermissionSetTypeForRole(
     Role role, DocumentPermissionSetType documentPermissionSetType) {
   internalDocument.setDocumentPermissionSetTypeForRoleId(
       role.getInternal().getId(), documentPermissionSetType.getInternal());
 }