com.microstrategy.web.objects.WebContactsSource |
The 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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ENABLED_CONTACTS_FLAG_INCLUDE_ALL | ||||||||||
int | ENABLED_CONTACTS_FLAG_INCLUDE_DISABLED_ONLY | ||||||||||
int | ENABLED_CONTACTS_FLAG_INCLUDE_ENABLED_ONLY |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
deleteContact(String contactID)
Delete contact with specified ID from metadata
| ||||||||||
abstract void |
deleteContacts(List<String> contactIDList)
Delete contacts
| ||||||||||
abstract void |
disableContact(String contactID)
Disable contact with specified ID from metadata
| ||||||||||
abstract void |
enableContact(String contactID)
enable contact with specified ID from metadata
| ||||||||||
abstract int |
getBlockBegin()
Returns the block begin that has been set on
WebContactsSource . | ||||||||||
abstract int |
getBlockCount()
Returns the block count that has been set on
WebContactsSource . | ||||||||||
abstract WebSubscriptionContact |
getContact(String id)
Returns a
WebSubscriptionContact given the ID of the contact | ||||||||||
abstract WebSubscriptionContact |
getContact(String id, int contactType)
Returns a
WebSubscriptionContact with the given ID and type | ||||||||||
abstract WebSubscriptionContacts |
getContacts(boolean forceUpdate)
Returns a
WebSubscriptionContacts collection based on the different parameters set on the WebContactsSource . | ||||||||||
abstract WebSubscriptionContacts |
getContacts(String dssID, int dssType)
Returns a
WebSubscriptionContacts collection on the report or document based on the different parameters set on the WebContactsSource . | ||||||||||
abstract WebSubscriptionContacts |
getContacts()
Returns a
WebSubscriptionContacts collection based on the different parameters set on the WebContactsSource . | ||||||||||
abstract WebSubscriptionContacts |
getContactsBySearch(List<WebContactSearchFilter> filterList, List<WebContactSearchOrderInfo> orderByList, int searchFlag)
retrieve the contacts in certain pattern
| ||||||||||
abstract int |
getDeliveryMode()
Returns the delivery mode of contacts that is used in retrieving the list of contacts using the
getContacts() method. | ||||||||||
abstract WebContactSearchFilter |
getNewContactSearchFilter()
Returns a reference to an new contact search filter.
| ||||||||||
abstract WebContactSearchOrderInfo |
getNewContactSearchOrderInfo()
Returns a reference to an new contact search order infomation
| ||||||||||
abstract WebSubscriptionContact |
getNewObject(int type)
Returns a reference to an new contact of the specified type.
| ||||||||||
abstract String |
getSearchPattern()
Returns the search pattern or filter that has been set on the
WebContactsSource . | ||||||||||
abstract void |
setBlockBegin(int start)
Sets the block begin that will be used while retrieving a list of contacts using the
getContacts() method. | ||||||||||
abstract void |
setBlockCount(int count)
Sets the block count that will be used while retrieving a list of contacts using the
getContacts() method. | ||||||||||
abstract void |
setContactTypesFilter(int contactType)
Set a filter of contact types, which is ORable, that will be used in the
getContacts()
call. | ||||||||||
abstract void |
setDeliveryMode(int mode)
Sets the delivery mode of contacts that will be retrieved in the
getContacts() method. | ||||||||||
abstract void |
setEnabledContactsFlag(int enabledFlag)
Sets a flag that determines whether the
getContacts() method returns all contacts or just the enabled contacts or just the
disabled contacts. | ||||||||||
abstract void |
setSearchFilter(String searchPattern)
Sets the search filter/pattern that will be used while retrieving a list of contacts using the
getContacts() method. | ||||||||||
abstract void |
setSecurityEnabledOnly(boolean securityEnabled)
Sets a flag that determines whether the
getContacts() method returns all contacts or just the ones which have a user associated
with it. |
Delete contact with specified ID from metadata
contactID | String containing the contact ID for the contact to be deleted |
---|
WebObjectsException |
---|
Delete contacts
WebObjectsException |
---|
Disable contact with specified ID from metadata
contactID | String containing the contact ID for the contact to be disabled |
---|
WebObjectsException |
---|
enable contact with specified ID from metadata
contactID | String containing the contact ID for the contact to be disabled |
---|
WebObjectsException |
---|
Returns the block begin that has been set on WebContactsSource
.
Returns the block count that has been set on WebContactsSource
.
Returns a WebSubscriptionContact
given the ID of the contact
Returns a WebSubscriptionContact
with the given ID and type
id | String containing the contact id |
---|---|
contactType | int from EnumDSSXMLSubscriptionContactType |
Returns a WebSubscriptionContacts
collection based on the different parameters set on the WebContactsSource
.
The different parameters include setBlockBegin(int)
, setBlockCount(int)
, setSearchFilter(String)
,
setDeliveryMode(int)
, setEnabledContactsFlag(int)
etc.
forceUpdate | Flag to force update or retrieve the contacts from IServer |
---|
WebObjectsException |
---|
Returns a WebSubscriptionContacts
collection on the report or document based on the different parameters set on the WebContactsSource
.
The different parameters include setBlockBegin(int)
, setBlockCount(int)
, setSearchFilter(String)
,
setDeliveryMode(int)
, setEnabledContactsFlag(int)
etc.
dssID | report or document DSS ID |
---|---|
dssType | report or document |
WebObjectsException |
---|
Returns a WebSubscriptionContacts
collection based on the different parameters set on the WebContactsSource
.
The different parameters include setBlockBegin(int)
, setBlockCount(int)
, setSearchFilter(String)
,
setDeliveryMode(int)
, setEnabledContactsFlag(int)
etc.
WebObjectsException |
---|
retrieve the contacts in certain pattern
filterList | List of filters WebContactSearchFilter |
---|---|
orderByList | List of order {@Link WebContactSearchOrderInfo} |
searchFlag | {@Link EnumDSSXMLNCSContactSourceField} |
WebObjectsException |
---|
Returns the delivery mode of contacts that is used in retrieving the list of contacts using the
getContacts()
method.
From EnumDSSXMLSubscriptionDeliveryType
Returns a reference to an new contact search filter.
Returns a reference to an new contact search order infomation
Returns a reference to an new contact of the specified type.
type | integer type of the component as defined in EnumWebSubscriptionContactType |
---|
WebObjectsException | Thrown if the type specified is not supported |
---|
Returns the search pattern or filter that has been set on the WebContactsSource
.
Sets the block begin that will be used while retrieving a list of contacts using the
getContacts()
method. This is used for supporting incremental fetch of the contacts.
Sets the block count that will be used while retrieving a list of contacts using the
getContacts()
method. This is used for supporting incremental fetch of the contacts.
Set a filter of contact types, which is ORable, that will be used in the getContacts()
call.
contactType | from EnumDSSXMLSubscriptionContactType
|
---|
Sets the delivery mode of contacts that will be retrieved in the getContacts()
method.
From EnumDSSXMLSubscriptionDeliveryType
Sets a flag that determines whether the getContacts()
method returns all contacts or just the enabled contacts or just the
disabled contacts. The flag can take one of the following values
ENABLED_CONTACTS_FLAG_INCLUDE_ALL
, ENABLED_CONTACTS_FLAG_INCLUDE_DISABLED_ONLY
,
ENABLED_CONTACTS_FLAG_INCLUDE_ENABLED_ONLY
Sets the search filter/pattern that will be used while retrieving a list of contacts using the
getContacts()
method.
Sets a flag that determines whether the getContacts()
method returns all contacts or just the ones which have a user associated
with it.