|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OwRoleManagerContext
Interface for the role manager context.
The context keeps basic configuration, localization and environment information and is independent to the web context.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Method Summary | |
---|---|
String |
createTempDir(String strPrefix_p)
creates a unique temp directory |
void |
deleteTempDir(String strDir_p)
deletes a temp dir and all files within it |
OwBaseConfiguration |
getBaseConfiguration()
get the configuration information |
String |
getBasePath()
get the base path to the application |
String |
getClientID()
get a ID / name for the calling client |
String |
getConfigurationName()
get a name for the configuration to use can be used to distinguish different applications |
OwBaseUserInfo |
getCurrentUser()
get the current user |
OwHistoryManager |
getHistoryManager()
get the history manager of the current logged in user |
String |
getInitParameter(String strParamName_p)
get a parameter from the config file |
org.springframework.jdbc.core.JdbcTemplate |
getJDBCTemplate()
get a spring JDBC template for the default data source |
Locale |
getLocale()
get the current locale, which can be used as a prefix/postfix to distinguish localization resources |
OwMandator |
getMandator()
get the mandator interface of the current logged in user |
String |
getMandatorID()
get a ID / name for the calling mandator |
OwMandatorManager |
getMandatorManager()
get the mandator manager of the current logged in user |
OwNetwork |
getNetwork()
get the network interface of the current logged in user |
InputStream |
getXMLConfigDoc(String strName_p)
loads a XML Document either from local file, external file or from a JNDI context |
boolean |
hasLabel(String strName_p)
check if a display label is defined for the given symbol name |
String |
localize(String strKey_p,
String strText_p)
localizes a string |
String |
localize1(String strKey_p,
String strText_p,
String strAttribute1_p)
localizes a string with additional parameter that is replaced with %1 |
String |
localize2(String strKey_p,
String strText_p,
String strAttribute1_p,
String strAttribute2_p)
localizes a string with additional parameter that is replaced with %1 |
String |
localize3(String strKey_p,
String strText_p,
String strAttribute1_p,
String strAttribute2_p,
String strAttribute3_p)
localizes a string with additional parameter that is replaced with %1 |
String |
localizeLabel(String strName_p)
optionally translate a name into a readable label, used for property class names in ECM adaptors which do not support separate displaynames |
Methods inherited from interface com.wewebu.ow.server.conf.OwBaseInitializer |
---|
getApplicationAttribute, getConfigURL, setApplicationAttribute |
Method Detail |
---|
OwBaseConfiguration getBaseConfiguration()
org.springframework.jdbc.core.JdbcTemplate getJDBCTemplate()
Locale getLocale()
String localizeLabel(String strName_p)
strName_p
- name e.g. attribute name to look for
boolean hasLabel(String strName_p)
strName_p
- name e.g. attribute name to look for
String localize(String strKey_p, String strText_p)
strKey_p
- Key value used to retrieve localized string from resourcestrText_p
- current language Text
String localize1(String strKey_p, String strText_p, String strAttribute1_p)
strKey_p
- Key value used to retrieve localized string from resourcestrText_p
- current language TextstrAttribute1_p
- String that replaces %1 tokens
String localize2(String strKey_p, String strText_p, String strAttribute1_p, String strAttribute2_p)
strKey_p
- Key value used to retrieve localized string from resourcestrText_p
- current language TextstrAttribute1_p
- String that replaces %1 tokensstrAttribute2_p
- String that replaces %2 tokens
String localize3(String strKey_p, String strText_p, String strAttribute1_p, String strAttribute2_p, String strAttribute3_p)
strKey_p
- Key value used to retrieve localized string from resourcestrText_p
- current language TextstrAttribute1_p
- String that replaces %1 tokensstrAttribute2_p
- String that replaces %2 tokensstrAttribute3_p
- String that replaces %3 tokens
String getConfigurationName()
InputStream getXMLConfigDoc(String strName_p) throws Exception
getXMLConfigDoc
in interface OwBaseInitializer
strName_p
- Name of the resource to look for
Exception
String getBasePath()
getBasePath
in interface OwBaseInitializer
String getInitParameter(String strParamName_p)
getInitParameter
in interface OwBaseInitializer
strParamName_p
- Name of the requested parameter
OwBaseUserInfo getCurrentUser() throws Exception
Exception
void deleteTempDir(String strDir_p)
strDir_p
- String directoryString createTempDir(String strPrefix_p) throws OwConfigurationException
strPrefix_p
- String prefix to use for name
OwConfigurationException
String getClientID()
String getMandatorID()
OwMandator getMandator()
OwNetwork getNetwork()
OwHistoryManager getHistoryManager()
OwMandatorManager getMandatorManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |