Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.UserProxy


 
  public static List<UserComment> getUserCommentsByUserInode(String userInode)
  {
    int offset = 0;
    int limit = 0;
    UserProxy userProxy;
    try {
      userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(userInode,APILocator.getUserAPI().getSystemUser(), false);
    } catch (Exception e) {
      Logger.error(UserCommentsFactory.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
   

    return getUserCommentsByProxyInode( userProxy.getInode(),offset,limit);
  }
View Full Code Here


    return getUserCommentsByProxyInode( userProxy.getInode(),offset,limit);
  }
 
  public static List<UserComment> getUserCommentsByProxyInode(String userProxyInode,int offset,int limit)
  {
    UserProxy userProxy = (UserProxy) InodeFactory.getInode(userProxyInode,UserProxy.class);
    List<UserComment> userComments = (List<UserComment>) InodeFactory.getChildrenClass(userProxy,UserComment.class,"cdate desc",limit,offset);
    return userComments;
  }
View Full Code Here

    }


    public static void deleteUserComment(String userProxyInode,UserComment userComment) throws DotHibernateException
    {
      UserProxy userProxy;
    try {
      userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(userProxyInode,APILocator.getUserAPI().getSystemUser(), false);
    } catch (Exception e) {
      Logger.error(UserCommentsFactory.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
      InodeFactory.deleteInode(userComment);
      userProxy.deleteChild(userComment);
    }
View Full Code Here

      deleteUserComment(userProxyInode,userComment);                 
    }

    public static void saveUserComment(String userProxyInode,UserComment userComment) throws DotHibernateException
    {
      UserProxy userProxy;
    try {
      userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(userProxyInode,APILocator.getUserAPI().getSystemUser(), false);
    } catch (Exception e) {
      Logger.error(UserCommentsFactory.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
   
      HibernateUtil.saveOrUpdate(userComment);
      userProxy.addChild(userComment);
    }
View Full Code Here

    }
   
    public static void saveUserComment(UserComment userComment) throws DotHibernateException
    {
      String userId = userComment.getUserId();     
      UserProxy userProxy;
    try {
      userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(userId,APILocator.getUserAPI().getSystemUser(), false);
    } catch (Exception e) {
      Logger.error(UserCommentsFactory.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
      HibernateUtil.saveOrUpdate(userComment);
      userProxy.addChild(userComment);
    }
View Full Code Here

  public static List<UserComment> getUserCommentsByComm(String userProxyInode, String communicationId)
  {
    int limit = 0;
    int offset = 0;
    UserProxy userProxy = (UserProxy) InodeFactory.getInode(userProxyInode,UserProxy.class);
    List<UserComment> userComments = (List<UserComment>) InodeFactory.getChildrenClassByCondition(userProxy,UserComment.class,"communication_id = '"+communicationId+"'",limit,offset);
    return userComments;
    }
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.UserProxy

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.