org.codehaus.plexus.redback.rbac.Operation.setDescription()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.codehaus.plexus.redback.rbac.Operation.setDescription()方法的一些代码示例,展示了Operation.setDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.setDescription()方法的具体详情如下:
包路径:org.codehaus.plexus.redback.rbac.Operation
类名称:Operation
方法名:setDescription

Operation.setDescription介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.redback/redback-struts2-integration

  1. public String save()
  2. {
  3. try
  4. {
  5. Operation temp = manager.createOperation( operationName );
  6. temp.setDescription( description );
  7. manager.saveOperation( temp );
  8. }
  9. catch ( RbacManagerException e )
  10. {
  11. addActionError( getText( "cannot.save.operation", Arrays.asList( (Object) operationName ) ) );
  12. log.error( "System error:", e );
  13. allOperations = Collections.emptyList();
  14. }
  15. return LIST;
  16. }

代码示例来源:origin: org.codehaus.redback/redback-xwork-integration

  1. public String save()
  2. {
  3. try
  4. {
  5. Operation temp = manager.createOperation( operationName );
  6. temp.setDescription( description );
  7. manager.saveOperation( temp );
  8. }
  9. catch ( RbacManagerException e )
  10. {
  11. List list = new ArrayList();
  12. list.add( operationName );
  13. addActionError( getText( "cannot.save.operation", list ) );
  14. getLogger().error( "System error:", e );
  15. allOperations = Collections.EMPTY_LIST;
  16. }
  17. return LIST;
  18. }

代码示例来源:origin: org.codehaus.redback/redback-xwork-integration

  1. if ( StringUtils.isNotEmpty( operationDescription ) )
  2. operation.setDescription( operationDescription );

代码示例来源:origin: org.codehaus.redback/redback-struts2-integration

  1. if ( StringUtils.isNotEmpty( operationDescription ) )
  2. operation.setDescription( operationDescription );

代码示例来源:origin: org.codehaus.redback/redback-rbac-role-manager

  1. operation.setDescription( profileOperation.getDescription() );
  2. operation = rbacManager.saveOperation( operation );

相关文章