Package com.abiquo.server.core.enterprise

Examples of com.abiquo.server.core.enterprise.PrivilegeDto


         }
      });
   }

   public void testAddPrivilege() {
      PrivilegeDto dto = env.configApi.getPrivilege(8);
      final Privilege privilege = DomainWrapper.wrap(env.context.getApiContext(), Privilege.class, dto);
      List<Privilege> privileges = Lists.newArrayList(env.role.listPrivileges());
      privileges.add(privilege);

      env.role.setPrivileges(privileges);
View Full Code Here


      return wrap(context, Privilege.class, result.getCollection());
   }

   @Override
   public Privilege getPrivilege(Integer privilegeId) {
      PrivilegeDto result = context.getApi().getConfigApi().getPrivilege(privilegeId);
      return wrap(context, Privilege.class, result);
   }
View Full Code Here

         }
      });
   }

   public void testAddPrivilege() {
      PrivilegeDto dto = env.configApi.getPrivilege(8);
      final Privilege privilege = DomainWrapper.wrap(env.context.getApiContext(), Privilege.class, dto);
      List<Privilege> privileges = Lists.newArrayList(env.role.listPrivileges());
      privileges.add(privilege);

      env.role.setPrivileges(privileges);
View Full Code Here

      return wrap(context, Privilege.class, result.getCollection());
   }

   @Override
   public Privilege getPrivilege(Integer privilegeId) {
      PrivilegeDto result = context.getApi().getConfigApi().getPrivilege(privilegeId);
      return wrap(context, Privilege.class, result);
   }
View Full Code Here

      assertNotNull(entRole);
   }

   public void testAddPrivilege() {
      PrivilegeDto dto = env.configApi.getPrivilege(8);
      Privilege privilege = DomainWrapper.wrap(env.context.getApiContext(), Privilege.class, dto);
      List<Privilege> privileges = Lists.newArrayList(env.role.listPrivileges());
      privileges.add(privilege);

      env.role.setPrivileges(privileges);

      env.role.update();

      privilege = env.role.findPrivileges(PrivilegePredicates.name(dto.getName()));

      assertNotNull(privilege);
   }
View Full Code Here

      return getFirst(listPrivileges(filter), null);
   }

   @Override
   public Privilege getPrivilege(Integer privilegeId) {
      PrivilegeDto result = context.getApi().getConfigApi().getPrivilege(privilegeId);
      return wrap(context, Privilege.class, result);
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.enterprise.PrivilegeDto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.