コード例 #1
0
  private String getPath() throws Exception {
    StringBuffer stringBuffer = new StringBuffer();

    stringBuffer.append(URLGLOBALS.getMainPath());
    stringBuffer.append(FREEBLISKET_PATH_GLOBALS.getInstance().XSLPATH);
    stringBuffer.append(this.getStoreName());
    stringBuffer.append(AbPathData.getInstance().SEPARATOR);

    return stringBuffer.toString();
  }
  public static UserConfigurationInterface getInstance(UserRole userRole) throws Exception {
    // user business object key as configuration file name
    AbPath abPath =
        new AbPath(
            URLGLOBALS.getMainPath() + FREEBLISKET_PATH_GLOBALS.getInstance().USERCONFIGURATIONPATH,
            configurationName
                + userRole.toString()
                + AbPathData.getInstance().EXTENSION_SEP
                + UserConfigurationData.UNCRYPTED_EXTENSION);

    String documentString =
        new CryptFileReader(
                UserConfigurationData.UNCRYPTED_EXTENSION,
                UserConfigurationData.ENCRYPTED_EXTENSION)
            .get(abPath);

    Document document = DomDocumentHelper.create(documentString);

    return UserConfigurationInterfaceFactory.getInstance(document);
  }