Class SynchronizationService
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.commercial.sync.SynchronizationService
-
@Service public class SynchronizationService extends Object
The service corresponding to the Synchronization module.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description SynchronizationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassociateSyncDataSourceToGroup(long syncDataSrcId, Long[] syncGroupIds)Given a data source configuration associates it to a sync groupvoidcopySyncDataSourceConfiguration(long syncGroupId, long[] syncDataSourceConfigurationIds)Creates "copy" a relation between a set of sync data source configurations and a given sync grouplongcreateSyncDataSourceConfig(String objectId, long syncGroupId, String name, List<StringPair> parameters)Creates a data source configuration and associates it to a sync grouplongcreateSyncGroup(String name)Creates a synchronization group (LEGACY DEPRECATED)voidcreateSyncGroup(SynchronizationGroup synchronizationGroup)Creates a synchronization groupvoiddeleteSynchronizationDataSourceConfig(long syncDataSourceConfigId)Deletes a synchronization data sourcevoiddeleteSynchronizationGroup(long syncGroupId)Deletes a sync groupvoiddeleteTemplateDataSource(long templateDataSourceId)Deletes a data source templateList<AbstractSyncProvider>getAllProviders(String nameFilter)get all provider register in serviceList<SyncDataSourceCommonParameters>getSyncDataSourceCommonProperties(HashMap<String,String> filters, int offset, int limit)Gets a data source configuration of the objectintgetSyncDataSourceCommonPropertiesCount(HashMap<String,String> filters)Gets a data source configuration of the objectSyncDataSourceConfigurationgetSyncDataSourceConfiguration(String objectId)Gets a data source configuration of the object (there is only one data source configuration per object)SyncDataSourceConfigurationgetSyncDataSourceConfigurationById(long syncDatasourceId)Gets a synchronization data source configuration receiving its id as search criteria.List<SyncDataSourceConfiguration>getSyncDataSourceConfigurations(long syncGroupId)Gets the data source configurations associated to a sync group.List<SyncDataSourceConfiguration>getSyncDataSrc(HashMap<String,String> filters, int offset, int limit)Gets a data source configuration of the objectList<SyncDataSourceConfiguration>getSyncDataSrcByBussinesObject(String objectId, HashMap<String,String> filters, int offset, int limit)Gets a data source configuration of the objectintgetSyncDataSrcByBussinesObjectCount(String objectId, HashMap<String,String> filters)Gets a data source configuration of the objectList<SyncDataSourceConfiguration>getSyncDataSrcBySyncGroupId(long syncGroupId, HashMap<String,String> filters, int offset, int limit)Gets the data source configurations associated to a sync group.intgetSyncDataSrcBySyncGroupIdCount(long syncGroupId, HashMap<String,String> filters)Gets the data source configurations associated to a sync group.intgetSyncDataSrcCount(HashMap<String,String> filters)Gets a data source configuration of the objectSynchronizationGroupgetSyncGroup(long syncGroupId)Fetches a synchronization group.List<SynchronizationGroup>getSyncGroups()Gets the list of available sync groupsintgetSyncGroups(HashMap<String,String> filters)Gets the list of available sync groups countList<SynchronizationGroup>getSyncGroups(HashMap<String,String> filters, int offset, int limit)Gets the list of available sync groupsList<SynchronizationGroup>getSyncGroupsFromDataSource(long dataSrcId, HashMap<String,String> filters, int offset, int limit)Gets the list of available sync groupsintgetSyncGroupsFromDataSourceCount(long dataSrcId, HashMap<String,String> filters)Gets the list of available sync groupsList<TemplateDataSource>getTemplateDataSrc(HashMap<String,String> filters, int offset, int limit)Gets a data source configuration of the objectintgetTemplateDataSrcCount(HashMap<String,String> filters)Gets a data source configuration of the objectvoidinit()voidmoveSyncDataSourceConfiguration(long newSyncGroupId, long[] syncDataSourceConfigurationIds)Moves a set of sync data source configurations from a sync group to another sync groupvoidreleaseSyncDataSourceConfigFromSyncGroup(long syncGroupId, long[] syncDataSourceConfigurationIds)Release a set of sync data source configuration from a given sync groupvoidreleaseSyncDataSourceConfigFromSyncGroups(Long[] syncGroupIds, long syncDataSourceConfigurationId)Release a set of sync data source configuration from a given sync groupvoidsaveDataSource(SyncDataSourceConfiguration syncDataSourceConfiguration)voidsaveTemplateDataSource(TemplateDataSource templateDataSource)voidupdateSyncDataSourceConfig(long syncDataSourceConfigId, List<StringPair> parameters)Updates a synchronization data sourcevoidupdateSyncGroup(long syncGroupId, List<StringPair> syncGroupProperties)Updates the data source configurations associated to a given sync group
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getSyncGroup
public SynchronizationGroup getSyncGroup(long syncGroupId) throws InvalidArgumentException, ApplicationObjectNotFoundException, MetadataObjectNotFoundException, UnsupportedPropertyException
Fetches a synchronization group. From the conceptual point of view, a sync group is a set of Synchronization Data Sources.- Parameters:
syncGroupId- The id of the sync group.- Returns:
- The sync group.
- Throws:
ApplicationObjectNotFoundException- If the sync group could not be found.InvalidArgumentException- If the sync data group information is somehow malformed in the database.MetadataObjectNotFoundException- If can not find the class name of the device related with the data source configuration.UnsupportedPropertyException- If the sync group can not be mapped into a Java object.
-
getSyncGroups
public List<SynchronizationGroup> getSyncGroups() throws InvalidArgumentException, MetadataObjectNotFoundException, UnsupportedPropertyException
Gets the list of available sync groups- Returns:
- The list of available sync groups
- Throws:
InvalidArgumentException- If any of the sync groups is malformed in the databaseMetadataObjectNotFoundException- if the parent class is not found when the parent's bread crumbs is been created for the selected item in the navigation treeUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncGroups
public List<SynchronizationGroup> getSyncGroups(HashMap<String,String> filters, int offset, int limit) throws UnsupportedPropertyException
Gets the list of available sync groups- Parameters:
filters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- The list of available sync groups
- Throws:
UnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncGroups
public int getSyncGroups(HashMap<String,String> filters) throws UnsupportedPropertyException
Gets the list of available sync groups count- Parameters:
filters- : filter over SyncDataSourceConfiguration properties- Returns:
- The list of available sync groups
- Throws:
UnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncGroupsFromDataSource
public List<SynchronizationGroup> getSyncGroupsFromDataSource(long dataSrcId, HashMap<String,String> filters, int offset, int limit) throws InvalidArgumentException, MetadataObjectNotFoundException, UnsupportedPropertyException
Gets the list of available sync groups- Parameters:
dataSrcId- the object id (a GenericCommunicationElement) or the SyncDataSourceConfig idfilters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- The list of available sync groups
- Throws:
InvalidArgumentException- If any of the sync groups is malformed in the databaseMetadataObjectNotFoundException- if the parent class is not found when the parent's bread crumbs is been created for the selected item in the navigation treeUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncGroupsFromDataSourceCount
public int getSyncGroupsFromDataSourceCount(long dataSrcId, HashMap<String,String> filters) throws InvalidArgumentException, MetadataObjectNotFoundException, UnsupportedPropertyExceptionGets the list of available sync groups- Parameters:
dataSrcId- the object id (a GenericCommunicationElement) or the SyncDataSourceConfig idfilters- filters over data source- Returns:
- The list of available sync groups
- Throws:
InvalidArgumentException- If any of the sync groups is malformed in the databaseMetadataObjectNotFoundException- if the parent class is not found when the parent's bread crumbs is been created for the selected item in the navigation treeUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSourceConfiguration
public SyncDataSourceConfiguration getSyncDataSourceConfiguration(String objectId) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object (there is only one data source configuration per object)- Parameters:
objectId- the object id (a GenericCommunicationElement) or the SyncDataSourceConfig id- Returns:
- a SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSrcByBussinesObject
public List<SyncDataSourceConfiguration> getSyncDataSrcByBussinesObject(String objectId, HashMap<String,String> filters, int offset, int limit) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
objectId- : the object id (a GenericCommunicationElement)filters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSrcByBussinesObjectCount
public int getSyncDataSrcByBussinesObjectCount(String objectId, HashMap<String,String> filters) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
objectId- : the object id (a GenericCommunicationElement)filters- : filter over SyncDataSourceConfiguration properties- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSrc
public List<SyncDataSourceConfiguration> getSyncDataSrc(HashMap<String,String> filters, int offset, int limit) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
filters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSrcCount
public int getSyncDataSrcCount(HashMap<String,String> filters) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
filters- : filter over SyncDataSourceConfiguration properties- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode an it InventoryObjectNode
-
getSyncDataSourceCommonProperties
public List<SyncDataSourceCommonParameters> getSyncDataSourceCommonProperties(HashMap<String,String> filters, int offset, int limit) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
filters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSourceCommonPropertiesCount
public int getSyncDataSourceCommonPropertiesCount(HashMap<String,String> filters) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
filters- : filter over SyncDataSourceConfiguration properties- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode an it InventoryObjectNode
-
getSyncDataSourceConfigurationById
public SyncDataSourceConfiguration getSyncDataSourceConfigurationById(long syncDatasourceId) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a synchronization data source configuration receiving its id as search criteria.- Parameters:
syncDatasourceId- The sync data source configuration id.- Returns:
- A SyncDatasourceConfiguration instance.
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- if the syncDatasource could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getSyncDataSrcBySyncGroupId
public List<SyncDataSourceConfiguration> getSyncDataSrcBySyncGroupId(long syncGroupId, HashMap<String,String> filters, int offset, int limit) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets the data source configurations associated to a sync group. A data source configuration is a set of parameters to access a sync data source- Parameters:
syncGroupId- The sync group the requested configurations belong to.filters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- A list of data source configurations.
- Throws:
ApplicationObjectNotFoundException- If the sync group could not be found.InvalidArgumentException- If any of the configurations is malformed in the database.UnsupportedPropertyException- If the sync data source can not be mapped into a Java object.
-
getSyncDataSrcBySyncGroupIdCount
public int getSyncDataSrcBySyncGroupIdCount(long syncGroupId, HashMap<String,String> filters) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyExceptionGets the data source configurations associated to a sync group. A data source configuration is a set of parameters to access a sync data source- Parameters:
syncGroupId- The sync group the requested configurations belong to.filters- : filter over SyncDataSourceConfiguration properties- Returns:
- A list of data source configurations.
- Throws:
ApplicationObjectNotFoundException- If the sync group could not be found.InvalidArgumentException- If any of the configurations is malformed in the database.UnsupportedPropertyException- If the sync data source can not be mapped into a Java object.
-
createSyncGroup
public long createSyncGroup(String name) throws InvalidArgumentException, ApplicationObjectNotFoundException
Creates a synchronization group (LEGACY DEPRECATED)- Parameters:
name- The name of the new group- Returns:
- The id of the newly created group
- Throws:
InvalidArgumentException- If any of the parameters is invalidApplicationObjectNotFoundException- If the sync provider could not be found
-
getSyncDataSourceConfigurations
public List<SyncDataSourceConfiguration> getSyncDataSourceConfigurations(long syncGroupId) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets the data source configurations associated to a sync group. A data source configuration is a set of parameters to access a sync data source (LEGACY DEPRECATED)- Parameters:
syncGroupId- The sync group the requested configurations belong to.- Returns:
- A list of data source configurations.
- Throws:
ApplicationObjectNotFoundException- If the sync group could not be found.InvalidArgumentException- If any of the configurations is malformed in the database.UnsupportedPropertyException- If the sync data source can not be mapped into a Java object.
-
createSyncGroup
public void createSyncGroup(SynchronizationGroup synchronizationGroup) throws InvalidArgumentException, ApplicationObjectNotFoundException
Creates a synchronization group- Parameters:
synchronizationGroup- The name of the new group- Throws:
InvalidArgumentException- If any of the parameters is invalidApplicationObjectNotFoundException- If the sync provider could not be found
-
updateSyncGroup
public void updateSyncGroup(long syncGroupId, List<StringPair> syncGroupProperties) throws ApplicationObjectNotFoundException, InvalidArgumentExceptionUpdates the data source configurations associated to a given sync group- Parameters:
syncGroupId- The Id of the sync group to be updatedsyncGroupProperties- The list of synchronization group properties- Throws:
ApplicationObjectNotFoundException- If the sync group could not be foundInvalidArgumentException- If any of the provided data source configurations is invalid
-
deleteSynchronizationGroup
public void deleteSynchronizationGroup(long syncGroupId) throws ApplicationObjectNotFoundExceptionDeletes a sync group- Parameters:
syncGroupId- The id of the sync group- Throws:
ApplicationObjectNotFoundException- If the sync group can no be found
-
deleteTemplateDataSource
public void deleteTemplateDataSource(long templateDataSourceId) throws ApplicationObjectNotFoundExceptionDeletes a data source template- Parameters:
templateDataSourceId- The id of the template data source- Throws:
ApplicationObjectNotFoundException- If the sync group can no be found
-
createSyncDataSourceConfig
public long createSyncDataSourceConfig(String objectId, long syncGroupId, String name, List<StringPair> parameters) throws ApplicationObjectNotFoundException, InvalidArgumentException
Creates a data source configuration and associates it to a sync group- Parameters:
objectId- the id of the object(GenericCommunicationsElement) the data source configuration will belong tosyncGroupId- The id of the sync group the data source configuration will be related toname- The name of the configurationparameters- The list of parameters that will be part of the new configuration. A sync data source configuration is a set of parameters that allow the synchronization provider to access a sync data source- Returns:
- The id of the newly created data source
- Throws:
ApplicationObjectNotFoundException- If the object has no sync data source configuration group could not be foundInvalidArgumentException- If any of the parameters is not valid
-
updateSyncDataSourceConfig
public void updateSyncDataSourceConfig(long syncDataSourceConfigId, List<StringPair> parameters) throws ApplicationObjectNotFoundExceptionUpdates a synchronization data source- Parameters:
syncDataSourceConfigId- The id of an synchronization data sourceparameters- the list of parameters to update- Throws:
ApplicationObjectNotFoundException- If the sync data source cannot be found
-
deleteSynchronizationDataSourceConfig
public void deleteSynchronizationDataSourceConfig(long syncDataSourceConfigId) throws ApplicationObjectNotFoundExceptionDeletes a synchronization data source- Parameters:
syncDataSourceConfigId- The id of an synchronization data source- Throws:
ApplicationObjectNotFoundException- If the sync data source cannot be found
-
copySyncDataSourceConfiguration
public void copySyncDataSourceConfiguration(long syncGroupId, long[] syncDataSourceConfigurationIds) throws ApplicationObjectNotFoundException, InvalidArgumentExceptionCreates "copy" a relation between a set of sync data source configurations and a given sync group- Parameters:
syncGroupId- The Sync Group Id targetsyncDataSourceConfigurationIds- Set of sync data source configuration ids- Throws:
ApplicationObjectNotFoundException- If the sync group cannot be found, or some sync data source configuration cannot be foundInvalidArgumentException- If the sync group cannot be found, or some sync data source configuration cannot be found
-
associateSyncDataSourceToGroup
public void associateSyncDataSourceToGroup(long syncDataSrcId, Long[] syncGroupIds) throws ApplicationObjectNotFoundException, InvalidArgumentExceptionGiven a data source configuration associates it to a sync group- Parameters:
syncGroupIds- Set of sync group ids that will be related to sync data sourcesyncDataSrcId- The id of sync data source configuration. A sync data source configuration is a set of parameterss that allow the synchronization provider to access a sync data source- Throws:
ApplicationObjectNotFoundException- If the object has no sync data source configuration group could not be foundInvalidArgumentException- If any of the parameters is not valid
-
releaseSyncDataSourceConfigFromSyncGroup
public void releaseSyncDataSourceConfigFromSyncGroup(long syncGroupId, long[] syncDataSourceConfigurationIds) throws ApplicationObjectNotFoundException, InvalidArgumentExceptionRelease a set of sync data source configuration from a given sync group- Parameters:
syncGroupId- The Sync Group Id targetsyncDataSourceConfigurationIds- Set of sync data source configuration ids- Throws:
ApplicationObjectNotFoundException- If the sync group cannot be found, or some sync data source configuration cannot be foundInvalidArgumentException- If the sync group cannot be found, or some sync data source configuration cannot be found
-
releaseSyncDataSourceConfigFromSyncGroups
public void releaseSyncDataSourceConfigFromSyncGroups(Long[] syncGroupIds, long syncDataSourceConfigurationId) throws ApplicationObjectNotFoundException, InvalidArgumentException
Release a set of sync data source configuration from a given sync group- Parameters:
syncGroupIds- The Sync Group Id targetsyncDataSourceConfigurationId- Set of sync data source configuration ids- Throws:
ApplicationObjectNotFoundException- If the sync group cannot be found, or some sync data source configuration cannot be foundInvalidArgumentException- If the sync group cannot be found, or some sync data source configuration cannot be found
-
moveSyncDataSourceConfiguration
public void moveSyncDataSourceConfiguration(long newSyncGroupId, long[] syncDataSourceConfigurationIds) throws ApplicationObjectNotFoundException, InvalidArgumentExceptionMoves a set of sync data source configurations from a sync group to another sync group- Parameters:
newSyncGroupId- The target sync group.syncDataSourceConfigurationIds- Set of sync data source configuration ids- Throws:
ApplicationObjectNotFoundException- If the sync group cannot be found, or some sync data source configuration cannot be foundInvalidArgumentException- If the sync group is malformed, or some sync data source configuration is malformed
-
saveDataSource
public void saveDataSource(SyncDataSourceConfiguration syncDataSourceConfiguration) throws ApplicationObjectNotFoundException, InvalidArgumentException
- Parameters:
syncDataSourceConfiguration- data source to be saved- Throws:
ApplicationObjectNotFoundException- If the sync group cannot be found, or some sync data source configuration cannot be foundInvalidArgumentException- If the sync group is malformed, or some sync data source configuration is malformed
-
saveTemplateDataSource
public void saveTemplateDataSource(TemplateDataSource templateDataSource) throws ApplicationObjectNotFoundException, InvalidArgumentException
- Parameters:
templateDataSource- template data source to be saved- Throws:
ApplicationObjectNotFoundException- If the sync group cannot be found, or some sync data source configuration cannot be foundInvalidArgumentException- If the sync group is malformed, or some sync data source configuration is malformed
-
getAllProviders
public List<AbstractSyncProvider> getAllProviders(String nameFilter) throws ApplicationObjectNotFoundException, InvalidArgumentException
get all provider register in service- Parameters:
nameFilter- : provider name- Returns:
- list of sync providers
- Throws:
ApplicationObjectNotFoundException- If the sync data source configuration could not be foundInvalidArgumentException- If any of the configurations is malformed in the database
-
getTemplateDataSrc
public List<TemplateDataSource> getTemplateDataSrc(HashMap<String,String> filters, int offset, int limit) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
filters- : filter over SyncDataSourceConfiguration propertiesoffset- : skiped values over full response, -1 for full responselimit- : maximun values display per response, -1 for full response- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
getTemplateDataSrcCount
public int getTemplateDataSrcCount(HashMap<String,String> filters) throws InvalidArgumentException, ApplicationObjectNotFoundException, UnsupportedPropertyException
Gets a data source configuration of the object- Parameters:
filters- : filter over SyncDataSourceConfiguration properties- Returns:
- A list of SyncDataSourceConfiguration
- Throws:
InvalidArgumentException- If any of the configurations is malformed in the databaseApplicationObjectNotFoundException- If the sync data source configuration could not be foundUnsupportedPropertyException- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode and it InventoryObjectNode
-
-