Package org.sete.domain.type

Examples of org.sete.domain.type.UserRoleType


    /*
     * testTypeFound -> tests for equivalence class, key exists.
     */
    public void testTypeFound() throws Exception {
      List<AbstractLookupType> types = new ArrayList<AbstractLookupType>();
      UserRoleType urp = new UserRoleType();
        urp.setDescription("Student");
        urp.setId(1);
        urp.setKey("student");
        urp.setLabel("Student");
        urp.setLongDescription("Student");

      types.add(urp);
       
      try {
        TypeUtil.initialize(types);
View Full Code Here


        upt.setDescription("VIEW_ALL_PROJECTS Long Description");
        types.add(upt);
    }

    private static void createUserRoleTypes(List<AbstractLookupType> types) {
        UserRoleType urt = new UserRoleType();
        urt.setId(18);
        urt.setKey(UserRoleType.Key.ADMIN_KEY.getKey());
        urt.setLabel("ADMIN Label");
        urt.setDescription("ADMIN Description");
        urt.setLongDescription("ADMIN Long Description");
        types.add(urt);

        urt = new UserRoleType();
        urt.setId(19);
        urt.setKey(UserRoleType.Key.JUDGE_KEY.getKey());
        urt.setLabel("JUDGE Label");
        urt.setDescription("JUDGE Description");
        urt.setLongDescription("JUDGE Long Description");
        types.add(urt);

        urt = new UserRoleType();
        urt.setId(20);
        urt.setKey(UserRoleType.Key.SPONSOR_KEY.getKey());
        urt.setLabel("SPONSOR Label");
        urt.setDescription("SPONSOR Description");
        urt.setLongDescription("SPONSOR Long Description");
        types.add(urt);

        urt = new UserRoleType();
        urt.setId(21);
        urt.setKey(UserRoleType.Key.STUDENT_KEY.getKey());
        urt.setLabel("STUDENT Label");
        urt.setDescription("STUDENT Description");
        urt.setLongDescription("STUDENT Long Description");
        types.add(urt);
    }
View Full Code Here

                                                       final String privilegeKey,
                                                       final String actionKey )
    {
        final UserRolePrivilege urp = new UserRolePrivilege();
        {
            final UserRoleType urt = new UserRoleType();
            urt.setKey(roleKey);
            urp.setUserRoleType( urt );

            final Set userPrivs = new HashSet();
            {
                final UserPrivilege up = new UserPrivilege();
View Full Code Here

TOP

Related Classes of org.sete.domain.type.UserRoleType

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.