Examples of UserPrivilegeVo


Examples of org.sete.vo.common.UserPrivilegeVo

   
    public ActionForward modifyAssignedPrivileges(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception
    {
   
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.SETE_USER_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the data for the next screen
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

   
    public ActionForward saveAssignedPrivileges(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception
    {
       
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.SETE_USER_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));

        //get data from the form
        final UserRoleVo urvo = new UserRoleVo();
        {
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

    // ======================================== Private Methods =========================================
    // ==================================================================================================


    private UserPrivilegeVo getPrivileges() {
        UserPrivilegeVo vo = new UserPrivilegeVo();
    vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
        UserPrivilegeType.Key.PROJECT_KEY.toString()));
    vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
        PrivilegeActionType.Key.READ_WRITE_KEY.toString()));

        return vo;
    }
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

    displaySuccessMessage(request);
    return mapping.findForward("view");
  }
 
  private void doCheckAuthorization(HttpServletRequest request) throws PermissionException {
    UserPrivilegeVo vo = new UserPrivilegeVo();
      vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.MANAGE_MY_PROFILE_KEY.getKey()));
      vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,

                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));

      checkAuthorization(userHasPrivilege(request.getSession(), vo));
  }
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

{
    /**doesn't do anything other than checking whether the user is authorized to access the page*/
    public ActionForward init(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception
    {
      UserPrivilegeVo vo = new UserPrivilegeVo();
      vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.MANAGE_REFERENCE_DATA_KEY.getKey()));
      vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
     
      checkAuthorization(userHasPrivilege(request.getSession(), vo));
     
      return mapping.findForward("view");
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

   
    /**create a new AwardType*/
    public ActionForward createAwardType(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.MANAGE_REFERENCE_DATA_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the data for saving
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

    /**show an existing AwardType for editing*/
    public ActionForward viewEditAwardType(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.MANAGE_REFERENCE_DATA_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));

        //find the object for the key
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

   
    /**save an edited AwardType*/
    public ActionForward editAwardType(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.MANAGE_REFERENCE_DATA_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the vo object
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

    public ActionForward init(ActionMapping mapping,
                              ActionForm form,
                              HttpServletRequest request,
                              HttpServletResponse response) throws Exception {
       
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.PROJECT_SPONSOR_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_KEY.getKey()));

        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        ScienceProjectService service = getService(ScienceProjectService.class);
View Full Code Here

Examples of org.sete.vo.common.UserPrivilegeVo

    /**delete an AwardType*/
    public ActionForward deleteAwardType(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        UserPrivilegeVo vo = new UserPrivilegeVo();
        vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
                                            UserPrivilegeType.Key.MANAGE_REFERENCE_DATA_KEY.getKey()));
        vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //delete the data
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.