Package org.openswing.swing.internationalization.server

Examples of org.openswing.swing.internationalization.server.ServerResourcesFactory


      HttpServletResponse response,
      HttpSession userSession,
      ServletContext context) {
    try {
      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another people with the same first and last name.");
      String t2 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");

      Subjects bean = (Subjects)JAIOBeanFactory.getInstance().getBean(Subjects.class);
      Response answer = null;
      if (inputPar instanceof PeopleVO)
        answer = bean.insertPeople((PeopleVO)inputPar,t1,t2,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here


      HttpSession userSession,
      ServletContext context) {
    java.util.ArrayList list = (ArrayList)inputPar;
    try {
      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String t1 = resources.getResource("is an ancestor of the current item");

      BillOfMaterials bean = (BillOfMaterials)JAIOBeanFactory.getInstance().getBean(BillOfMaterials.class);
      Response answer = bean.insertComponents(list,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),t1);
View Full Code Here


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    GridParams gridParams = (GridParams)inputPar;
    try {
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      Properties p = resources.getDictionary();

      Roles bean = (Roles)JAIOBeanFactory.getInstance().getBean(Roles.class);
      Response answer = bean.loadGridPermissionsPerRole(p,gridParams,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_SUPPLIER_GRID);

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");

      Suppliers bean = (Suppliers)JAIOBeanFactory.getInstance().getBean(Suppliers.class);
      Response answer = bean.updateSupplier(oldVO,newVO,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),customizedFields);

      return answer;
View Full Code Here

      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_SUPPLIER_GRID);

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");

      Suppliers bean = (Suppliers)JAIOBeanFactory.getInstance().getBean(Suppliers.class);
      Response answer = bean.insertSupplier(vo,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);

      return answer;
View Full Code Here

      Integer month = (Integer)pars[1];
      String companyCode = (String)pars[2];
      String docType = (String)pars[3];
      SaleReportVO[] rows = salesReport(year,month,companyCode,docType,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());

      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources resources = factory.getResources(userSessionPars.getLanguageId());
      String title = resources.getResource("invoiced");
      if (docType.equals(ApplicationConsts.SALE_DESK_DOC_TYPE))
        title = resources.getResource("desk selling");
      String y = resources.getResource("sellAmount");
      String x = resources.getResource("months");
View Full Code Here

  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    try {
      MovementVO vo = (MovementVO)inputPar;

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources res = factory.getResources(userSessionPars.getLanguageId());
      String t1 = res.getResource("the warehouse motive specified is not defined");

      ManualMovements bean = (ManualMovements)JAIOBeanFactory.getInstance().getBean(ManualMovements.class);
      Response answer = bean.insertManualMovement(vo,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

      MovementVO voTemplate = (MovementVO)pars[0];
      VariantsMatrixVO matrixVO = (VariantsMatrixVO)pars[1];
      Object[][] cells = (Object[][])pars[2];

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources res = factory.getResources(userSessionPars.getLanguageId());
      String t1 = res.getResource("the warehouse motive specified is not defined");

      ManualMovements bean = (ManualMovements)JAIOBeanFactory.getInstance().getBean(ManualMovements.class);
      Response answer = bean.insertManualMovements(voTemplate,matrixVO,cells,t1,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

    try {
      HashMap params = (HashMap)inputPar;


      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      Resources res = factory.getResources(userSessionPars.getLanguageId());
      String t1 = res.getResource("jasper file not found: report generation is not possible.");
      String langId = res.getLanguageId();
//      String reportDir = context.getRealPath("WEB-INF/classes/reports/") +"/";
      String dateformat = res.getDateMask(Consts.TYPE_DATE);
View Full Code Here

    try {
      Subject oldVO = (Subject)((ValueObject[])inputPar)[0];
      Subject newVO = (Subject)((ValueObject[])inputPar)[1];

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another people with the same first and last name.");
      String t2 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");

      Contacts bean = (Contacts)JAIOBeanFactory.getInstance().getBean(Contacts.class);
      Response answer = null;
      if (newVO.getSubjectTypeREG04().equals(ApplicationConsts.SUBJECT_ORGANIZATION_CONTACT))
        answer = bean.updateOrganization((OrganizationVO)oldVO,(OrganizationVO)newVO,t1,t2,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

TOP

Related Classes of org.openswing.swing.internationalization.server.ServerResourcesFactory

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.