public Operation( org.apache.archiva.redback.rbac.Operation operation ) { this.name = operation.getName(); this.description = operation.getDescription(); this.permanent = operation.isPermanent(); }
public void removeOperation( Operation operation ) throws RbacObjectNotFoundException, RbacManagerException { RBACObjectAssertions.assertValid( "Remove Operation", operation ); if ( operation.isPermanent() ) { throw new RbacPermanentException( "Unable to delete permanent operation [" + operation.getName() + "]" ); } assertOpertionExists( operation.getName() ); operations.remove( operation.getName() ); }