Package org.jallinone.commons.client

Examples of org.jallinone.commons.client.ClientApplet


  public AccountsFilterFrame() {
    try {
      jbInit();

      // set domain in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("ACC06_ACCOUNT");
      Domain domain = new Domain("DOMAIN_ACC06_ACCOUNT");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "ACC06_ACCOUNT",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);
View Full Code Here



  public AccountingItemVatFrame(AccountingItemVatController controller) {
    try {
      // set companies in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("ACC05_NEW_ITEM_VAT");
      Domain domain = new Domain("DOMAIN_ACC05_NEW_ITEM_VAT");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "ACC05_NEW_ITEM_VAT",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);
View Full Code Here


  public AccountingItemNoVatFrame(AccountingItemNoVatController controller) {
    try {
      // set companies in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("ACC05_NEW_ITEM_NOVAT");
      Domain domain = new Domain("DOMAIN_ACC05_NEW_ITEM_NOVAT");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "ACC05_NEW_ITEM_NOVAT",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);
View Full Code Here

  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    ValueObject newValueObject = (ValueObject)newValueObjects.get(0);
    SubjectHierarchyVO vo = (SubjectHierarchyVO)newValueObject;
    vo.setSubjectTypeREG08(subjectTypeREG08);

    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    ArrayList companiesList = bca.getCompaniesList(functionId);
    if (vo.getCompanyCodeSys01REG08()==null)
      vo.setCompanyCodeSys01REG08( companiesList.get(0).toString() );

    Response res = ClientUtils.getData("insertSubjectHierarchy",vo);
View Full Code Here

    Response response = ClientUtils.getData("insertRoles",newValueObjects);
    if (!response.isError()) {
      currentProgressiveSYS04 = null;
      List rows = ((VOListResponse)response).getRows();
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      for(int i=0;i<rows.size();i++) {
        vo = (RoleVO)rows.get(i);
        applet.getAuthorizations().getUserRoles().put(vo.getProgressiveSYS04(),vo.getDescriptionSYS10());
      }
    }
    return response;
  }
View Full Code Here

   * This method must be overridden by the subclass to retrieve data and return the valorized value object.
   * @param valueObjectClass value object class
   * @return a VOResponse object if data loading is successfully completed, or an ErrorResponse object if an error occours
   */
  public Response loadData(Class valueObjectClass) {
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    return new VOResponse(applet.getAuthorizations());
  }
View Full Code Here

      }
    }

    // add to the domain about data import type:
    // - customers
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    ArrayList companiesList = bca.getCompaniesList("SAL07");
    for(int i=0;i<companiesList.size();i++) {
      if (applet.getAuthorizations().getCompanyBa().isInsertEnabled("SAL07",companiesList.get(i).toString())) {
        ditVO = new DataImportType();
        ditVO.comboItemIndex = pos++;
        ditVO.className = ImportCustomersDescriptorVO.class.getName();
        ditVO.companyCodeSys01 = companiesList.get(i).toString();
        dit.addDomainPair(
View Full Code Here

  /**
   * @return list of role identifiers associated to the specified user (Object[] values)
   * @throws Throwable throwed if fetching operation does not correctly accomplished
   */
  public ArrayList getUserRoles() throws Throwable {
    ClientApplet applet = ( (ApplicationClientFacade)MDIFrame.getInstance().getClientFacade()).getMainClass();
    Iterator it = applet.getAuthorizations().getUserRoles().keySet().iterator();
    ArrayList userRoles = new ArrayList();
    while(it.hasNext())
      userRoles.add(new Object[]{it.next()});
    return userRoles;
//    Response res = ClientUtils.getData("dbGridPermissions",new Object[]{
View Full Code Here

   * @param columnsMandatory define which columns are required on insert/edit mode; used to correctly define GridPermissions content: a column will be marked as required if currently not required but NOT the inverse
   * @return GridPermissions object, built starting from user roles for the specified grid identifier
   * @throws Throwable throwed if fetching operation does not correctly accomplished
   */
  public GridPermissions getUserGridPermissions(String functionId,ArrayList userRoles,String[] columnAttributes,boolean[] columnsVisibility,boolean[] columnEditableInInsert,boolean[] columnsEditableInEdit,boolean[] columnsMandatory) throws Throwable{
    ClientApplet applet = ( (ApplicationClientFacade)MDIFrame.getInstance().getClientFacade()).getMainClass();
    GridPermissions serverPermissions = (GridPermissions)applet.getAuthorizations().getGridPermissions().get(functionId);

    GridPermissions permissions = new GridPermissions(
      functionId,
      getUsername(),
      (String[])columnAttributes.clone(),
View Full Code Here

   * @return retrieve the "grid digest", i.e. a value that globally identify the current grid configuration; this digest is used to check if grid columns have been changed from last grid execution: in this case all grid permissions will be deleted
   * @throws Throwable throwed if fetching operation does not correctly accomplished
   * Note: this method returns null if no digest has been yet stored (i.e. this is the first time the grid is being viewed)
   */
  public String getLastGridDigest(String functionId) throws Throwable {
    ClientApplet applet = ( (ApplicationClientFacade)MDIFrame.getInstance().getClientFacade()).getMainClass();
    return (String)applet.getAuthorizations().getLastGridPermissionsDigests().get(functionId);


//    Response res = ClientUtils.getData("dbGridPermissions",new Object[]{
//        "getLastGridDigest",
//        functionId
View Full Code Here

TOP

Related Classes of org.jallinone.commons.client.ClientApplet

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.