|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.im.ImProvider
This class represents an IM provider.
Field Summary | |
static int |
VALUE_YAHOO
This is the value of the 'Yahoo!' provider. |
static ImProvider |
YAHOO
This value represents the 'Yahoo' provider. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other ImProvider
object is "equal to" this one. |
java.lang.String |
formatEmail(java.lang.String sUsername)
Formats the provider email address. |
static ImProvider |
get(java.lang.String sName)
Gets the provider by name. |
static ImProvider |
getDefaultProvider()
Gets the default provider. |
java.lang.String |
getKey()
Gets the i18n resource key name. |
java.lang.String |
getName()
Gets the provider name. |
static java.util.List |
getProviders()
Gets the list of providers. |
int |
getValue()
Gets the provider value. |
static boolean |
isEnabled(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper)
Checks if IM is enabled. |
static void |
setEnabled(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper,
boolean bEnabled)
Sets the IM enabled flag. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VALUE_YAHOO
public static final ImProvider YAHOO
Method Detail |
public int getValue()
VALUE_
constants)public java.lang.String formatEmail(java.lang.String sUsername)
sUsername
- the username (may not be null
or empty)public java.lang.String getName()
public static ImProvider getDefaultProvider()
public java.lang.String getKey()
public static ImProvider get(java.lang.String sName)
sName
- the namenull
if not foundpublic static boolean isEnabled(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper) throws ImException
userProfileWrapper
- the user profiletrue
if Im is enabled; false
otherwisepublic static void setEnabled(com.bea.p13n.usermgmt.profile.ProfileWrapper userProfileWrapper, boolean bEnabled) throws ImException
userProfileWrapper
- the user profilebEnabled
- true
if Im is enabled; false
otherwisepublic boolean equals(java.lang.Object o)
ImProvider
object is "equal to" this one. Equality is determined
by matching the provider value (see VALUE_
constants).equals
in class java.lang.Object
true
if this object is the same as the obj argument; false
otherwisegetValue()
public static java.util.List getProviders()
ImProvider
objects or an empty list if none available
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |