Package org.openbravo.base.secureApp

Examples of org.openbravo.base.secureApp.OrgTree


   * @param vars
   * @param currentOrg
   * @return comma delimited Stirng of referenceable organizations.
   */
  public static String getReferenceableOrg(VariablesSecureApp vars, String currentOrg) {
    final OrgTree tree = (OrgTree) vars.getSessionObject("#CompleteOrgTree");
    return tree.getLogicPath(currentOrg).toString();
  }
View Full Code Here


      OBContext.getOBContext().addWritableOrganization(AD_Org_ID);
      vars
          .setSessionValue("#USER_ORG", vars.getSessionValue("#USER_ORG") + ", '" + AD_Org_ID + "'");
      vars.setSessionValue("#ORG_CLIENT", vars.getSessionValue("#ORG_CLIENT") + ", '" + AD_Org_ID
          + "'");
      OrgTree tree = new OrgTree(this, AD_Client_ID);
      vars.setSessionObject("#CompleteOrgTree", tree);
      OrgTree accessibleTree = tree.getAccessibleTree(this, vars.getRole());
      vars.setSessionValue("#AccessibleOrgTree", accessibleTree.toString());
      // * Create User-Role

      // OrgUser - User
      if (InitialOrgSetupData.insertUserRoles(conn, this, AD_Client_ID, AD_User_U_ID, stradRoleId) != 1)
        log4j.warn("InitialOrgSetup - createOrg - UserRole OrgUser+Org NOT inserted");
View Full Code Here

TOP

Related Classes of org.openbravo.base.secureApp.OrgTree

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.