Package org.opencustomer.db.vo.system

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


        if (access == null)
            hasAccess = true;
        else
        {
            UserVO user = (UserVO) pageContext.getSession().getAttribute(Globals.USER_KEY);

            Object obj = TagUtils.getInstance().lookup(pageContext, name, property, scope);
           
            if(obj instanceof EntityAccess)
            {
View Full Code Here


    }
   
    @Override
    protected void search(Panel panel, ListForm form, boolean formCached, 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<CalendarListVO> list = null;
        long count = 0;
View Full Code Here

                || form.getDoStatusReject().isSelected()
                || form.getDoStatusDelete().isSelected()) {
            if (log.isDebugEnabled())
                log.debug("change status");
           
            UserVO user = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
            CalendarVO calendar = (CalendarVO)getPanel().getAttribute("calendar");
            EventCalendarVO userEventCalendar = null;
           
            List<EventCalendarVO> eventCalendars = (List<EventCalendarVO>)getPanel().getAttribute("eventCalendars");
            for(EventCalendarVO eventCalendar : eventCalendars) {
View Full Code Here

    }
   
    @Override
    protected void execute(Panel panel, ShowMonthForm form, ActionMapping mapping, HttpServletRequest request, HttpServletResponse response)
    {
        UserVO activeUser   = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);
        boolean update = true;
       
        // Pr�fe ob schon ein Standardkalender besteht
        CalendarVO calendar = (CalendarVO) panel.getAttribute("calendar");

        ActionMessages errors = getErrors(request);
        if(errors.isEmpty()) {
            if (form.getId() > 0) {
                calendar = new CalendarDAO().getById(form.getId());
                if (!EntityAccessUtility.isAccessGranted(activeUser, calendar, EntityAccess.Access.READ)) {
                    log.debug("user tries to access an invalid calendar");
                    errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("default.error.invalidEntity", calendar.getId()));
                    calendar = null;
                   
                    // refresh the user
                    UserVO user = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
                    user = new UserDAO().getById(user.getId());
                    if(user != null) {
                        request.getSession().setAttribute(Globals.USER_KEY, user);
                    } else {
                        log.info("could not reload user (may be deleted)");
                    }
View Full Code Here

{
    private static Logger log = Logger.getLogger(DeleteAction.class);

    @Override
    protected void deleteEntity(DeletePanel panel, HttpServletRequest request, HttpServletResponse response, ActionMessages errors) {
        UserVO user         = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        EventVO event       = (EventVO)panel.getEntity();
       
        try {
            if(log.isDebugEnabled()) {
                log.debug("delete event: "+event);
View Full Code Here

    private static Logger log = Logger.getLogger(SaveAction.class);
   
    @Override
    protected void saveEntity(EditPanel panel, ActionMessages errors, HttpServletRequest request)
    {
        UserVO user         = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);       
        CalendarVO calendar = (CalendarVO) panel.getAttribute("calendar");

        try
        {
            if (log.isDebugEnabled())
View Full Code Here

    private static Logger log = Logger.getLogger(SaveAction.class);
   
    @Override
    protected void saveEntity(EditPanel panel, ActionMessages errors, HttpServletRequest request)
    {
        UserVO user = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);
       
        EventVO event = (EventVO) panel.getEntity();
        try
        {
            HibernateContext.getSession().clear();
View Full Code Here

    }
   
    @Override
    protected boolean validateData(EditPanel panel, ActionMessages errors, HttpServletRequest request)
    {
        UserVO user            = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);
        EventVO event          = (EventVO) panel.getAttribute("event");
        CalendarVO calendar    = (CalendarVO) panel.getAttribute("calendar");
       
        EntityAccess testEntity = null;
        if (event.getId() == null)
View Full Code Here

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

    @Override
    public EditPanel createPanel(ActionMessages errors, EditLoadForm form, Hashtable<String, Object> attributes, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    {
        UserVO activeUser = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
       
        CalendarVO calendar = (CalendarVO)attributes.get("calendar");

        EditPanel panel = new EditPanel(Right.CALENDAR_CALENDAR_WRITE, calendar);
       
View Full Code Here

        }
    }
   
    @Override
    protected boolean validateAccess(HttpServletRequest request, EditPanel panel) {
        UserVO user = (UserVO) request.getSession().getAttribute(Globals.USER_KEY);
        CalendarVO calendar = (CalendarVO)panel.getAttribute("calendar");
       
        EventCalendarVO myEventCalendar = null;
       
        EventVO event = (EventVO)panel.getEntity();
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.