public class KSDataLocation extends Object
JCRSessionManager accessible by getSessionManager() is configured on the appropriate repository and workspace.NodeHierarchyCreator to initialize the structure and provide pathes aliases.| Modifier and Type | Class and Description |
|---|---|
static interface |
KSDataLocation.Locations
Location names for KS data storage
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REPOSITORY_NAME
Default repository name used if none is specified
|
static String |
DEFAULT_WORKSPACE_NAME
Default workspace name used if none is specified
|
static String |
WORKSPACE_PARAM
Parameter name use to designate the name of the workspace in the repository where the data is stored.
|
| Constructor and Description |
|---|
KSDataLocation(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator creator,
org.exoplatform.services.jcr.RepositoryService repositoryService)
Creates a new
KSDataLocation and initializes pathes. |
KSDataLocation(String workspace) |
KSDataLocation(String workspace,
org.exoplatform.services.jcr.RepositoryService repositoryService)
Mainly used for tests
|
public static final String WORKSPACE_PARAM
InitParamspublic static final String DEFAULT_REPOSITORY_NAME
public static final String DEFAULT_WORKSPACE_NAME
public KSDataLocation(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator creator,
org.exoplatform.services.jcr.RepositoryService repositoryService)
KSDataLocation and initializes pathes.params - WORKSPACE_PARAM is expected as value-paramcreator - used to resolve path names. It is also declared here to ensure that the data structure has been initalized before.public KSDataLocation(String workspace, org.exoplatform.services.jcr.RepositoryService repositoryService)
workspace - public KSDataLocation(String workspace)
public void setLocation(DataLocationPlugin plugin)
plugin - plugin defining repository and workspace location for the data storageprotected String getPath(String locationName)
locationName - name of the location such a defined in KSDataLocation.LocationsNodeHierarchyCreator.
If the creator was not set, returns the locationName.
The path returned is relative to root (no leading '/')public String getRepository()
public org.exoplatform.services.jcr.RepositoryService getRepositoryService()
public String getWorkspace()
public SessionManager getSessionManager()
public void setSessionManager(SessionManager manager)
public String getForumHomeLocation()
public String getForumDataLocation()
public String getForumSystemLocation()
public String getBanIPLocation()
public String getStatisticsLocation()
public String getAdministrationLocation()
public String getUserProfilesLocation()
public String getForumCategoriesLocation()
public String getTagsLocation()
public String getAvatarsLocation()
public String getForumBanIPLocation()
public String getBBCodesLocation()
public String getFaqHomeLocation()
public String getFaqSettingsLocation()
public String getFaqUserSettingsLocation()
public String getFaqCategoriesLocation()
public String getFaqTemplatesLocation()
public String getForumStatisticsLocation()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.