Package com.microstrategy.web.app.gui
Class ContactCartElement
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContactCartElement
-
- All Implemented Interfaces:
CartElement
public class ContactCartElement extends java.lang.Object implements CartElement
- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_ADDRESSstatic intTYPE_ALL_CONSUMERS_RECIPIENTSstatic intTYPE_CONTACTstatic intTYPE_CONTACT_COLLECTIONstatic intTYPE_DYNAMIC_RECIPIENT_LISTstatic intTYPE_LDAP_USERstatic intTYPE_LOCATIONstatic intTYPE_MSTR_USERstatic intTYPE_MSTR_USER_GROUP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDisplayName()Get display name to be used in HTML field.java.lang.StringgetKey()intgetType()java.lang.StringgetValue()Gets formatted text for value field.inthashCode()booleanisSelected()Indicates whether given Cart element is selected or not.static intmapToContactType(int cartElementType)Translate from cart element type to contact typestatic ContactCartElementnewElement(WebSubscriptionAddress address)static ContactCartElementnewElement(WebSubscriptionContact contact)static ContactCartElementnewElement(WebSubscriptionContact contact, boolean showLinkedUserName)get a new contact cart element with a contact.static ContactCartElementnewElement(WebSubscriptionLocation location)static ContactCartElementnewElement(java.lang.String displayName, int type, java.lang.String key)voidsetSelected(boolean flag)Specifies whether this element has been selected.
-
-
-
Field Detail
-
TYPE_ADDRESS
public static final int TYPE_ADDRESS
- See Also:
- Constant Field Values
-
TYPE_LOCATION
public static final int TYPE_LOCATION
- See Also:
- Constant Field Values
-
TYPE_CONTACT
public static final int TYPE_CONTACT
- See Also:
- Constant Field Values
-
TYPE_CONTACT_COLLECTION
public static final int TYPE_CONTACT_COLLECTION
- See Also:
- Constant Field Values
-
TYPE_MSTR_USER
public static final int TYPE_MSTR_USER
- See Also:
- Constant Field Values
-
TYPE_MSTR_USER_GROUP
public static final int TYPE_MSTR_USER_GROUP
- See Also:
- Constant Field Values
-
TYPE_LDAP_USER
public static final int TYPE_LDAP_USER
- See Also:
- Constant Field Values
-
TYPE_DYNAMIC_RECIPIENT_LIST
public static final int TYPE_DYNAMIC_RECIPIENT_LIST
- See Also:
- Constant Field Values
-
TYPE_ALL_CONSUMERS_RECIPIENTS
public static final int TYPE_ALL_CONSUMERS_RECIPIENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
newElement
public static ContactCartElement newElement(WebSubscriptionContact contact, boolean showLinkedUserName)
get a new contact cart element with a contact.- Parameters:
contact-WebSubscriptionContactcontactshowLinkedUserName-Booleanspecifying if the contact's linked user name should be displayed- Returns:
ContactCartElement- Since:
- MicroStrategy Web 9.0.1
-
newElement
public static ContactCartElement newElement(WebSubscriptionContact contact)
-
newElement
public static ContactCartElement newElement(WebSubscriptionAddress address)
-
newElement
public static ContactCartElement newElement(WebSubscriptionLocation location)
-
newElement
public static ContactCartElement newElement(java.lang.String displayName, int type, java.lang.String key)
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:CartElementGet display name to be used in HTML field.- Specified by:
getDisplayNamein interfaceCartElement- Returns:
- String
-
getValue
public java.lang.String getValue()
Description copied from interface:CartElementGets formatted text for value field.- Specified by:
getValuein interfaceCartElement- Returns:
- String
-
isSelected
public boolean isSelected()
Description copied from interface:CartElementIndicates whether given Cart element is selected or not.- Specified by:
isSelectedin interfaceCartElement- Returns:
- boolean value
-
setSelected
public void setSelected(boolean flag)
Description copied from interface:CartElementSpecifies whether this element has been selected.- Specified by:
setSelectedin interfaceCartElement- Parameters:
flag- boolean value
-
getKey
public java.lang.String getKey()
-
getType
public int getType()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
mapToContactType
public static int mapToContactType(int cartElementType)
Translate from cart element type to contact type- Parameters:
cartElementType- int cart element type to be translated to a contact type- Returns:
- int from
EnumDSSXMLSubscriptionContactType
-
-