|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.configuration.ConfigurationManagerBean
public class ConfigurationManagerBean
The manager responsible for working with resource and plugin configurations.
| Constructor Summary | |
|---|---|
ConfigurationManagerBean()
|
|
| Method Summary | |
|---|---|
void |
checkForCompletedGroupResourceConfigurationUpdate(int resourceConfigUpdateId)
|
void |
checkForTimedOutConfigurationUpdateRequests()
The purpose of this method is really to clean up requests when we detect they probably will never move out of the in-progress status. |
void |
completePluginConfigurationUpdate(java.lang.Integer updateId)
|
void |
completePluginConfigurationUpdate(PluginConfigurationUpdate update)
Updates the plugin configuration used to connect and communicate with the resource using the information in the passed PluginConfigurationUpdate object. |
void |
completeResourceConfigurationUpdate(ConfigurationUpdateResponse response)
A callback method that is called when an agent has completed updating a resource's configuration. |
int |
createGroupConfigurationUpdate(AbstractGroupConfigurationUpdate update)
|
void |
deleteConfigurations(java.util.List<java.lang.Integer> configurationIds)
|
int |
deleteGroupPluginConfigurationUpdates(Subject subject,
java.lang.Integer resourceGroupId,
java.lang.Integer[] groupPluginConfigurationUpdateIds)
|
int |
deleteGroupResourceConfigurationUpdates(Subject subject,
java.lang.Integer resourceGroupId,
java.lang.Integer[] groupResourceConfigurationUpdateIds)
|
void |
deleteProperties(int[] propertyIds)
|
ConfigurationUpdateResponse |
executePluginConfigurationUpdate(PluginConfigurationUpdate update)
|
void |
executeResourceConfigurationUpdate(int updateId)
|
PageList<GroupPluginConfigurationUpdate> |
findGroupPluginConfigurationUpdates(int groupId,
PageControl pc)
|
PageList<GroupResourceConfigurationUpdate> |
findGroupResourceConfigurationUpdates(int groupId,
PageControl pc)
|
PageList<ConfigurationUpdateComposite> |
findPluginConfigurationUpdateCompositesByParentId(int configurationUpdateId,
PageControl pageControl)
|
PageList<PluginConfigurationUpdate> |
findPluginConfigurationUpdates(Subject subject,
int resourceId,
java.lang.Long beginDate,
java.lang.Long endDate,
PageControl pc)
|
PageList<java.lang.Integer> |
findPluginConfigurationUpdatesByParentId(int configurationUpdateId,
PageControl pageControl)
|
RawConfiguration |
findRawConfigurationById(int rawConfigId)
|
java.util.Collection<RawConfiguration> |
findRawConfigurationsByConfigurationId(int configId)
|
PageList<ConfigurationUpdateComposite> |
findResourceConfigurationUpdateCompositesByParentId(int configurationUpdateId,
PageControl pageControl)
|
PageList<ResourceConfigurationUpdate> |
findResourceConfigurationUpdates(Subject subject,
java.lang.Integer resourceId,
java.lang.Long beginDate,
java.lang.Long endDate,
boolean suppressOldest,
PageControl pc)
Returns the list of all resource configuration updates for the given resource. |
PageList<java.lang.Integer> |
findResourceConfigurationUpdatesByParentId(int groupConfigurationUpdateId,
PageControl pageControl)
|
Configuration |
getConfiguration(Subject subject,
int configurationId)
|
Configuration |
getConfigurationById(int id)
This is a generic method that any caller can use to obtain any configuration given a configuration ID. |
Configuration |
getConfigurationFromDefaultTemplate(ConfigurationDefinition definition)
This is a convenience method that is equivalent to the following:
definition.getDefaultTemplate().getConfiguration() If the definition is already a managed bean, then there
is no real reason to call this since EJB3 will traverse the object relationships just fine. |
GroupPluginConfigurationUpdate |
getGroupPluginConfigurationById(int configurationUpdateId)
|
GroupPluginConfigurationUpdate |
getGroupPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
GroupResourceConfigurationUpdate |
getGroupResourceConfigurationById(int configurationUpdateId)
|
GroupResourceConfigurationUpdate |
getGroupResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
PluginConfigurationUpdate |
getLatestPluginConfigurationUpdate(Subject subject,
int resourceId)
Get the latest plugin configuration for the Resource with the given id. |
ResourceConfigurationUpdate |
getLatestResourceConfigurationUpdate(Subject subject,
int resourceId)
Get the latest resource configuration for the Resource with the given id, or null if the
resource's configuration is not yet initialized and for some reason we can't get its current live configuration
(e.g. |
Configuration |
getLiveResourceConfiguration(Subject subject,
int resourceId,
boolean pingAgentFirst)
Get the currently live resource configuration for the Resource with the given id. |
ConfigurationDefinition |
getPackageTypeConfigurationDefinition(Subject subject,
int packageTypeId)
Return the deploy configuration definition for the PackageType with the
specified id. |
Configuration |
getPluginConfiguration(int resourceId)
This does not perform permission checks and should be used internally only. |
Configuration |
getPluginConfiguration(Subject subject,
int resourceId)
Get the current plugin configuration for the Resource with the given id, or null if the
resource's plugin configuration is not yet initialized. |
ConfigurationDefinition |
getPluginConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
Return the plugin configuration definition for the ResourceType with the
specified id. |
java.util.Map<java.lang.Integer,Configuration> |
getPluginConfigurationMapForGroupUpdate(java.lang.Integer groupPluginConfigurationUpdateId)
|
java.util.Map<java.lang.Integer,Configuration> |
getPluginConfigurationsForCompatibleGroup(Subject subject,
int groupId)
|
PluginConfigurationUpdate |
getPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
long |
getPluginConfigurationUpdateCountByParentId(int configurationUpdateId)
|
Configuration |
getResourceConfiguration(int resourceId)
This does not perform permission checks and should be used internally only. |
Configuration |
getResourceConfiguration(Subject subject,
int resourceId)
Get the current Resource configuration. |
ConfigurationDefinition |
getResourceConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
ConfigurationDefinition |
getResourceConfigurationDefinitionWithTemplatesForResourceType(Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
java.util.Map<java.lang.Integer,Configuration> |
getResourceConfigurationMapForCompatibleGroup(ResourceGroup compatibleGroup)
|
java.util.Map<java.lang.Integer,Configuration> |
getResourceConfigurationMapForGroupUpdate(java.lang.Integer groupResourceConfigurationUpdateId)
|
java.util.Map<java.lang.Integer,Configuration> |
getResourceConfigurationsForCompatibleGroup(Subject subject,
int groupId)
Returns the current Resource configurations for the members in the specified compatible group. |
ResourceConfigurationUpdate |
getResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
Returns a single resource configuration update |
long |
getResourceConfigurationUpdateCountByParentId(int groupConfigurationUpdateId)
|
boolean |
hasPluginConfiguration(int resourceTypeId)
|
boolean |
isGroupPluginConfigurationUpdateInProgress(Subject subject,
int groupId)
|
boolean |
isGroupResourceConfigurationUpdateInProgress(Subject subject,
int groupId)
|
boolean |
isPluginConfigurationUpdateInProgress(Subject subject,
int resourceId)
|
boolean |
isResourceConfigurationUpdateInProgress(Subject subject,
int resourceId)
Get whether the the specified resource is in the process of updating its configuration. |
AbstractResourceConfigurationUpdate |
mergeConfigurationUpdate(AbstractResourceConfigurationUpdate configurationUpdate)
Merge the specified configuration update into the DB. |
ResourceConfigurationUpdate |
persistNewResourceConfigurationUpdateHistory(Subject subject,
int resourceId,
Configuration newConfiguration,
ConfigurationUpdateStatus newStatus,
java.lang.String newSubject,
boolean isPartofGroupUpdate)
For internal use only - do not call this method. |
void |
purgePluginConfigurationUpdate(Subject subject,
int configurationUpdateId,
boolean purgeInProgress)
|
void |
purgeResourceConfigurationUpdate(Subject subject,
int configurationUpdateId,
boolean purgeInProgress)
This deletes the update information belonging to the AbstractResourceConfigurationUpdate object with the
given ID. |
void |
purgeResourceConfigurationUpdates(Subject subject,
int[] configurationUpdateIds,
boolean purgeInProgress)
This deletes one or more configuration updates from the resource's configuration history. |
void |
rollbackResourceConfiguration(Subject subject,
int resourceId,
int configHistoryId)
This method is called when a user has requested to change the resource configuration for an existing resource to one of its previous values. |
int |
scheduleGroupPluginConfigurationUpdate(Subject subject,
int compatibleGroupId,
java.util.Map<java.lang.Integer,Configuration> memberPluginConfigurations)
|
int |
scheduleGroupResourceConfigurationUpdate(Subject subject,
int compatibleGroupId,
java.util.Map<java.lang.Integer,Configuration> newResourceConfigurationMap)
|
void |
updateGroupConfigurationUpdate(AbstractGroupConfigurationUpdate groupUpdate)
|
ConfigurationUpdateStatus |
updateGroupPluginConfigurationUpdateStatus(int groupConfigurationUpdateId,
java.lang.String errorMessages)
|
PluginConfigurationUpdate |
updatePluginConfiguration(Subject subject,
int resourceId,
Configuration configuration)
Updates the plugin configuration used to connect and communicate with the resource. |
ResourceConfigurationUpdate |
updateResourceConfiguration(Subject subject,
int resourceId,
Configuration newConfiguration)
This method is called when a user has requested to change the resource configuration for an existing resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationManagerBean()
| Method Detail |
|---|
@Nullable
public Configuration getPluginConfiguration(Subject subject,
int resourceId)
ConfigurationManagerLocalResource with the given id, or null if the
resource's plugin configuration is not yet initialized.
getPluginConfiguration in interface ConfigurationManagerLocalgetPluginConfiguration in interface ConfigurationManagerRemotesubject - the user who wants to see the informationresourceId - a Resource id
Resource with the given id, or null if the
resource's configuration is not yet initializedpublic Configuration getPluginConfiguration(int resourceId)
ConfigurationManagerLocalConfigurationManagerLocal.getPluginConfiguration(Subject, int).
getPluginConfiguration in interface ConfigurationManagerLocalpublic void completePluginConfigurationUpdate(java.lang.Integer updateId)
completePluginConfigurationUpdate in interface ConfigurationManagerLocalpublic void completePluginConfigurationUpdate(PluginConfigurationUpdate update)
ConfigurationManagerLocalPluginConfigurationUpdate object. This update object will be changed to reflect the result of the
plugin configuration update attempt. This is an internal method called by
ConfigurationManagerLocal.updatePluginConfiguration(Subject, int, Configuration) and GroupPluginConfigurationUpdateJob
. It is not intended to be used for general, public consumption.
completePluginConfigurationUpdate in interface ConfigurationManagerLocalupdate - a previously server-side persisted update, which has not yet made it to the agentpublic ConfigurationUpdateResponse executePluginConfigurationUpdate(PluginConfigurationUpdate update)
executePluginConfigurationUpdate in interface ConfigurationManagerLocal
public PluginConfigurationUpdate updatePluginConfiguration(Subject subject,
int resourceId,
Configuration configuration)
throws ResourceNotFoundException
ConfigurationManagerLocal
newConfiguration is usually a modified version of a configuration returned by
ConfigurationManagerLocal.getPluginConfiguration(Subject, int).
updatePluginConfiguration in interface ConfigurationManagerLocalupdatePluginConfiguration in interface ConfigurationManagerRemotesubject - the user who wants to see the informationresourceId - a Resource idconfiguration - the new plugin configuration
ResourceNotFoundException
public Configuration getResourceConfiguration(Subject subject,
int resourceId)
ConfigurationManagerRemote
getResourceConfiguration in interface ConfigurationManagerLocalgetResourceConfiguration in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - A resource id.
public Configuration getResourceConfiguration(int resourceId)
ConfigurationManagerLocal#getCurrentResourceConfiguration.
getResourceConfiguration in interface ConfigurationManagerLocal
@Nullable
public ResourceConfigurationUpdate getLatestResourceConfigurationUpdate(Subject subject,
int resourceId)
ConfigurationManagerLocalResource with the given id, or null if the
resource's configuration is not yet initialized and for some reason we can't get its current live configuration
(e.g. in the case the agent or resource is down). Returns the configuration as it is known on the server-side in
the database. The database will be sync'ed with the live values, if the currently live configuration is actually
different than the latest configuration update found in history.
getLatestResourceConfigurationUpdate in interface ConfigurationManagerLocalgetLatestResourceConfigurationUpdate in interface ConfigurationManagerRemotesubject - the user who wants to see the informationresourceId - a Resource id
Resource with the given id, or null if the resource's configuration is not yet
initialized and its live configuration could not be determined
public PluginConfigurationUpdate getLatestPluginConfigurationUpdate(Subject subject,
int resourceId)
ConfigurationManagerLocalResource with the given id. Returns the configuration as it
is known on the server-side in the database.
getLatestPluginConfigurationUpdate in interface ConfigurationManagerLocalgetLatestPluginConfigurationUpdate in interface ConfigurationManagerRemotesubject - the user who wants to see the informationresourceId - a Resource id
Resource with the given id
public boolean isResourceConfigurationUpdateInProgress(Subject subject,
int resourceId)
ConfigurationManagerRemote
isResourceConfigurationUpdateInProgress in interface ConfigurationManagerLocalisResourceConfigurationUpdateInProgress in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - A resource id.
public boolean isPluginConfigurationUpdateInProgress(Subject subject,
int resourceId)
public boolean isGroupResourceConfigurationUpdateInProgress(Subject subject,
int groupId)
isGroupResourceConfigurationUpdateInProgress in interface ConfigurationManagerLocalisGroupResourceConfigurationUpdateInProgress in interface ConfigurationManagerRemote
public boolean isGroupPluginConfigurationUpdateInProgress(Subject subject,
int groupId)
public java.util.Map<java.lang.Integer,Configuration> getResourceConfigurationsForCompatibleGroup(Subject subject,
int groupId)
throws ConfigurationUpdateStillInProgressException,
java.lang.Exception
ConfigurationManagerLocal
getResourceConfigurationsForCompatibleGroup in interface ConfigurationManagerLocalsubject - the current subjectgroupId - the id of the compatible group
java.lang.Exception - if 1) one or more of the group's members are DOWN, or 2) we fail to retrieve one or more member
live configs from the corresponding Agents
ConfigurationUpdateStillInProgressException
public java.util.Map<java.lang.Integer,Configuration> getPluginConfigurationsForCompatibleGroup(Subject subject,
int groupId)
throws ConfigurationUpdateStillInProgressException,
java.lang.Exception
getPluginConfigurationsForCompatibleGroup in interface ConfigurationManagerLocalConfigurationUpdateStillInProgressException
java.lang.Exception
public Configuration getLiveResourceConfiguration(Subject subject,
int resourceId,
boolean pingAgentFirst)
throws java.lang.Exception
ConfigurationManagerLocalResource with the given id. This actually asks for
the up-to-date configuration directly from the agent. An exception will be thrown if communications with the
agent cannot be made.
getLiveResourceConfiguration in interface ConfigurationManagerLocalgetLiveResourceConfiguration in interface ConfigurationManagerRemotesubject - the user who wants to see the informationresourceId - a Resource idpingAgentFirst - true if the underlying Agent should be pinged successfully before attempting to retrieve
the configuration, or false otherwise
java.lang.Exception - if failed to get the configuration from the agentpublic void checkForTimedOutConfigurationUpdateRequests()
ConfigurationManagerLocal
checkForTimedOutConfigurationUpdateRequests in interface ConfigurationManagerLocal
public PageList<PluginConfigurationUpdate> findPluginConfigurationUpdates(Subject subject,
int resourceId,
java.lang.Long beginDate,
java.lang.Long endDate,
PageControl pc)
findPluginConfigurationUpdates in interface ConfigurationManagerLocal
public PageList<ResourceConfigurationUpdate> findResourceConfigurationUpdates(Subject subject,
java.lang.Integer resourceId,
java.lang.Long beginDate,
java.lang.Long endDate,
boolean suppressOldest,
PageControl pc)
ConfigurationManagerLocalConfigurationManagerLocal.updateResourceConfiguration(Subject, int, Configuration).
findResourceConfigurationUpdates in interface ConfigurationManagerLocalsubject - the user who wants to see the informationresourceId - the resource whose update requests are to be returned, if null will not filter by resourceIdbeginDate - filter used to show only results occurring after this epoch millis parameter, nullableendDate - filter used to show only results occurring before this epoch millis parameter, nullablesuppressOldest - if true, will not include the oldest element in the history (usually the initial update)pc - the pagination controls
null) if none)
public PluginConfigurationUpdate getPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
getPluginConfigurationUpdate in interface ConfigurationManagerLocal
public ResourceConfigurationUpdate getResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
ConfigurationManagerLocal
getResourceConfigurationUpdate in interface ConfigurationManagerLocalsubject - the user who wants to see the informationconfigurationUpdateId - the ID of the configuration update entity to return
public void purgePluginConfigurationUpdate(Subject subject,
int configurationUpdateId,
boolean purgeInProgress)
purgePluginConfigurationUpdate in interface ConfigurationManagerLocal
public void purgeResourceConfigurationUpdate(Subject subject,
int configurationUpdateId,
boolean purgeInProgress)
ConfigurationManagerLocalAbstractResourceConfigurationUpdate object with the
given ID. Once this returns, the complete audit trail for that update will be gone and you will not be able to
rollback to that configuration.
Under normal circumstances, you will not want to purge an update that is currently in progress. However, there
may be conditions in which an update request "gets stuck" in the in-progress state, even though you know the
agent will never report the completed request (typically caused by an unusual crash of the agent). In this case,
you should pass true in for the purgeInProgress parameter to tell this method to delete
the request even if it says it is in-progress.
purgeResourceConfigurationUpdate in interface ConfigurationManagerLocalsubject - the user who is requesting the purgeconfigurationUpdateId - identifies the update record to be deletedpurgeInProgress - if true, delete it even if its
in progress
public void purgeResourceConfigurationUpdates(Subject subject,
int[] configurationUpdateIds,
boolean purgeInProgress)
ConfigurationManagerLocal
purgeResourceConfigurationUpdates in interface ConfigurationManagerLocalsubject - the user who is requesting the purgeconfigurationUpdateIds - identifies the update records to be deletedpurgeInProgress - if true, delete those even if
in progress
@Nullable
public ResourceConfigurationUpdate updateResourceConfiguration(Subject subject,
int resourceId,
Configuration newConfiguration)
throws ResourceNotFoundException
ConfigurationManagerLocalThis will not wait for the agent to finish the configuration update. This will return after the request is
sent. Once the agent finishes with the request, it will send the completed request information to
ConfigurationManagerLocal.completeResourceConfigurationUpdate(org.rhq.core.clientapi.server.configuration.ConfigurationUpdateResponse).
updateResourceConfiguration in interface ConfigurationManagerLocalupdateResourceConfiguration in interface ConfigurationManagerRemotesubject - the user who is requesting the updateresourceId - identifies the resource to be updatednewConfiguration - the resource's desired new configuration
ResourceNotFoundExceptionpublic void executeResourceConfigurationUpdate(int updateId)
executeResourceConfigurationUpdate in interface ConfigurationManagerLocal
public void rollbackResourceConfiguration(Subject subject,
int resourceId,
int configHistoryId)
throws ConfigurationUpdateException
ConfigurationManagerLocalThis will not wait for the agent to finish the configuration update. This will return after the request is
sent. Once the agent finishes with the request, it will send the completed request information to
ConfigurationManagerLocal.completeResourceConfigurationUpdate(org.rhq.core.clientapi.server.configuration.ConfigurationUpdateResponse).
rollbackResourceConfiguration in interface ConfigurationManagerLocalsubject - the user who is requesting the updateresourceId - identifies the resource to be updatedconfigHistoryId - the id of the resource's previous configuration to rollback to
ConfigurationUpdateException - if the configHistoryId does not exist
public ResourceConfigurationUpdate persistNewResourceConfigurationUpdateHistory(Subject subject,
int resourceId,
Configuration newConfiguration,
ConfigurationUpdateStatus newStatus,
java.lang.String newSubject,
boolean isPartofGroupUpdate)
throws ResourceNotFoundException,
ConfigurationUpdateStillInProgressException
ConfigurationManagerLocalConfigurationManagerLocal.updateResourceConfiguration(Subject, int, Configuration) to call with REQUIRES_NEW transaction scope so
it can force the new request to be committed to the DB. Also used by
ConfigurationManagerLocal.getLatestResourceConfigurationUpdate(Subject, int) and
ConfigurationManagerLocal.scheduleGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject, int, java.util.Map) .
persistNewResourceConfigurationUpdateHistory in interface ConfigurationManagerLocalnewSubject - user to associate with this update change (may be null)
ResourceNotFoundException
ConfigurationUpdateStillInProgressExceptionpublic void completeResourceConfigurationUpdate(ConfigurationUpdateResponse response)
ConfigurationManagerLocal
completeResourceConfigurationUpdate in interface ConfigurationManagerLocalresponse - information that contains the status of the update (i.e. was it successfully updated or did it
fail?) as well as the configuration if it failed (with the properties containing error messages
to describe what failed). If the update was a success, the completed request's configuration will
be null to indicate that the configuration that was sent to the agent was used
as-is.public void checkForCompletedGroupResourceConfigurationUpdate(int resourceConfigUpdateId)
checkForCompletedGroupResourceConfigurationUpdate in interface ConfigurationManagerLocal
public ConfigurationDefinition getPackageTypeConfigurationDefinition(Subject subject,
int packageTypeId)
ConfigurationManagerRemotePackageType with the
specified id.
getPackageTypeConfigurationDefinition in interface ConfigurationManagerLocalgetPackageTypeConfigurationDefinition in interface ConfigurationManagerRemotesubject - the user who is requesting the plugin configuration definitionpackageTypeId - identifies the package type whose configuration definition is being requested
PackageType with the
specified id.ConfigurationManagerRemote.getPackageTypeConfigurationDefinition(Subject,int)
@Nullable
public ConfigurationDefinition getResourceConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
ConfigurationManagerLocalResourceType with the
specified id.
getResourceConfigurationDefinitionForResourceType in interface ConfigurationManagerLocalgetResourceConfigurationDefinitionForResourceType in interface ConfigurationManagerRemotesubject - the user who is requesting the resource configuration definitionresourceTypeId - identifies the resource type whose resource configuration definition is being requested
ResourceType with the
specified id, or null if the ResourceType does not define a resource configuration
@Nullable
public ConfigurationDefinition getResourceConfigurationDefinitionWithTemplatesForResourceType(Subject subject,
int resourceTypeId)
ConfigurationManagerLocalResourceType with the
specified id. The templates will be loaded in the definition returned from this call.
getResourceConfigurationDefinitionWithTemplatesForResourceType in interface ConfigurationManagerLocalgetResourceConfigurationDefinitionWithTemplatesForResourceType in interface ConfigurationManagerRemotesubject - the user who is requesting the resource configuration definitionresourceTypeId - identifies the resource type whose resource configuration definition is being requested
ResourceType with the
specified id, or null if the ResourceType does not define a resource configurationpublic boolean hasPluginConfiguration(int resourceTypeId)
@Nullable
public ConfigurationDefinition getPluginConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
ConfigurationManagerLocalResourceType with the
specified id.
getPluginConfigurationDefinitionForResourceType in interface ConfigurationManagerLocalgetPluginConfigurationDefinitionForResourceType in interface ConfigurationManagerRemotesubject - the user who is requesting the plugin configuration definitionresourceTypeId - identifies the resource type whose plugin configuration definition is being requested
ResourceType with the
specified id, or null if the ResourceType does not define a plugin configurationpublic AbstractResourceConfigurationUpdate mergeConfigurationUpdate(AbstractResourceConfigurationUpdate configurationUpdate)
ConfigurationManagerLocal
mergeConfigurationUpdate in interface ConfigurationManagerLocalconfigurationUpdate - a configuration update
public Configuration getConfigurationById(int id)
ConfigurationManagerLocal
getConfigurationById in interface ConfigurationManagerLocalid - identifies the configuration to return
null if there is no configuration with that ID
public Configuration getConfiguration(Subject subject,
int configurationId)
getConfiguration in interface ConfigurationManagerLocalgetConfiguration in interface ConfigurationManagerRemotepublic Configuration getConfigurationFromDefaultTemplate(ConfigurationDefinition definition)
ConfigurationManagerLocal
definition.getDefaultTemplate().getConfiguration() If the definition is already a managed bean, then there
is no real reason to call this since EJB3 will traverse the object relationships just fine. However, if the
definition is detached from the managed context, and because of the lazy-loading semantics of the entities
involved in the call chain above, then you can use this method since it will re-attach it and get the
configuration from the default template as shown above.
getConfigurationFromDefaultTemplate in interface ConfigurationManagerLocaldefinition - a configuration definition
Configuration from the default ConfigurationTemplate of the passed definition
public int createGroupConfigurationUpdate(AbstractGroupConfigurationUpdate update)
throws org.quartz.SchedulerException
createGroupConfigurationUpdate in interface ConfigurationManagerLocalorg.quartz.SchedulerException
public int scheduleGroupPluginConfigurationUpdate(Subject subject,
int compatibleGroupId,
java.util.Map<java.lang.Integer,Configuration> memberPluginConfigurations)
throws org.quartz.SchedulerException
scheduleGroupPluginConfigurationUpdate in interface ConfigurationManagerLocalorg.quartz.SchedulerException
public int scheduleGroupResourceConfigurationUpdate(Subject subject,
int compatibleGroupId,
java.util.Map<java.lang.Integer,Configuration> newResourceConfigurationMap)
scheduleGroupResourceConfigurationUpdate in interface ConfigurationManagerLocalscheduleGroupResourceConfigurationUpdate in interface ConfigurationManagerRemotepublic GroupPluginConfigurationUpdate getGroupPluginConfigurationById(int configurationUpdateId)
getGroupPluginConfigurationById in interface ConfigurationManagerLocalpublic GroupResourceConfigurationUpdate getGroupResourceConfigurationById(int configurationUpdateId)
getGroupResourceConfigurationById in interface ConfigurationManagerLocal
public PageList<ConfigurationUpdateComposite> findPluginConfigurationUpdateCompositesByParentId(int configurationUpdateId,
PageControl pageControl)
findPluginConfigurationUpdateCompositesByParentId in interface ConfigurationManagerLocal
public PageList<ConfigurationUpdateComposite> findResourceConfigurationUpdateCompositesByParentId(int configurationUpdateId,
PageControl pageControl)
findResourceConfigurationUpdateCompositesByParentId in interface ConfigurationManagerLocal
public PageList<java.lang.Integer> findPluginConfigurationUpdatesByParentId(int configurationUpdateId,
PageControl pageControl)
findPluginConfigurationUpdatesByParentId in interface ConfigurationManagerLocalpublic long getPluginConfigurationUpdateCountByParentId(int configurationUpdateId)
getPluginConfigurationUpdateCountByParentId in interface ConfigurationManagerLocal
public PageList<java.lang.Integer> findResourceConfigurationUpdatesByParentId(int groupConfigurationUpdateId,
PageControl pageControl)
findResourceConfigurationUpdatesByParentId in interface ConfigurationManagerLocalpublic long getResourceConfigurationUpdateCountByParentId(int groupConfigurationUpdateId)
getResourceConfigurationUpdateCountByParentId in interface ConfigurationManagerLocalpublic java.util.Map<java.lang.Integer,Configuration> getResourceConfigurationMapForGroupUpdate(java.lang.Integer groupResourceConfigurationUpdateId)
getResourceConfigurationMapForGroupUpdate in interface ConfigurationManagerLocalpublic java.util.Map<java.lang.Integer,Configuration> getPluginConfigurationMapForGroupUpdate(java.lang.Integer groupPluginConfigurationUpdateId)
getPluginConfigurationMapForGroupUpdate in interface ConfigurationManagerLocalpublic java.util.Map<java.lang.Integer,Configuration> getResourceConfigurationMapForCompatibleGroup(ResourceGroup compatibleGroup)
getResourceConfigurationMapForCompatibleGroup in interface ConfigurationManagerLocal
public PageList<GroupPluginConfigurationUpdate> findGroupPluginConfigurationUpdates(int groupId,
PageControl pc)
findGroupPluginConfigurationUpdates in interface ConfigurationManagerLocal
public PageList<GroupResourceConfigurationUpdate> findGroupResourceConfigurationUpdates(int groupId,
PageControl pc)
findGroupResourceConfigurationUpdates in interface ConfigurationManagerLocal
public ConfigurationUpdateStatus updateGroupPluginConfigurationUpdateStatus(int groupConfigurationUpdateId,
java.lang.String errorMessages)
updateGroupPluginConfigurationUpdateStatus in interface ConfigurationManagerLocal
public int deleteGroupPluginConfigurationUpdates(Subject subject,
java.lang.Integer resourceGroupId,
java.lang.Integer[] groupPluginConfigurationUpdateIds)
deleteGroupPluginConfigurationUpdates in interface ConfigurationManagerLocal
public int deleteGroupResourceConfigurationUpdates(Subject subject,
java.lang.Integer resourceGroupId,
java.lang.Integer[] groupResourceConfigurationUpdateIds)
deleteGroupResourceConfigurationUpdates in interface ConfigurationManagerLocalpublic void updateGroupConfigurationUpdate(AbstractGroupConfigurationUpdate groupUpdate)
updateGroupConfigurationUpdate in interface ConfigurationManagerLocalpublic void deleteConfigurations(java.util.List<java.lang.Integer> configurationIds)
deleteConfigurations in interface ConfigurationManagerLocalpublic void deleteProperties(int[] propertyIds)
deleteProperties in interface ConfigurationManagerLocal
public GroupPluginConfigurationUpdate getGroupPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
getGroupPluginConfigurationUpdate in interface ConfigurationManagerLocalgetGroupPluginConfigurationUpdate in interface ConfigurationManagerRemote
public GroupResourceConfigurationUpdate getGroupResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
getGroupResourceConfigurationUpdate in interface ConfigurationManagerLocalgetGroupResourceConfigurationUpdate in interface ConfigurationManagerRemotepublic java.util.Collection<RawConfiguration> findRawConfigurationsByConfigurationId(int configId)
findRawConfigurationsByConfigurationId in interface ConfigurationManagerLocalpublic RawConfiguration findRawConfigurationById(int rawConfigId)
findRawConfigurationById in interface ConfigurationManagerLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||