|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.forum.common.jcr.KSDataLocation
public class KSDataLocation
This class is meant to be the starting for any data storage access in KS.
Provides all JCR pathes usable in KS JCR data storage.
A JCRSessionManager accessible by getSessionManager() is configured on the appropriate repository and workspace.
Relies on NodeHierarchyCreator to initialize the structure and provide pathes aliases.
| Nested Class Summary | |
|---|---|
static interface |
KSDataLocation.Locations
Location names for KS data storage |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String WORKSPACE_PARAM
InitParams
public static final String DEFAULT_REPOSITORY_NAME
public static final String DEFAULT_WORKSPACE_NAME
| Constructor Detail |
|---|
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 - #REPOSITORY_PARAM and WORKSPACE_PARAM are 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)
| Method Detail |
|---|
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.Locations
NodeHierarchyCreator.
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()
public String toString()
toString in class Objectpublic String getUserSubscriptionLocation(String userId)
userId - user id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||