Package com.dotcms.repackage.org.directwebremoting

Examples of com.dotcms.repackage.org.directwebremoting.WebContext


    return callbackData;
  }

  public void archiveEvent (String inode) throws PortalException, SystemException, DotDataException, DotSecurityException {
    HibernateUtil.startTransaction();
    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();

    //Retrieving the current user
    User user = userAPI.getLoggedInUser(request);
    boolean respectFrontendRoles = true;
View Full Code Here


    }
  }
 
  public void archiveDisconnectedEvent (String inode, boolean putBack) throws PortalException, SystemException, DotDataException, DotSecurityException {
    HibernateUtil.startTransaction();
    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();

    //Retrieving the current user
    User user = userAPI.getLoggedInUser(request);
    boolean respectFrontendRoles = true;
View Full Code Here

 
 

  public void unarchiveEvent (String inode) throws PortalException, SystemException, DotDataException, DotSecurityException {
    HibernateUtil.startTransaction();
    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();

    //Retrieving the current user
    User user = userAPI.getLoggedInUser(request);
    boolean respectFrontendRoles = true;
View Full Code Here



  public Map<String,Object> deleteEvent (String identifier) throws PortalException, SystemException, DotDataException, DotSecurityException {
    HibernateUtil.startTransaction();
    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();
    List<String> eventDeleteErrors = new ArrayList<String>();
    Map<String,Object> callbackData = new HashMap<String,Object>();

    //Retrieving the current user
    User user = userAPI.getLoggedInUser(request);
View Full Code Here

    return callbackData;
  }   
 
  public List<Map<String, Object>> findLocations(String filter) throws DotDataException, DotSecurityException, PortalException, SystemException {

    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();

    //Retrieving the current user
    User user = userAPI.getLoggedInUser(request);
    boolean respectFrontendRoles = true;
View Full Code Here

    return callbackData;
  }
 
  public Map<String, Object> disconnectEvent(String inode,String startDateStr, String endDateStr) throws DotRuntimeException, PortalException, SystemException, DotDataException, DotSecurityException, java.text.ParseException{

    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();

    //Retrieving the current user
    User user = userAPI.getLoggedInUser(request);
    boolean respectFrontendRoles = true;
View Full Code Here

  public Map<String, Object> getUserById(String userId) throws DotDataException,DotSecurityException {

    UserWebAPI uWebAPI = WebAPILocator.getUserWebAPI();
    UserProxyAPI uProxyWebAPI = APILocator.getUserProxyAPI();
    WebContext ctx = WebContextFactory.get();
    HttpServletRequest request = ctx.getHttpServletRequest();

    UserAPI uAPI = APILocator.getUserAPI();

    User user = null;
    try {
View Full Code Here

  }

    public Map<String, Object> createMailingList(String pageIdentifier, Date startDate, Date endDate, String mailingListTitle, boolean allowPublicToSubscribe) throws Exception {

      UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
        WebContext ctx = WebContextFactory.get();
        User user = userWebAPI.getLoggedInUser(ctx.getHttpServletRequest());
       
        //Saving mailing list
        MailingList ml = new MailingList();
        ml.setTitle(mailingListTitle);
        ml.setPublicList(allowPublicToSubscribe);
View Full Code Here

    }
   
    public Map<String, Object> addToMailingList(String pageIdentifier, Date startDate, Date endDate, String mailingListInode) throws Exception {
       
      UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
        WebContext ctx = WebContextFactory.get();
        User user = userWebAPI.getLoggedInUser(ctx.getHttpServletRequest());
      MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
     
        //Adding subscribers
        HTMLPage htmlPage = APILocator.getHTMLPageAPI().loadWorkingPageById(pageIdentifier, user, false);
        List<Map<String, String>> users = retrieveUsers(htmlPage, startDate, endDate, user);
View Full Code Here

    }

    public Map<String, Object> removeFromMailingList(String pageIdentifier, Date startDate, Date endDate, String mailingListInode) throws Exception {

      UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
        WebContext ctx = WebContextFactory.get();
        User user = userWebAPI.getLoggedInUser(ctx.getHttpServletRequest());
      MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);

        //Removing subscribers
        HTMLPage htmlPage = APILocator.getHTMLPageAPI().loadWorkingPageById(pageIdentifier, user, false);
        List<Map<String, String>> users = retrieveUsers(htmlPage, startDate, endDate, user);
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.directwebremoting.WebContext

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.