|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.swtservice.ApplicationContext
public class ApplicationContext
Handles the swtservice specific context.
Constructor Summary | |
---|---|
ApplicationContext(SDataServletContext sDataServletContext)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getCustomUIDefinitionsBasePath(SDataRequest request)
Gets the path the the user's custom UI Definitions directory under the shared folder. |
protected static com.sage.accpac.sm.Program |
getProgramFromRequest(SDataRequest request)
Gets the program information from the specified SData request. |
java.lang.String |
getResourceKindDBFormatPath()
Gets the path to the directory where resource kind DB table structure files are stored |
java.lang.String |
getSchemaBasePath()
Gets the file path the to the schema definitions directory. |
SDataServletContext |
getServletContext()
Gets the SDataServletContext that hold information for the whole servlet |
java.lang.String |
getSwtServicesBasePath()
Gets the path to the SwtServices directory under WEB-INF/configuration |
java.lang.String |
getTenantID(SDataRequest request)
Gets the tenantID from the SDataRequest |
java.lang.String |
getUIContentBasePath()
Gets the path to the UI content directory under ../swtServices |
java.lang.String |
getUIDefinitionsBasePath()
Gets the path to the UI definitions directory under ../swtServices |
UserInfo |
getUserInfoFromRequest(SDataRequest request)
Gets the signed-on user's information from the specified SData request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationContext(SDataServletContext sDataServletContext)
sDataServletContext
- Sdata servlet contextMethod Detail |
---|
public SDataServletContext getServletContext()
getServletContext
in interface SwtApplicationContext
public java.lang.String getResourceKindDBFormatPath()
public java.lang.String getSwtServicesBasePath()
SwtApplicationContext
getSwtServicesBasePath
in interface SwtApplicationContext
public java.lang.String getUIContentBasePath()
SwtApplicationContext
getUIContentBasePath
in interface SwtApplicationContext
public java.lang.String getUIDefinitionsBasePath()
SwtApplicationContext
getUIDefinitionsBasePath
in interface SwtApplicationContext
public java.lang.String getCustomUIDefinitionsBasePath(SDataRequest request)
SwtApplicationContext
getCustomUIDefinitionsBasePath
in interface SwtApplicationContext
request
- the SDataRequest
public java.lang.String getSchemaBasePath()
SwtApplicationContext
getSchemaBasePath
in interface SwtApplicationContext
public UserInfo getUserInfoFromRequest(SDataRequest request)
Gets the signed-on user's information from the specified SData request.
NOTE: This method never returns null - it throws an exception (most likely an "unauthorized" exception) if it encounters a problem. Also, the user information that it returns is non-null and non-empty and in a form that SWT services can use (in other words, the language code is lower cased).
request
- The SDATA request.
protected static com.sage.accpac.sm.Program getProgramFromRequest(SDataRequest request)
Gets the program information from the specified SData request.
NOTE: This method never returns null - it throws an exception (most likely an "unauthorized" exception) if it encounters a problem. Also, the program that it returns is non-null.
request
- The SDATA request.
public java.lang.String getTenantID(SDataRequest request)
request
- the SDataRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |