public class HomeLibrary extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HOME_ATTRIBUTE_NAME
Home attribute name in ASLSession.
|
protected static HomeManagerFactory |
instance |
protected static org.slf4j.Logger |
staticLogger |
| Constructor and Description |
|---|
HomeLibrary() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkPersistenceFolder(String persistenceFolder)
Check if the persistence folder exists otherwise create it.
|
protected static HomeManagerFactory |
createHomeManagerFactoryInstance(String persistenceRoot) |
static HomeManagerFactory |
getHomeManagerFactory()
Return the HomeManagerFactory.
|
static HomeManagerFactory |
getHomeManagerFactory(String persistenceRoot)
Return an instance of HomeManager factory for the given path.
|
protected static HomeManagerFactory |
getHomeManagerFactoryImplementation()
Returns the HomeManagerFactory implementation to use.
|
static ApplicationsArea |
getUserDataArea(String portalLogin)
Return the DataArea for the user in session.
|
static Home |
getUserHome(String portalLogin)
Return the Home for the user in session.
|
static Workspace |
getUserWorkspace(String portalLogin)
Return the Workspace for the user in session.
|
public static final String HOME_ATTRIBUTE_NAME
protected static org.slf4j.Logger staticLogger
protected static HomeManagerFactory instance
protected static HomeManagerFactory getHomeManagerFactoryImplementation() throws InternalErrorException
InternalErrorException - if an error occurs retrieving the HomeManagerFactory implementation.protected static void checkPersistenceFolder(String persistenceFolder) throws InternalErrorException
persistenceFolder - the persistence folder to check.InternalErrorException - if the persistence folder check fails.protected static HomeManagerFactory createHomeManagerFactoryInstance(String persistenceRoot) throws InternalErrorException
InternalErrorExceptionpublic static HomeManagerFactory getHomeManagerFactory(String persistenceRoot) throws InternalErrorException
persistenceRoot - the persistence root.InternalErrorException - if an error occurs.public static HomeManagerFactory getHomeManagerFactory() throws InternalErrorException
InternalErrorException - if an error occurs.public static Workspace getUserWorkspace(String portalLogin) throws InternalErrorException, HomeNotFoundException, WorkspaceFolderNotFoundException
session - the asl session.InternalErrorException - if an error occurs.HomeNotFoundException - if the user home is not found.WorkspaceFolderNotFoundException - if the user workspace is not found.public static ApplicationsArea getUserDataArea(String portalLogin) throws InternalErrorException, HomeNotFoundException
session - the ASL session.InternalErrorException - if an error occurs.HomeNotFoundException - if the user home is not found.public static Home getUserHome(String portalLogin) throws InternalErrorException, HomeNotFoundException
session - the asl session.InternalErrorException - if an error occurs.HomeNotFoundException - if the user home is not found.Copyright © 2020. All Rights Reserved.