本文整理了Java中org.codehaus.plexus.redback.rbac.Operation.isPermanent()
方法的一些代码示例,展示了Operation.isPermanent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.isPermanent()
方法的具体详情如下:
包路径:org.codehaus.plexus.redback.rbac.Operation
类名称:Operation
方法名:isPermanent
[英]Test to see if the object is a permanent object or not.
[中]测试该对象是否为永久性对象。
代码示例来源:origin: org.codehaus.redback/redback-xmlrpc-services
public List<Operation> getOperations()
throws Exception
{
List<org.codehaus.plexus.redback.rbac.Operation> operations = rbacManager.getAllOperations();
List<Operation> simpleOperations = new ArrayList<Operation>();
for ( org.codehaus.plexus.redback.rbac.Operation operation : operations )
{
simpleOperations.add(
new Operation( operation.getName(), operation.getDescription(), operation.isPermanent() ) );
}
return simpleOperations;
}
代码示例来源:origin: org.codehaus.redback/redback-rbac-jdo
public void removeOperation( Operation operation )
throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
{
RBACObjectAssertions.assertValid( operation );
if ( operation.isPermanent() )
{
throw new RbacPermanentException( "Unable to delete permanent operation [" + operation.getName() + "]" );
}
jdo.removeObject( operation );
}
代码示例来源:origin: org.codehaus.redback/redback-xmlrpc-services
public Operation getOperation( String operationName )
throws Exception
{
org.codehaus.plexus.redback.rbac.Operation operation = rbacManager.getOperation( operationName );
Operation simpleOperation =
new Operation( operation.getName(), operation.getDescription(), operation.isPermanent() );
return simpleOperation;
}
代码示例来源:origin: org.codehaus.redback/redback-rbac-memory
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() );
}
内容来源于网络,如有侵权,请联系作者删除!