Package org.sete.domain.type

Examples of org.sete.domain.type.UserPrivilegeType


        spst.setLongDescription("Scoring In Progress Long Description");
        types.add(spst);
    }

    private static void createUserPrivilegeTypes(List<AbstractLookupType> types) {
        UserPrivilegeType upt = new UserPrivilegeType();
        upt.setId(6);
        upt.setKey(UserPrivilegeType.Key.MANAGE_JUDGE_RESULTS_KEY.getKey());
        upt.setLabel("MANAGE JUDGE_RESULTS Label");
        upt.setDescription("MANAGE JUDGE_RESULTS Description");
        upt.setDescription("MANAGE JUDGE_RESULTS Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(7);
        upt.setKey(UserPrivilegeType.Key.MANAGE_JUDGE_SCHEDULE_KEY.getKey());
        upt.setLabel("MANAGE JUDGE_SCHEDULE Label");
        upt.setDescription("MANAGE JUDGE_SCHEDULE Description");
        upt.setDescription("MANAGE JUDGE_SCHEDULE Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(8);
        upt.setKey(UserPrivilegeType.Key.MANAGE_MY_PROFILE_KEY.getKey());
        upt.setLabel("MANAGE MY_PROFILE Label");
        upt.setDescription("MANAGE MY_PROFILE Description");
        upt.setDescription("MANAGE MY_PROFILE Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(9);
        upt.setKey(UserPrivilegeType.Key.MANAGE_MY_PROJECT_KEY.getKey());
        upt.setLabel("MANAGE MY_PROJECT Label");
        upt.setDescription("MANAGE MY_PROJECT Description");
        upt.setDescription("MANAGE MY_PROJECT Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(10);
        upt.setKey(UserPrivilegeType.Key.MANAGE_PROJECT_FILES_KEY.getKey());
        upt.setLabel("MANAGE PROJECT_FILES Label");
        upt.setDescription("MANAGE PROJECT_FILES Description");
        upt.setDescription("MANAGE PROJECT_FILES Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(11);
        upt.setKey(UserPrivilegeType.Key.MANAGE_PROJECT_IDEAS_KEY.getKey());
        upt.setLabel("MANAGE PROJECT_IDEAS Label");
        upt.setDescription("MANAGE PROJECT_IDEAS Description");
        upt.setDescription("MANAGE PROJECT_IDEAS Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(12);
        upt.setKey(UserPrivilegeType.Key.MANAGE_REFERENCE_DATA_KEY.getKey());
        upt.setLabel("MANAGE REFERENCE_DATA Label");
        upt.setDescription("MANAGE REFERENCE_DATA Description");
        upt.setDescription("MANAGE REFERENCE_DATA Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(13);
        upt.setKey(UserPrivilegeType.Key.MANAGE_ROLES_KEY.getKey());
        upt.setLabel("MANAGE ROLES Label");
        upt.setDescription("MANAGE ROLES Description");
        upt.setDescription("MANAGE ROLES Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(14);
        upt.setKey(UserPrivilegeType.Key.MANAGE_SPONSORED_PROJECT_KEY.getKey());
        upt.setLabel("MANAGE SPONSORED_PROJECT Label");
        upt.setDescription("MANAGE SPONSORED_PROJECT Description");
        upt.setDescription("MANAGE SPONSORED_PROJECT Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(15);
        upt.setKey(UserPrivilegeType.Key.MANAGE_USERS_KEY.getKey());
        upt.setLabel("MANAGE USERS Label");
        upt.setDescription("MANAGE USERS Description");
        upt.setDescription("MANAGE USERS Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(16);
        upt.setKey(UserPrivilegeType.Key.SPONSOR_PROJECT_KEY.getKey());
        upt.setLabel("SPONSOR_PROJECT Label");
        upt.setDescription("SPONSOR_PROJECT Description");
        upt.setDescription("SPONSOR_PROJECT Long Description");
        types.add(upt);

        upt = new UserPrivilegeType();
        upt.setId(17);
        upt.setKey(UserPrivilegeType.Key.VIEW_ALL_PROJECTS_KEY.getKey());
        upt.setLabel("VIEW_ALL_PROJECTS Label");
        upt.setDescription("VIEW_ALL_PROJECTS Description");
        upt.setDescription("VIEW_ALL_PROJECTS Long Description");
        types.add(upt);
    }
View Full Code Here


            final Set userPrivs = new HashSet();
            {
                final UserPrivilege up = new UserPrivilege();
                {
                    final UserPrivilegeType upt = new UserPrivilegeType();
                    upt.setKey(privilegeKey);
                    up.setUserPrivilegeType( upt );

                    final PrivilegeActionType pat = new PrivilegeActionType();
                    pat.setKey(actionKey);
                    up.setPrivilegeActionType( pat );
View Full Code Here

   
    static private void addPrivilegeTypeToList(final String key, final List<UserPrivilegeType> privTypes )
    {
        assert null != privTypes;
       
        final UserPrivilegeType upt = new UserPrivilegeType();
        upt.setKey(key);
        privTypes.add(upt);       
    }
View Full Code Here

TOP

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

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.