|
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
This class represents a default implementation of the account listener interface for receiving account events.
Constructor Summary | |
DefaultAccountListener()
|
Method Summary | |
protected static ConnectionPropertyValue[] |
appendConnectionPropertyValue(ConnectionPropertyValue[] values,
ConnectionPropertyValue newValue)
Appends the connection properties value. |
static ConnectionPropertyValue[] |
appendConnectionPropertyValues(ConnectionPropertyValue[] values,
ConnectionPropertyValue[] newValues)
Appends the connection properties values. |
protected static java.lang.String |
decodeValue(java.lang.String sValue)
Decodes the specified value. |
static void |
dumpConnectionPropertyValues(ConnectionPropertyValue[] values)
Dumps the connection property values to System.out . |
protected static java.lang.String |
encodeValue(java.lang.String sValue)
Encodes the specified value. |
static AccountListener |
getAccountListener()
Gets an instance of the account listener. |
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. |
protected static ConnectionPropertyValue |
getConnectionPropertyValue(ConnectionPropertyValue[] values,
ConnectionProperty connProp)
Gets the connection property value for the specified connection property. |
ConnectionPropertyValue[] |
getConnectionPropertyValues(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
Account account,
ConnectionPropertyValue[] values)
Invoked when getting account property values. |
ConnectionPropertyValue[] |
getDefaultConnectionPropertyValues(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
ConnectionPropertyValue[] values)
Invoked when getting default 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. |
static boolean |
isPasswordEncrypted()
Checks is password is encrypted. |
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. |
void |
setConnectionPropertyValues(javax.servlet.http.HttpSession session,
com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
Account account,
ConnectionPropertyValue[] values)
Invoked when setting account property values. |
boolean |
supportsMultipleAccounts()
Invoked when checking if multiple accounts are supported. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultAccountListener()
Method Detail |
public boolean isPropertyModifiable(ConnectionProperty connProp)
isPropertyModifiable
in interface AccountListener
connProp
- the connection property
true
if the connection property is modifiable; false
otherwisepublic boolean isPropertyRequired(ConnectionProperty connProp)
isPropertyRequired
in interface AccountListener
connProp
- the connection property
true
if the connection property is required; false
otherwisepublic boolean supportsMultipleAccounts()
supportsMultipleAccounts
in interface AccountListener
true
if multiple accounts are supported; false
otherwisepublic boolean isConfigurable()
isConfigurable
in interface AccountListener
true
if accounts are configurable; false
otherwisepublic portlets.compoze.groupware.controls.provider.Provider getDefaultProvider()
getDefaultProvider
in interface AccountListener
public void setConnectionPropertyValues(javax.servlet.http.HttpSession session, com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper, Account account, ConnectionPropertyValue[] values) throws GroupwareException
setConnectionPropertyValues
in interface AccountListener
session
- 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
GroupwareException
public ConnectionPropertyValue[] getConnectionPropertyValues(javax.servlet.http.HttpSession session, com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper, Account account, ConnectionPropertyValue[] values) throws GroupwareException
getConnectionPropertyValues
in interface AccountListener
session
- 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
GroupwareException
public ConnectionPropertyValue[] getDefaultConnectionPropertyValues(javax.servlet.http.HttpSession session, com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper, ConnectionPropertyValue[] values) throws GroupwareException
getDefaultConnectionPropertyValues
in interface AccountListener
session
- the http session (may not be null
)userProfileWrapper
- the user profile (may not be null
)values
- an array of connection property values (may not be null
)
GroupwareException
public boolean isAccountRequired(javax.servlet.http.HttpSession session, com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper) throws GroupwareException
isAccountRequired
in interface AccountListener
session
- the http session (may not be null
)userProfileWrapper
- the user profile (may not be null
)
true
if an account is required; false
otherwise
GroupwareException
public java.lang.String getRequiredAccountName(javax.servlet.http.HttpSession session, com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper) throws GroupwareException
getRequiredAccountName
in interface AccountListener
session
- the http session (may not be null
)userProfileWrapper
- the user profile (may not be null
)
null
)
GroupwareException
protected static ConnectionPropertyValue getConnectionPropertyValue(ConnectionPropertyValue[] values, ConnectionProperty connProp)
values
- an array of connection property valuesconnProp
- the connection property value
protected static java.lang.String encodeValue(java.lang.String sValue) throws GroupwareException
sValue
- the value to encode
GroupwareException
protected static java.lang.String decodeValue(java.lang.String sValue) throws GroupwareException
sValue
- the value to decode
GroupwareException
public static void dumpConnectionPropertyValues(ConnectionPropertyValue[] values)
System.out
.
values
- an array of connection property valuesprotected static ConnectionPropertyValue[] appendConnectionPropertyValue(ConnectionPropertyValue[] values, ConnectionPropertyValue newValue)
values
- an array of connection property values (may not be null
)
public static ConnectionPropertyValue[] appendConnectionPropertyValues(ConnectionPropertyValue[] values, ConnectionPropertyValue[] newValues)
values
- an array of connection property values (may not be null
)newValues
- an array of connection property values to append (may not be null
)
public static AccountListener getAccountListener()
public static boolean isPasswordEncrypted()
true
if password is encrypted; false
otherwisepublic 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 AccountListener
httpSession
- 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 |