Package com.abiquo.server.core.enterprise

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


         this.blocked = blocked;
         return this;
      }

      public Role build() {
         RoleDto dto = new RoleDto();
         dto.setName(name);
         dto.setBlocked(blocked);
         Role role = new Role(context, dto);

         return role;
      }
View Full Code Here


   }

   // Children access

   public Role getRole() {
      RoleDto role = context.getApi().getAdminApi().getRole(target);
      return wrap(context, Role.class, role);
   }
View Full Code Here

      role.setName("UPDATED_ROLE");
      role.update();

      // Recover the updated role
      RoleDto updated = env.adminApi.getRole(role.getId());

      assertEquals(updated.getName(), "UPDATED_ROLE");

      role.delete();
   }
View Full Code Here

* @author Ignasi Barrera
* @author Francesc Montserrat
*/
public class AdminResources {
   public static RoleDto rolePost() {
      RoleDto role = new RoleDto();
      role.addLink(new RESTLink("privileges", "http://localhost/api/admin/roles/1/action/privileges"));
      role.setName("HAWAIAN_ADMIN");
      return role;
   }
View Full Code Here

      role.setName("HAWAIAN_ADMIN");
      return role;
   }

   public static RoleDto rolePut() {
      RoleDto role = rolePost();
      role.setId(1);
      role.addLink(new RESTLink("edit", "http://localhost/api/admin/roles/1"));

      return role;
   }
View Full Code Here

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

   @Override
   public Role getRole(final Integer roleId) {
      RoleDto role = context.getApi().getAdminApi().getRole(roleId);
      return wrap(context, Role.class, role);
   }
View Full Code Here

/**
* Enterprise domain utilities.
*/
public class AdminResources {
   public static RoleDto rolePost() {
      RoleDto role = new RoleDto();
      role.addLink(new RESTLink("privileges", "http://localhost/api/admin/roles/1/action/privileges"));
      role.setName("HAWAIAN_ADMIN");
      return role;
   }
View Full Code Here

      role.setName("HAWAIAN_ADMIN");
      return role;
   }

   public static RoleDto rolePut() {
      RoleDto role = rolePost();
      role.setId(1);
      role.addLink(new RESTLink("edit", "http://localhost/api/admin/roles/1"));

      return role;
   }
View Full Code Here

         this.blocked = blocked;
         return this;
      }

      public Role build() {
         RoleDto dto = new RoleDto();
         dto.setName(name);
         dto.setBlocked(blocked);
         Role role = new Role(context, dto);

         return role;
      }
View Full Code Here

      role.setName("UPDATED_ROLE");
      role.update();

      // Recover the updated role
      RoleDto updated = env.adminApi.getRole(role.getId());

      assertEquals(updated.getName(), "UPDATED_ROLE");

      role.delete();
   }
View Full Code Here

TOP

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

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.