|
Compoze Software, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectportlets.compoze.groupware.c13n.DefaultAccountListener
portlets.compoze.groupware.c13n.BEALoginDominoAccountListener
This class represents a Domino account listener for handling SSO with the BEA Portal Username and Password being the same as the IBM Domino Username and Password respectively. Modifications to the LoginBacking file is necessary as well to obtain the BEA Portal Password.
Code is for example purpose.
| Constructor Summary | |
BEALoginDominoAccountListener()
|
|
| Method Summary | |
ConnectionPropertyValue[] |
getAdditionalConnectionPropertyValues(javax.servlet.http.HttpSession httpSession,
GroupwareSession groupwareSession,
javax.servlet.http.HttpServletRequest request,
Account account,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Invoked when getting additional account property values. |
ConnectionPropertyValue[] |
getConnectionPropertyValues(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
Account account,
ConnectionPropertyValue[] values)
Invoked when getting account property values. |
portlets.compoze.groupware.controls.provider.Provider |
getDefaultProvider()
Invoked when checking for the default provider. |
java.lang.String |
getRequiredAccountName(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Gets the name of the required account. |
boolean |
isAccountRequired(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Checks if at least one account is required. |
boolean |
isConfigurable()
Invoked when checking if users can configure accounts. |
boolean |
isPropertyModifiable(ConnectionProperty connProp)
Invoked when checking if the connection property is modifiable. |
boolean |
isPropertyRequired(ConnectionProperty connProp)
Invoked when checking if the connection property is required. |
boolean |
supportsMultipleAccounts()
Invoked when checking if multiple accounts are supported. |
| Methods inherited from class portlets.compoze.groupware.c13n.DefaultAccountListener |
appendConnectionPropertyValue, appendConnectionPropertyValues, decodeValue, dumpConnectionPropertyValues, encodeValue, getAccountListener, getConnectionPropertyValue, getDefaultConnectionPropertyValues, isPasswordEncrypted, setConnectionPropertyValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BEALoginDominoAccountListener()
| Method Detail |
public boolean isPropertyModifiable(ConnectionProperty connProp)
isPropertyModifiable in interface AccountListenerisPropertyModifiable in class DefaultAccountListenerconnProp - the connection property
true if the connection property is modifiable; false otherwise
To enable the BEA portal Single-Sign-On (SSO), the connection properties for a user should be resolved at login time.
For SSO, all connection properties could be made unmodifiable. If user is not allowed to configure the account (see # isConfigurable), then user will not be able to view the connection properties in the portal even if the property is modifiable.
If you don't want to persist the connection properties and values of a groupware account, you can make the property unmodifiable.
public boolean isPropertyRequired(ConnectionProperty connProp)
isPropertyRequired in interface AccountListenerisPropertyRequired in class DefaultAccountListenerconnProp - the connection property
true if the connection property is required; false otherwise
Connection required to establish a connection to the Domino service include:
Connection not required to establish a connection to the Domino service include:
public boolean supportsMultipleAccounts()
supportsMultipleAccounts in interface AccountListenersupportsMultipleAccounts in class DefaultAccountListenertrue if multiple accounts are supported; false otherwise
In case of SSO, a BEA portal user will be mapped to only one Domino account. Therefore multiple acounts are not supported.
public boolean isConfigurable()
isConfigurable in interface AccountListenerisConfigurable in class DefaultAccountListenertrue if accounts are configurable; false otherwise
In case of SSO, user is not allowed to configure the account.
public portlets.compoze.groupware.controls.provider.Provider getDefaultProvider()
getDefaultProvider in interface AccountListenergetDefaultProvider in class DefaultAccountListenerDomino service is required groupware provider.
public ConnectionPropertyValue[] getConnectionPropertyValues(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
Account account,
ConnectionPropertyValue[] values)
throws GroupwareException
getConnectionPropertyValues in interface AccountListenergetConnectionPropertyValues in class DefaultAccountListenersession - the http session (may not be null)userProfileWrapper - the user profile (may not be null)account - the account (may not be null)values - an array of connection property values
Connection property values are obtained to initialize or create a session for a groupware account. The connection property values belongs to the account passed to this method.
The connection property values passed to this method could be re-processed here. The returned connection property value could also be obtained from the portal through the user profile wrapper. They could also be extracted from a file, database, network resources or any persistent storage.
In case of SSO, it is not necessary to persist the general connection property values.
GroupwareException
public boolean isAccountRequired(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
throws GroupwareException
isAccountRequired in interface AccountListenerisAccountRequired in class DefaultAccountListenersession - the http session (may not be null)userProfileWrapper - the user profile (may not be null)
true if an account is required; false otherwise
At least one groupware account is required for a user to use the groupware portlet. Without one account, user will not be able to establish a groupware session and then a connection to the Domino service.
GroupwareException
public java.lang.String getRequiredAccountName(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
throws GroupwareException
getRequiredAccountName in interface AccountListenergetRequiredAccountName in class DefaultAccountListenersession - the http session (may not be null)userProfileWrapper - the user profile (may not be null)
null)
GroupwareException
SSO - only one groupware account is required and only one groupware account is supported.
The account properties (account name, service provider name, etc.) will be persisted.
public ConnectionPropertyValue[] getAdditionalConnectionPropertyValues(javax.servlet.http.HttpSession httpSession,
GroupwareSession groupwareSession,
javax.servlet.http.HttpServletRequest request,
Account account,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
throws GroupwareException
getAdditionalConnectionPropertyValues in interface AccountListenergetAdditionalConnectionPropertyValues in class DefaultAccountListenerhttpSession - the http session (may not be null)groupwareSession - the groupware session (may not be null)account - the grouwpware account for which to retrieve additional property values (may not be null)userProfileWrapper - the user profile (may not be null)
GroupwareException
|
Compoze Software, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||