|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.sdisuite.IntegrationContext com.esri.gpt.sdisuite.SampleIntegrationContext
public class SampleIntegrationContext
Sample implementation of an integration context.
Constructor Summary | |
---|---|
SampleIntegrationContext()
Default constructor |
Method Summary | |
---|---|
IntegrationResponse |
checkUrl(String url,
User user,
String username,
String password,
String licenseReturnUrl)
methods ================================================================= |
void |
ensureToken(User user)
Ensure that the active user has a valid SAML token. |
String |
getBase64EncodedToken(User user)
Base64 encodes the SAML token associated with the active user. |
String |
getLicenseId(String licenseReference)
Gets the license id associated with a license reference. |
String |
getUsernameFromSAMLToken(String samlToken)
Gets the username encoded within a SAML token. |
void |
initializeUser(User user)
Provides an opportunity to initialize additional user properties. |
void |
shutdown()
Executed on web-app shutdown. |
Methods inherited from class com.esri.gpt.sdisuite.IntegrationContext |
---|
getConfig, setConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleIntegrationContext()
Method Detail |
---|
public IntegrationResponse checkUrl(String url, User user, String username, String password, String licenseReturnUrl) throws NotAuthorizedException, Exception
checkUrl
in class IntegrationContext
url
- the URLuser
- the active userusername
- the usernamepassword
- the passwordlicenseReturnUrl
- the return URL (called following license negotiation)
NotAuthorizedException
- if authorization for the supplied URL was denied
Exception
- if a processing exception occurspublic void ensureToken(User user) throws Exception
IntegrationContext
ensureToken
in class IntegrationContext
user
- the active user
Exception
- if an exception occurspublic String getBase64EncodedToken(User user) throws Exception
IntegrationContext
getBase64EncodedToken
in class IntegrationContext
user
- the active user
Exception
- if an exception occurspublic String getLicenseId(String licenseReference) throws Exception
IntegrationContext
getLicenseId
in class IntegrationContext
licenseReference
- the license reference
Exception
- if an exception occurspublic String getUsernameFromSAMLToken(String samlToken) throws Exception
IntegrationContext
getUsernameFromSAMLToken
in class IntegrationContext
samlToken
- the SAML token
Exception
- if an exception occurspublic void initializeUser(User user) throws Exception
IntegrationContext
initializeUser
in class IntegrationContext
user
- the active user
Exception
- if an exception occurspublic void shutdown() throws Exception
IntegrationContext
shutdown
in class IntegrationContext
Exception
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |