| 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--portlets.compoze.groupware.Accounts
This class represents the user accounts.
| Inner Class Summary | |
static class | 
Accounts.CannotDeleteAccountException
This class represents the exception throw when attempting to delete the last/only account  | 
| Field Summary | |
static java.lang.String | 
ACCOUNT_ID_DELIM
 | 
static int | 
ACCOUNT_NAME_MAX_LENGTH
 | 
static java.lang.String | 
PROPERTY_ACCOUNT
 | 
static java.lang.String | 
PROPERTY_ACCOUNT_DEFAULT
 | 
static java.lang.String | 
PROPERTY_ACCOUNT_IDS
 | 
| Constructor Summary | |
Accounts(GroupwareSession session,
         com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Constructor.  | 
|
| Method Summary | |
 Account | 
addAccount(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
           java.lang.String sName,
           java.lang.String sProviderName)
Adds the account with the specified name.  | 
 void | 
deleteAccount(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
              java.lang.String sID)
Deletes the specified account.  | 
 Account | 
getAccount(java.lang.String sID)
Gets the account by the specified ID.  | 
 Account[] | 
getAccounts()
Gets the accounts.  | 
 Account | 
getCurrentAccount()
Gets the current account.  | 
 Account | 
getDefaultAccount()
Gets the default account.  | 
 ConnectionPropertyValue[] | 
getDefaultConnectionPropertyValues(javax.servlet.http.HttpSession session,
                                   com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Gets the default account property values.  | 
 portlets.compoze.groupware.controls.provider.Provider | 
getDefaultProvider()
Gets the default provider for accounts that do not have a provider specified.  | 
 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()
Checks if accounts are configurable.  | 
 boolean | 
supportsMultipleAccounts()
Checks if multiple accounts are supported.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String ACCOUNT_ID_DELIM
public static final java.lang.String PROPERTY_ACCOUNT
public static final java.lang.String PROPERTY_ACCOUNT_IDS
public static final java.lang.String PROPERTY_ACCOUNT_DEFAULT
public static final int ACCOUNT_NAME_MAX_LENGTH
| Constructor Detail | 
public Accounts(GroupwareSession session,
                com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
         throws GroupwareException
session - the groupware session (may not be null)userProfileWrapper - the user profile (may not be null)| Method Detail | 
public boolean isAccountRequired(javax.servlet.http.HttpSession session,
                                 com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
                          throws GroupwareException
session - the http session (may not be null)userProfileWrapper - the user profile (may not be null)true if an account is required; false otherwise
public java.lang.String getRequiredAccountName(javax.servlet.http.HttpSession session,
                                               com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
                                        throws GroupwareException
session - the http session (may not be null)userProfileWrapper - the user profile (may not be null)null)public portlets.compoze.groupware.controls.provider.Provider getDefaultProvider()
public void deleteAccount(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
                          java.lang.String sID)
                   throws Accounts.CannotDeleteAccountException,
                          GroupwareException
userProfileWrapper - the user profile (may not be null)sID - the account ID to delete
public Account addAccount(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
                          java.lang.String sName,
                          java.lang.String sProviderName)
                   throws GroupwareException
ACCOUNT_NAME_MAX_LENGTH. If the specified
 name is larger than the max length, the name is truncated.userProfileWrapper - the user profile (may not be null)sName - the account name (may not be null or empty)sProviderName - the provider nameACCOUNT_NAME_MAX_LENGTHpublic Account[] getAccounts()
public Account getDefaultAccount()
                          throws NoAccountsException,
                                 GroupwareException
public Account getCurrentAccount()
                          throws NoAccountsException,
                                 GroupwareException
public Account getAccount(java.lang.String sID)
sID - the account ID (may not be null)null if not found
public ConnectionPropertyValue[] getDefaultConnectionPropertyValues(javax.servlet.http.HttpSession session,
                                                                    com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
                                                             throws GroupwareException
session - the http session (may not be null)userProfileWrapper - the user profile (may not be null)public boolean isConfigurable()
true if accounts are configurable; false otherwisepublic boolean supportsMultipleAccounts()
true if multiple accounts are supported; false otherwise
  | 
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||