|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.portal.provider.v2.ProviderInstance
|
+--oracle.portal.provider.v2.http.URLProviderInstance
| Field Summary |
| Fields inherited from class oracle.portal.provider.v2.ProviderInstance |
PROVIDER_USER |
| Constructor Summary | |
URLProviderInstance()
|
|
| Method Summary | |
void |
deregister()
Deregister this provider instance. |
java.lang.Object |
getProviderDefinition()
|
ProviderSubscription |
getSubscription()
Returns the subscription information for this portal. |
void |
init(java.lang.String,
ProviderDefinition)
Initializes the provider instance after construction. |
java.lang.Object[] |
initSession(ProviderUser,
ExternalPrincipal)
Called to initiate a session with a particular user. |
java.lang.String |
makeQueryString(ExternalPrincipal,
java.lang.String)
|
ProviderRegistrationInfo |
register(java.lang.String,
java.lang.String)
Register this newly created provider instance. |
void |
setUrlCookiePolicyHandler()
|
| Methods inherited from class oracle.portal.provider.v2.ProviderInstance |
getOidManager, getPortletDefinition, getPortletDefinition, getPortletDefinitions, getPortletDefinitions, getPortletInstance, getPortletInstance, getPortletInstance, getPortletInstance, getPortletInstance, getPreferenceStore, getProviderContext, getProviderId, getUseOldStyleHeaders, isDefinitionEqual |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public URLProviderInstance()
| Method Detail |
public void init(java.lang.String,
ProviderDefinition)
throws ProviderException
ProviderInstance
init in class ProviderInstance - the provider's ID, assigned by Portal. - provider definition object holding meta data for this
provider.
ProviderException
public java.lang.Object[] initSession(ProviderUser,
ExternalPrincipal)
throws ProviderException,
AuthenticationException
ProviderInstance
A session is established via the ProviderUser user
object. I.e. the user object contains the methods for creating and
retrieving a session. For providers running in a servlet environment,
further HTTP-specific information can be accessed by casting the user
object to a ServletProviderUser. In particular,
this allows access to any existing Cookies already established between
the user and provider, via the ServletProviderUser.getCookies()
method.
initSession in class ProviderInstance - Current portal user. - External Application information (if it exists).
javax.servlet.http.Cookie. Alternatively,
null can be returned if this provider doesn't use cookies or
relies on the (user) session to maintain its state.
ProviderException - if a generic provider error occurs.
AuthenticationException - should be thrown if you have an
external application that requires additional authentication and that
authentication fails for some reason.public void setUrlCookiePolicyHandler()
public java.lang.String makeQueryString(ExternalPrincipal,
java.lang.String)
throws AuthenticationException
AuthenticationExceptionpublic ProviderSubscription getSubscription()
ProviderInstance
For example, when a ProviderInstance is registered in a
Portal, the subscription key is entered by the portal administrator and
passed to the ProviderInstance in the
register method.
Any persistent mapping that is required between the subscription key
and any other provider specific information (eg an account number) must
be established and maintained by extending
ProviderInstance.
getSubscription in class ProviderInstancenull if this
ProviderInstance doesn't use / support subscription.
public ProviderRegistrationInfo register(java.lang.String,
java.lang.String)
throws ProviderException,
java.io.IOException,
AccessControlException
ProviderInstanceProviderInstance.init(java.lang.String, oracle.portal.provider.v2.ProviderDefinition).
In response to this method call, the ProviderInstance
enumerates its PortletDefinitions and calls PortletDefinition.register(oracle.portal.provider.v2.ProviderInstance) on each of them. This gives the
PortletDefinition the opportunity to do some one time
initialization for this ProviderInstance.
register in class ProviderInstance - the version number of the portal you are being
registered with.
ProviderException
java.io.IOException
AccessControlException
public void deregister()
throws ProviderException
ProviderInstance
In response to this method call, the ProviderInstance
enumerates its PortletDefinitions and calls PortletDefinition.deregister(oracle.portal.provider.v2.ProviderInstance) on each of them. This gives the
PortletDefinition the opportunity to destroy or remove any
persistent information relating to this ProviderInstance. This
includes personalizations, subscription information and preferences.
deregister in class ProviderInstanceProviderExceptionpublic java.lang.Object getProviderDefinition()
|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||