public void revoke(RoleAssignment ra) { if (!em.contains(ra)) { ra = em.merge(ra); } em.remove(ra); /** @todo update permissionModificationTime here. */ IndexResponse indexDefinitionPointResult = indexDefinitionPoint(ra.getDefinitionPoint()); logger.fine("indexing operation results: " + indexDefinitionPointResult); }
public RoleAssignment save(RoleAssignment assignment) { if (assignment.getId() == null) { em.persist(assignment); em.flush(); } else { assignment = em.merge(assignment); } /** @todo update permissionModificationTime here. */ IndexResponse indexDefinitionPountResult = indexDefinitionPoint(assignment.getDefinitionPoint()); logger.fine("output from indexing operations: " + indexDefinitionPountResult); return assignment; }