Package org.opencustomer.db.vo.system

Examples of org.opencustomer.db.vo.system.UserVO


            }
        }
       
        if(getEntityAccess(request) != null)
        {
            UserVO user = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
            EntityAccess entity = getEntityAccess(request);
            TestEntityAccess test = new TestEntityAccess(entity);
            test.setAccessGlobal(EnumUtility.valueOf(EntityAccess.Access.class, globalAccess));
            test.setAccessGroup(EnumUtility.valueOf(EntityAccess.Access.class, groupAccess));
            test.setOwnerGroup(group);
View Full Code Here


   
    @Override
    protected final void search(Panel panel, E form, boolean formCached, ActionMessages errors, HttpServletRequest request, HttpServletResponse response) {
        final ListConfigurationVO.Type type = getType();
       
        UserVO user            = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);
       
        ListConfigurationVO choosenList = (ListConfigurationVO)panel.getAttribute("choosenList");
       
        if(panel.getAttribute("listConfigurations") == null) {
View Full Code Here

    private static Logger log = Logger.getLogger(PageJobAction.class);

    @Override
    protected void search(PageJobForm form, ActionMessages errors, HttpServletRequest request)
    {
        UserVO user       = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        CompanyVO company = (CompanyVO) getPanel().getEntity();
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

        List list = null;
        long count = 0;
View Full Code Here

    protected void chooseEntity(EntityPanel panel, AddUserForm form, ActionMessages errors, HttpServletRequest request, HttpServletResponse response)
    {
        if (log.isDebugEnabled())
            log.debug("add user with ID: " + form.getId());

        UserVO user = new UserDAO().getById(form.getId());

        if (user == null)
        {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("default.error.invalidEntity", new Integer(form.getId())));

            log.error("problems loading user (ID:" + form.getId() + ")");
        }
        else
        {
            CompanyVO company = (CompanyVO) panel.getEntity();
           
            if(!EntityAccessUtility.isAccessGranted(user, company, EntityAccess.Access.WRITE))
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("module.generic.pageSystem.error.missingWriteAccessForAssignedUser", user.getUserName()));
            else
                company.setAssignedUser(user);
        }
    }
View Full Code Here

    }
   
    @Override
    protected final void search(EntityPanel panel, E form, ActionMessages errors, HttpServletRequest request, HttpServletResponse response)
    {
        UserVO activeUser = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

        List<UserListVO> list = null;
        long count = 0;
View Full Code Here

    }
   
    @Override
    protected final void search(EntityPanel panel, E form, ActionMessages errors, HttpServletRequest request, HttpServletResponse response)
    {
        UserVO user   = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

        List<PersonListVO> list = null;
        long count = 0;
View Full Code Here

    protected abstract boolean isAdmin(EntityPanel panel);
   
    @Override
    protected final void search(EntityPanel panel, E form, ActionMessages errors, HttpServletRequest request, HttpServletResponse response)
    {
        UserVO activeUser = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

        List<UsergroupVO> list = null;
        long count = 0;
View Full Code Here

    protected abstract String getPath();
   
    @Override
    protected final void search(EntityPanel panel, E form, ActionMessages errors, HttpServletRequest request, HttpServletResponse response)
    {
        UserVO user   = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

        List<CompanyVO> list = null;
        long count = 0;
View Full Code Here

                log.debug("do ldap login");
            logon = new LdapLogon();         
        }
       
        ActionErrors errors = new ActionErrors();
        UserVO uservo = logon.validate(user, password, Logon.Type.WEBSERVICE, errors);
       
        if(uservo != null && errors.isEmpty())
        {      
            Authenticator auth = new Authenticator(uservo);
            if(auth.isValid(Right.EXTERN_WEBSERVICE_READ))
View Full Code Here

                log.debug("do ldap login");
            logon = new LdapLogon();         
        }
       
        ActionErrors errors = new ActionErrors();
        UserVO uservo = logon.validate(user, password, Logon.Type.WEBSERVICE, errors);
       
        if(uservo != null && errors.isEmpty())
        {
            Authenticator auth = new Authenticator(uservo);
            if(auth.isValid(Right.EXTERN_WEBSERVICE_WRITE))
View Full Code Here

TOP

Related Classes of org.opencustomer.db.vo.system.UserVO

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.