Package com.microstrategy.web.objects
Interface WebContactsSource
-
public interface WebContactsSourceThe WebContactsSource is used for browsing of contact objects in the MD. You can set the blockBegin and blockCount parameters that will enable incremental fetch of the contact objects. You can also set a filter as a 'search' criteria.- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static intENABLED_CONTACTS_FLAG_INCLUDE_ALLstatic intENABLED_CONTACTS_FLAG_INCLUDE_DISABLED_ONLYstatic intENABLED_CONTACTS_FLAG_INCLUDE_ENABLED_ONLY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteContact(java.lang.String contactID)Delete contact with specified ID from metadatavoiddeleteContacts(java.util.List<java.lang.String> contactIDList)Delete contactsvoiddisableContact(java.lang.String contactID)Disable contact with specified ID from metadatavoidenableContact(java.lang.String contactID)enable contact with specified ID from metadataintgetBlockBegin()Returns the block begin that has been set onWebContactsSource.intgetBlockCount()Returns the block count that has been set onWebContactsSource.WebSubscriptionContactgetContact(java.lang.String id)Returns aWebSubscriptionContactgiven the ID of the contactWebSubscriptionContactgetContact(java.lang.String id, int contactType)Returns aWebSubscriptionContactwith the given ID and typeWebSubscriptionContactsgetContacts()Returns aWebSubscriptionContactscollection based on the different parameters set on theWebContactsSource.WebSubscriptionContactsgetContacts(boolean forceUpdate)Returns aWebSubscriptionContactscollection based on the different parameters set on theWebContactsSource.WebSubscriptionContactsgetContacts(java.lang.String dssID, int dssType)Returns aWebSubscriptionContactscollection on the report or document based on the different parameters set on theWebContactsSource.WebSubscriptionContactsgetContacts(java.util.List<ObjectIdTypeAndProjectId> dssIDsAndTypes)Returns aWebSubscriptionContactscollection on a list of report or document based on the different parameters set on theWebContactsSource.WebSubscriptionContactsgetContactsBySearch(java.util.List<WebContactSearchFilter> filterList, java.util.List<WebContactSearchOrderInfo> orderByList, int searchFlag)retrieve the contacts in certain patternintgetDeliveryMode()Returns the delivery mode of contacts that is used in retrieving the list of contacts using thegetContacts()method.WebContactSearchFiltergetNewContactSearchFilter()Returns a reference to an new contact search filter.WebContactSearchOrderInfogetNewContactSearchOrderInfo()Returns a reference to an new contact search order infomationWebSubscriptionContactgetNewObject(int type)Returns a reference to an new contact of the specified type.java.lang.StringgetSearchPattern()Returns the search pattern or filter that has been set on theWebContactsSource.voidsetBlockBegin(int start)Sets the block begin that will be used while retrieving a list of contacts using thegetContacts()method.voidsetBlockCount(int count)Sets the block count that will be used while retrieving a list of contacts using thegetContacts()method.voidsetContactTypesFilter(int contactType)Set a filter of contact types, which is ORable, that will be used in thegetContacts()call.voidsetDeliveryMode(int mode)Sets the delivery mode of contacts that will be retrieved in thegetContacts()method.voidsetEnabledContactsFlag(int enabledFlag)Sets a flag that determines whether thegetContacts()method returns all contacts or just the enabled contacts or just the disabled contacts.voidsetSearchFilter(java.lang.String searchPattern)Sets the search filter/pattern that will be used while retrieving a list of contacts using thegetContacts()method.voidsetSecurityEnabledOnly(boolean securityEnabled)Sets a flag that determines whether thegetContacts()method returns all contacts or just the ones which have a user associated with it.
-
-
-
Field Detail
-
ENABLED_CONTACTS_FLAG_INCLUDE_ALL
static final int ENABLED_CONTACTS_FLAG_INCLUDE_ALL
- See Also:
- Constant Field Values
-
ENABLED_CONTACTS_FLAG_INCLUDE_ENABLED_ONLY
static final int ENABLED_CONTACTS_FLAG_INCLUDE_ENABLED_ONLY
- See Also:
- Constant Field Values
-
ENABLED_CONTACTS_FLAG_INCLUDE_DISABLED_ONLY
static final int ENABLED_CONTACTS_FLAG_INCLUDE_DISABLED_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBlockBegin
void setBlockBegin(int start)
Sets the block begin that will be used while retrieving a list of contacts using thegetContacts()method. This is used for supporting incremental fetch of the contacts.- Parameters:
start-
-
getBlockBegin
int getBlockBegin()
Returns the block begin that has been set onWebContactsSource.
-
setBlockCount
void setBlockCount(int count)
Sets the block count that will be used while retrieving a list of contacts using thegetContacts()method. This is used for supporting incremental fetch of the contacts.- Parameters:
count-
-
getBlockCount
int getBlockCount()
Returns the block count that has been set onWebContactsSource.
-
setSearchFilter
void setSearchFilter(java.lang.String searchPattern)
Sets the search filter/pattern that will be used while retrieving a list of contacts using thegetContacts()method.- Parameters:
searchPattern-
-
getSearchPattern
java.lang.String getSearchPattern()
Returns the search pattern or filter that has been set on theWebContactsSource.
-
getContacts
WebSubscriptionContacts getContacts() throws WebObjectsException
Returns aWebSubscriptionContactscollection based on the different parameters set on theWebContactsSource. The different parameters includesetBlockBegin(int),setBlockCount(int),setSearchFilter(String),setDeliveryMode(int),setEnabledContactsFlag(int)etc.- Throws:
WebObjectsException
-
getContacts
WebSubscriptionContacts getContacts(java.lang.String dssID, int dssType) throws WebObjectsException
Returns aWebSubscriptionContactscollection on the report or document based on the different parameters set on theWebContactsSource. The different parameters includesetBlockBegin(int),setBlockCount(int),setSearchFilter(String),setDeliveryMode(int),setEnabledContactsFlag(int)etc.- Parameters:
dssID- report or document DSS IDdssType- report or document- Throws:
WebObjectsException
-
getContacts
WebSubscriptionContacts getContacts(java.util.List<ObjectIdTypeAndProjectId> dssIDsAndTypes) throws WebObjectsException
Returns aWebSubscriptionContactscollection on a list of report or document based on the different parameters set on theWebContactsSource. The different parameters includesetBlockBegin(int),setBlockCount(int),setSearchFilter(String),setDeliveryMode(int),setEnabledContactsFlag(int)etc.- Parameters:
dssIDsAndTypes- report or document DSS ID and the corresponding type of each report or document and the project it belongs to- Throws:
WebObjectsException
-
getContacts
WebSubscriptionContacts getContacts(boolean forceUpdate) throws WebObjectsException
Returns aWebSubscriptionContactscollection based on the different parameters set on theWebContactsSource. The different parameters includesetBlockBegin(int),setBlockCount(int),setSearchFilter(String),setDeliveryMode(int),setEnabledContactsFlag(int)etc.- Parameters:
forceUpdate- Flag to force update or retrieve the contacts from IServer- Throws:
WebObjectsException
-
setDeliveryMode
void setDeliveryMode(int mode)
Sets the delivery mode of contacts that will be retrieved in thegetContacts()method. FromEnumDSSXMLSubscriptionDeliveryType- Parameters:
mode-
-
getDeliveryMode
int getDeliveryMode()
Returns the delivery mode of contacts that is used in retrieving the list of contacts using thegetContacts()method. FromEnumDSSXMLSubscriptionDeliveryType
-
getContact
WebSubscriptionContact getContact(java.lang.String id, int contactType)
Returns aWebSubscriptionContactwith the given ID and type- Parameters:
id-Stringcontaining the contact idcontactType- int fromEnumDSSXMLSubscriptionContactType- Returns:
WebSubscriptionContact
-
getContact
WebSubscriptionContact getContact(java.lang.String id)
Returns aWebSubscriptionContactgiven the ID of the contact- Parameters:
id-
-
setContactTypesFilter
void setContactTypesFilter(int contactType)
Set a filter of contact types, which is ORable, that will be used in thegetContacts()call.- Parameters:
contactType- fromEnumDSSXMLSubscriptionContactType
-
setEnabledContactsFlag
void setEnabledContactsFlag(int enabledFlag)
Sets a flag that determines whether thegetContacts()method returns all contacts or just the enabled contacts or just the disabled contacts. The flag can take one of the following valuesENABLED_CONTACTS_FLAG_INCLUDE_ALL,ENABLED_CONTACTS_FLAG_INCLUDE_DISABLED_ONLY,ENABLED_CONTACTS_FLAG_INCLUDE_ENABLED_ONLY- Parameters:
enabledFlag-
-
setSecurityEnabledOnly
void setSecurityEnabledOnly(boolean securityEnabled)
Sets a flag that determines whether thegetContacts()method returns all contacts or just the ones which have a user associated with it.- Parameters:
securityEnabled-
-
deleteContact
void deleteContact(java.lang.String contactID) throws WebObjectsExceptionDelete contact with specified ID from metadata- Parameters:
contactID-Stringcontaining the contact ID for the contact to be deleted- Throws:
WebObjectsException- Since:
- MicroStrategy Web 9.0.1
-
disableContact
void disableContact(java.lang.String contactID) throws WebObjectsExceptionDisable contact with specified ID from metadata- Parameters:
contactID-Stringcontaining the contact ID for the contact to be disabled- Throws:
WebObjectsException
-
enableContact
void enableContact(java.lang.String contactID) throws WebObjectsExceptionenable contact with specified ID from metadata- Parameters:
contactID-Stringcontaining the contact ID for the contact to be disabled- Throws:
WebObjectsException
-
getNewObject
WebSubscriptionContact getNewObject(int type) throws WebObjectsException
Returns a reference to an new contact of the specified type.- Parameters:
type- integer type of the component as defined inEnumDSSXMLSubscriptionContactType- Returns:
WebSubscriptionContact- Throws:
WebObjectsException- Thrown if the type specified is not supported
-
getContactsBySearch
WebSubscriptionContacts getContactsBySearch(java.util.List<WebContactSearchFilter> filterList, java.util.List<WebContactSearchOrderInfo> orderByList, int searchFlag) throws WebObjectsException
retrieve the contacts in certain pattern- Parameters:
filterList- List of filtersWebContactSearchFilterorderByList- List of ordersearchFlag-- Returns:
WebSubscriptionContacts- Throws:
WebObjectsException
-
deleteContacts
void deleteContacts(java.util.List<java.lang.String> contactIDList) throws WebObjectsExceptionDelete contacts- Parameters:
contactIDList- List of deleted contacts' GUID- Throws:
WebObjectsException
-
getNewContactSearchFilter
WebContactSearchFilter getNewContactSearchFilter()
Returns a reference to an new contact search filter.- Returns:
WebContactSearchFilter
-
getNewContactSearchOrderInfo
WebContactSearchOrderInfo getNewContactSearchOrderInfo()
Returns a reference to an new contact search order infomation- Returns:
WebContactSearchOrderInfo
-
-