|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 IntegrationContexturl - 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 occurs
public void ensureToken(User user)
throws Exception
IntegrationContext
ensureToken in class IntegrationContextuser - the active user
Exception - if an exception occurs
public String getBase64EncodedToken(User user)
throws Exception
IntegrationContext
getBase64EncodedToken in class IntegrationContextuser - the active user
Exception - if an exception occurs
public String getLicenseId(String licenseReference)
throws Exception
IntegrationContext
getLicenseId in class IntegrationContextlicenseReference - the license reference
Exception - if an exception occurs
public String getUsernameFromSAMLToken(String samlToken)
throws Exception
IntegrationContext
getUsernameFromSAMLToken in class IntegrationContextsamlToken - the SAML token
Exception - if an exception occurs
public void initializeUser(User user)
throws Exception
IntegrationContext
initializeUser in class IntegrationContextuser - the active user
Exception - if an exception occurs
public void shutdown()
throws Exception
IntegrationContext
shutdown in class IntegrationContextException - 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 | ||||||||