Example #1
0
 public static String getProperty(String key) {
   if (properties == null) {
     properties =
         new LiveProperties(
             new File(weaveContextParams.getConfigPath(), "config.properties"),
             MapUtils.<String, String>fromPairs(ALLOW_R_SCRIPT_ACCESS, "false"));
   }
   return properties.getProperty(key);
 }
Example #2
0
  public Map<String, Object> getServerInfo() throws RemoteException {
    ConnectionConfig connConfig = getConnectionConfig();
    HttpSession session = getServletRequestInfo().request.getSession(true);
    String username = (String) session.getAttribute(SESSION_USERNAME);

    return MapUtils.fromPairs(
        "version",
        WeaveConfig.getVersion(),
        "authenticatedUser",
        username,
        "hasDirectoryService",
        connConfig.getConnectionInfo(ConnectionInfo.DIRECTORY_SERVICE) != null,
        "idFields",
        connConfig.getDatabaseConfigInfo().idFields);
  }
Example #3
0
 /**
  * Use getHierarchyInfo() instead. This function is provided for backwards compatibility only.
  *
  * @deprecated
  */
 @Deprecated
 public EntityHierarchyInfo[] getDataTableList() throws RemoteException {
   return getDataConfig()
       .getEntityHierarchyInfo(
           MapUtils.<String, String>fromPairs(PublicMetadata.ENTITYTYPE, EntityType.TABLE));
 }