Package com.centraview.common

Examples of com.centraview.common.UserObject


    String folderId = request.getParameter("folderId");

    FolderForm folderForm = (FolderForm)form;

    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int userId = ((UserObject)session.getAttribute("userobject")).getIndividualID();

    CvFileFacade cvf = new CvFileFacade();
    CvFolderVO fdvo = cvf.getFolder(userId,new Integer(folderId).intValue(), dataSource);
View Full Code Here


  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws RuntimeException, Exception
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    HttpSession session = request.getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");

    int individualID = userObject.getIndividualID();    // logged in user

    ActionErrors allErrors = new ActionErrors();
    String forward = ".view.email.compose";

    // "composeMailForm", defined in struts-config-email.xml
    DynaActionForm emailForm = (DynaActionForm)form;

    try {
      // figure out if we're 1. showing the FCKEditor and 2. setting content type == HTML
      UserPrefererences userPref= userObject.getUserPref();
      boolean composeInHTML = false;
      if ((userPref.getContentType()).equals("HTML")) {
        composeInHTML = true;
      }
      emailForm.set("composeInHTML", new Boolean(composeInHTML));
View Full Code Here

public class FileDispatchAction extends Action {
  private static Logger logger = Logger.getLogger(FileDispatchAction.class);
  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException
  {
    HttpSession session = request.getSession(true);
    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
   
    String rowId = request.getParameter("rowId");
    String type = request.getParameter("type");
    String scope = request.getParameter(FileConstantKeys.TYPEOFFILELIST);
   
View Full Code Here

  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    String forward = ".view.customer.user_list";
    // set up the left nav menu
    HttpSession session = request.getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualID = userObject.getIndividualID(); // logged in user
    int entityID = userObject.getEntityId(); // logged in user's entityID
    ActionErrors allErrors = new ActionErrors();
    try {
      ListPreference listPrefs = userObject.getListPreference("USER");
      String filter = "SELECT a.UserID FROM user a, individual b, entity c where a.IndividualID = b.IndividualID and b.Entity = c.EntityID and c.EntityID = " + entityID;
      ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPrefs, request, ValueListConstants.CUSTOMER_USER_LIST_TYPE, ValueListConstants.customerUserViewMap, false);
      listParameters.setFilter(filter);
      ValueList valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
      ValueListVO listObject = valueList.getValueList(individualID, listParameters);
View Full Code Here

    try {
      int sourceListId = 0;

      HttpSession session = request.getSession(true);
      UserObject userobjectd = (UserObject)session.getAttribute("userobject");
      int individualId = userobjectd.getIndividualID();
      String userType = userobjectd.getUserType();

      String sourceListID = request.getParameter("sourceListId");
      if (sourceListID != null && !sourceListID.equals("")) {
        sourceListId = Integer.parseInt(sourceListID);
      }
View Full Code Here

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException
  {
    String finalForward = ".view.marketing.events.list";
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    HttpSession session = request.getSession(true);
    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
   
    //  Check the session for an existing error message (possibly from the delete handler)
    ActionErrors allErrors = (ActionErrors)session.getAttribute("listErrorMessage");
    if (allErrors != null) {
      saveErrors(request, allErrors);
      session.removeAttribute("listErrorMessage");
    }
   
    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null)
      moduleList = (HashMap)globalMasterLists.get("moduleList");
   
    ListPreference listPreference = userObject.getListPreference("Event");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
   
    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters = (ValueListParameters)request.getAttribute("listParameters");
    if (requestListParameters == null) { // build up new Parameters
View Full Code Here

    PrintWriter writer = response.getWriter();

    StringBuffer output = new StringBuffer("");

    HttpSession session = request.getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");
   
    // get the user's preference for sync'ing as private or default privileges
    UserPrefererences userPrefs = userObject.getUserPref();
    String prefValue = (String)userPrefs.getSyncAsPrivate();
    boolean syncAsPrivate = (prefValue != null && prefValue.equals("YES")) ? true : false;

    int individualID = userObject.getIndividualID();    // logged in user

    // "sycnContactForm", defined in struts-config-sync.xml
    DynaActionForm contactForm = (DynaActionForm)form;
    SyncUtils syncUtils = new SyncUtils();
View Full Code Here

    if (allErrors != null) {
      saveErrors(request, allErrors);
      session.removeAttribute("listErrorMessage");
    }
   
    UserObject userObject = (UserObject) session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
    ListPreference listPreference = userObject.getListPreference("Rule");
    ListView view = listPreference.getListView( String.valueOf(listPreference.getDefaultView()));
    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters =  (ValueListParameters) request.getAttribute("listParameters");
    if (requestListParameters == null) // build up new Parameters
    {
View Full Code Here


    if((displayListSession!=null)&&(displayListSession.getListID()==idd))
      displayListSession.setDirtyFlag(true);

    UserObject  userobjectd = (UserObject)session.getAttribute( "userobject" );
    int individualID = userobjectd.getIndividualID();//get the individualId of the user logged in
    displayList.setDataSource(dataSource);
    ArrayList deleteLog = displayList.deleteElement(individualID, rowId);//deletes the element
    displayList.setDirtyFlag(true);

    if(deleteLog != null && !deleteLog.isEmpty()){
View Full Code Here

          && ((String) session.getAttribute("Alert_LicenseExpired")).equals("true")) {
        alertsArl.add("Licence has expired!! please contact CentraView");
      }

      // get the userid fron the userobject
      UserObject userobjectd = (UserObject) session.getAttribute("userobject");
      int userid = userobjectd.getIndividualID();

      hmConf.put("UserID", new Integer(userid));

      // fetch the alerts from DB
      AlertHome ah = (AlertHome) CVUtility.getHomeObject("com.centraview.alert.AlertHome", "Alert");
View Full Code Here

TOP

Related Classes of com.centraview.common.UserObject

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.