Class ServerRepositoryPaths
- java.lang.Object
-
- org.pentaho.platform.repository2.unified.ServerRepositoryPaths
-
public class ServerRepositoryPaths extends Object
Class of static methods that return commonly needed absolute paths like "tenant root folder path."- Author:
- mlowery
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServerRepositoryPaths.IServerRepositoryPathsStrategy
Interface that allows pathing to be configurable.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT
static String
SYSTEM_PROPERTY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getPentahoRootFolderName()
static String
getPentahoRootFolderPath()
static String
getTenantEtcFolderName()
static String
getTenantEtcFolderPath()
static String
getTenantEtcFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
static String
getTenantHomeFolderName()
static String
getTenantHomeFolderPath()
static String
getTenantHomeFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
static String
getTenantId(String absPath)
Returns the tenant id given an absolute path.static String
getTenantPublicFolderName()
static String
getTenantPublicFolderPath()
static String
getTenantPublicFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
static String
getTenantRootFolderPath()
static String
getTenantRootFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
static String
getUserHomeFolderPath(org.pentaho.platform.api.mt.ITenant tenant, String username)
static void
setStrategyName(String strategyName)
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
-
SYSTEM_PROPERTY
public static final String SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPentahoRootFolderPath
public static String getPentahoRootFolderPath()
-
getTenantHomeFolderPath
public static String getTenantHomeFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
-
getTenantPublicFolderPath
public static String getTenantPublicFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
-
getTenantRootFolderPath
public static String getTenantRootFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
-
getUserHomeFolderPath
public static String getUserHomeFolderPath(org.pentaho.platform.api.mt.ITenant tenant, String username)
-
getTenantId
public static String getTenantId(String absPath)
Returns the tenant id given an absolute path.- Parameters:
absPath
- absolute path which will be parsed to determine the tenant id- Returns:
- tenant id within the path
-
getTenantEtcFolderPath
public static String getTenantEtcFolderPath(org.pentaho.platform.api.mt.ITenant tenant)
-
getTenantHomeFolderPath
public static String getTenantHomeFolderPath()
-
getTenantPublicFolderPath
public static String getTenantPublicFolderPath()
-
getTenantRootFolderPath
public static String getTenantRootFolderPath()
-
getTenantEtcFolderPath
public static String getTenantEtcFolderPath()
-
getTenantHomeFolderName
public static String getTenantHomeFolderName()
-
getTenantPublicFolderName
public static String getTenantPublicFolderName()
-
getPentahoRootFolderName
public static String getPentahoRootFolderName()
-
getTenantEtcFolderName
public static String getTenantEtcFolderName()
-
setStrategyName
public static void setStrategyName(String strategyName)
-
-