use of org.alfresco.repo.security.permissions.impl.SimplePermissionReference in project alfresco-repository by Alfresco.
the class AclCrudDAOTest method testCreateAndDeletePermission.
public void testCreateAndDeletePermission() throws Exception {
String name = getName() + "-" + System.currentTimeMillis();
final SimplePermissionReference permRef = SimplePermissionReference.getPermissionReference(QName.createQName("cm:cmobject"), name);
Permission createdPermEntity = createPermission(permRef);
assertNotNull(createdPermEntity);
Permission permEntity = getPermission(permRef);
assertEquals(createdPermEntity, permEntity);
deletePermission(permEntity.getId());
assertNull(getPermission(permRef));
}
Aggregations