org.rhq.core.domain.resource.group
Class ResourceGroup

java.lang.Object
  extended by org.rhq.core.domain.resource.group.Group
      extended by org.rhq.core.domain.resource.group.ResourceGroup
All Implemented Interfaces:
Serializable

public class ResourceGroup
extends Group

A Group that contains Resources. It cannot contain other groups.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_EXPLICIT_BY_RESOURCE_IDS
           
static String QUERY_DELETE_IMPLICIT_BY_RESOURCE_IDS
           
static String QUERY_FIND_ALL_FILTERED_COUNT
           
static String QUERY_FIND_ALL_FILTERED_COUNT_ADMIN
           
static String QUERY_FIND_AUTOGROUP_BY_ID
           
static String QUERY_FIND_AUTOGROUP_BY_ID_ADMIN
           
static String QUERY_FIND_BY_CLUSTER_KEY
           
static String QUERY_FIND_BY_GROUP_DEFINITION_AND_EXPRESSION
           
static String QUERY_FIND_BY_IDS
           
static String QUERY_FIND_BY_IDS_admin
           
static String QUERY_FIND_BY_NAME
           
static String QUERY_FIND_BY_NAME_VISIBLE_GROUP
           
static String QUERY_FIND_IMPLICIT_RECURSIVE_GROUP_IDS_BY_RESOURCE_ID
           
static String QUERY_FIND_RESOURCE_GROUP_SUMMARY
           
static String QUERY_FIND_RESOURCE_GROUP_SUMMARY_admin
           
static String QUERY_FIND_RESOURCE_IDS_NOT_IN_GROUP_EXPLICIT
           
static String QUERY_FIND_RESOURCE_NAMES_BY_GROUP_ID
           
static String QUERY_GET_AVAILABLE_RESOURCE_GROUPS_FOR_ROLE
           
static String QUERY_GET_AVAILABLE_RESOURCE_GROUPS_FOR_ROLE_WITH_EXCLUDES
           
static String QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE
           
static String QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE_admin
           
static String QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_EXPLICIT
           
static String QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_IMPLICIT
           
static String QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_IMPLICIT_RECURSIVE
           
static String QUERY_NATIVE_FIND_FILTERED_MEMBER
           
static String QUERY_NATIVE_FIND_FILTERED_MEMBER_RESOURCE_FRAGMENT_WHERE
           
static String QUERY_NATIVE_FIND_FILTERED_MEMBER_SECURITY_FRAGMENT_JOIN
           
static String QUERY_NATIVE_FIND_FILTERED_MEMBER_SECURITY_FRAGMENT_WHERE
           
static String QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_EXPLICIT
           
static String QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_IMPLICIT
           
static String QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_IMPLICIT_RECURSIVE
           
static String QUERY_UPDATE_IMPLICIT_MIRROR_EXPLICIT
           
static String QUERY_UPDATE_REMOVE_IMPLICIT
           
 
Constructor Summary
protected ResourceGroup()
           
  ResourceGroup(String name)
           
  ResourceGroup(String name, ResourceType type)
           
 
Method Summary
 void addExplicitResource(Resource resource)
           
 void addImplicitResource(Resource resource)
           
 void addRole(Role role)
           
 void addTag(Tag tag)
           
 Set<AlertDefinition> getAlertDefinitions()
           
 Resource getAutoGroupParentResource()
           
 List<BundleDestination> getBundleDestinations()
           
 List<ResourceGroup> getClusterBackingGroups()
           
 String getClusterKey()
           
 ResourceGroup getClusterResourceGroup()
           
 List<AbstractGroupConfigurationUpdate> getConfigurationUpdates()
           
protected  Set<Dashboard> getDashboards()
           
 Set<Resource> getExplicitResources()
           
 String getGroupByClause()
           
 GroupCategory getGroupCategory()
           
 GroupDefinition getGroupDefinition()
           
 int getId()
           
 Set<Resource> getImplicitResources()
           
 List<GroupOperationHistory> getOperationHistories()
           
 ResourceType getResourceType()
           
 Set<Role> getRoles()
           
 Subject getSubject()
           
 Set<Tag> getTags()
           
 boolean isPrivateGroup()
           
 boolean isRecursive()
           
 boolean isVisible()
           
 boolean removeExplicitResource(Resource resource)
           
 boolean removeImplicitResource(Resource resource)
           
 void removeRole(Role role)
           
 boolean removeTag(Tag tag)
           
 void setAlertDefinitions(Set<AlertDefinition> alertDefinitions)
           
 void setAutoGroupParentResource(Resource autoGroupParentResource)
           
 void setBundleDestinations(List<BundleDestination> bundleDestinations)
           
 void setClusterBackingGroups(List<ResourceGroup> clusterBackingGroups)
           
 void setClusterKey(String clusterKey)
           
 void setClusterResourceGroup(ResourceGroup clusterResourceGroup)
           
 void setConfigurationUpdates(List<AbstractGroupConfigurationUpdate> configurationUpdates)
           
protected  void setDashboards(Set<Dashboard> dashboards)
           
 void setExplicitResources(Set<Resource> resources)
           
 void setGroupByClause(String groupByClause)
           
protected  void setGroupCategory(GroupCategory groupCategory)
           
 void setGroupDefinition(GroupDefinition groupDefinition)
           
 void setId(int id)
           
 void setImplicitResources(Set<Resource> resources)
           
 void setOperationHistories(List<GroupOperationHistory> operationHistories)
           
 void setRecursive(boolean recursive)
           
 void setResourceType(ResourceType resourceType)
           
 void setSubject(Subject subject)
           
 void setTags(Set<Tag> tags)
           
 void setVisible(boolean visible)
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.resource.group.Group
equals, getCtime, getDescription, getModifiedBy, getMtime, getName, hashCode, setCtime, setDescription, setModifiedBy, setMtime, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_RESOURCE_GROUP_SUMMARY

public static final String QUERY_FIND_RESOURCE_GROUP_SUMMARY
See Also:
Constant Field Values

QUERY_FIND_RESOURCE_GROUP_SUMMARY_admin

public static final String QUERY_FIND_RESOURCE_GROUP_SUMMARY_admin
See Also:
Constant Field Values

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
See Also:
Constant Field Values

QUERY_FIND_BY_NAME_VISIBLE_GROUP

public static final String QUERY_FIND_BY_NAME_VISIBLE_GROUP
See Also:
Constant Field Values

QUERY_FIND_BY_CLUSTER_KEY

public static final String QUERY_FIND_BY_CLUSTER_KEY
See Also:
Constant Field Values

QUERY_GET_AVAILABLE_RESOURCE_GROUPS_FOR_ROLE_WITH_EXCLUDES

public static final String QUERY_GET_AVAILABLE_RESOURCE_GROUPS_FOR_ROLE_WITH_EXCLUDES
See Also:
Constant Field Values

QUERY_GET_AVAILABLE_RESOURCE_GROUPS_FOR_ROLE

public static final String QUERY_GET_AVAILABLE_RESOURCE_GROUPS_FOR_ROLE
See Also:
Constant Field Values

QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE_admin

public static final String QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE_admin
See Also:
Constant Field Values

QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE

public static final String QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE
See Also:
Constant Field Values

QUERY_FIND_BY_IDS_admin

public static final String QUERY_FIND_BY_IDS_admin
See Also:
Constant Field Values

QUERY_FIND_BY_IDS

public static final String QUERY_FIND_BY_IDS
See Also:
Constant Field Values

QUERY_FIND_IMPLICIT_RECURSIVE_GROUP_IDS_BY_RESOURCE_ID

public static final String QUERY_FIND_IMPLICIT_RECURSIVE_GROUP_IDS_BY_RESOURCE_ID
See Also:
Constant Field Values

QUERY_FIND_AUTOGROUP_BY_ID

public static final String QUERY_FIND_AUTOGROUP_BY_ID
See Also:
Constant Field Values

QUERY_FIND_AUTOGROUP_BY_ID_ADMIN

public static final String QUERY_FIND_AUTOGROUP_BY_ID_ADMIN
See Also:
Constant Field Values

QUERY_FIND_RESOURCE_NAMES_BY_GROUP_ID

public static final String QUERY_FIND_RESOURCE_NAMES_BY_GROUP_ID
See Also:
Constant Field Values

QUERY_FIND_BY_GROUP_DEFINITION_AND_EXPRESSION

public static final String QUERY_FIND_BY_GROUP_DEFINITION_AND_EXPRESSION
See Also:
Constant Field Values

QUERY_DELETE_EXPLICIT_BY_RESOURCE_IDS

public static final String QUERY_DELETE_EXPLICIT_BY_RESOURCE_IDS
See Also:
Constant Field Values

QUERY_DELETE_IMPLICIT_BY_RESOURCE_IDS

public static final String QUERY_DELETE_IMPLICIT_BY_RESOURCE_IDS
See Also:
Constant Field Values

QUERY_FIND_ALL_FILTERED_COUNT

public static final String QUERY_FIND_ALL_FILTERED_COUNT
See Also:
Constant Field Values

QUERY_FIND_ALL_FILTERED_COUNT_ADMIN

public static final String QUERY_FIND_ALL_FILTERED_COUNT_ADMIN
See Also:
Constant Field Values

QUERY_UPDATE_REMOVE_IMPLICIT

public static final String QUERY_UPDATE_REMOVE_IMPLICIT
See Also:
Constant Field Values

QUERY_UPDATE_IMPLICIT_MIRROR_EXPLICIT

public static final String QUERY_UPDATE_IMPLICIT_MIRROR_EXPLICIT
See Also:
Constant Field Values

QUERY_NATIVE_FIND_FILTERED_MEMBER

public static final String QUERY_NATIVE_FIND_FILTERED_MEMBER
See Also:
Constant Field Values

QUERY_NATIVE_FIND_FILTERED_MEMBER_SECURITY_FRAGMENT_JOIN

public static final String QUERY_NATIVE_FIND_FILTERED_MEMBER_SECURITY_FRAGMENT_JOIN
See Also:
Constant Field Values

QUERY_NATIVE_FIND_FILTERED_MEMBER_SECURITY_FRAGMENT_WHERE

public static final String QUERY_NATIVE_FIND_FILTERED_MEMBER_SECURITY_FRAGMENT_WHERE
See Also:
Constant Field Values

QUERY_NATIVE_FIND_FILTERED_MEMBER_RESOURCE_FRAGMENT_WHERE

public static final String QUERY_NATIVE_FIND_FILTERED_MEMBER_RESOURCE_FRAGMENT_WHERE
See Also:
Constant Field Values

QUERY_FIND_RESOURCE_IDS_NOT_IN_GROUP_EXPLICIT

public static final String QUERY_FIND_RESOURCE_IDS_NOT_IN_GROUP_EXPLICIT
See Also:
Constant Field Values

QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_EXPLICIT

public static final String QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_EXPLICIT
See Also:
Constant Field Values

QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_IMPLICIT

public static final String QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_IMPLICIT
See Also:
Constant Field Values

QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_IMPLICIT_RECURSIVE

public static final String QUERY_NATIVE_ADD_RESOURCES_TO_GROUP_IMPLICIT_RECURSIVE
See Also:
Constant Field Values

QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_EXPLICIT

public static final String QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_EXPLICIT
See Also:
Constant Field Values

QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_IMPLICIT

public static final String QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_IMPLICIT
See Also:
Constant Field Values

QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_IMPLICIT_RECURSIVE

public static final String QUERY_NATIVE_REMOVE_RESOURCES_FROM_GROUP_IMPLICIT_RECURSIVE
See Also:
Constant Field Values
Constructor Detail

ResourceGroup

protected ResourceGroup()

ResourceGroup

public ResourceGroup(@NotNull
                     String name)

ResourceGroup

public ResourceGroup(@NotNull
                     String name,
                     ResourceType type)
Method Detail

getId

public int getId()

setId

public void setId(int id)

addExplicitResource

public void addExplicitResource(@NotNull
                                Resource resource)

setExplicitResources

public void setExplicitResources(Set<Resource> resources)

getExplicitResources

@NotNull
public Set<Resource> getExplicitResources()

removeExplicitResource

public boolean removeExplicitResource(@NotNull
                                      Resource resource)

addImplicitResource

public void addImplicitResource(@NotNull
                                Resource resource)

setImplicitResources

public void setImplicitResources(Set<Resource> resources)

getGroupCategory

public GroupCategory getGroupCategory()

setGroupCategory

protected void setGroupCategory(GroupCategory groupCategory)

getImplicitResources

@NotNull
public Set<Resource> getImplicitResources()

removeImplicitResource

public boolean removeImplicitResource(@NotNull
                                      Resource resource)

getRoles

public Set<Role> getRoles()

addRole

public void addRole(Role role)

removeRole

public void removeRole(Role role)

getOperationHistories

@NotNull
public List<GroupOperationHistory> getOperationHistories()

setOperationHistories

public void setOperationHistories(@NotNull
                                  List<GroupOperationHistory> operationHistories)

getConfigurationUpdates

@NotNull
public List<AbstractGroupConfigurationUpdate> getConfigurationUpdates()

setConfigurationUpdates

public void setConfigurationUpdates(@NotNull
                                    List<AbstractGroupConfigurationUpdate> configurationUpdates)

getBundleDestinations

public List<BundleDestination> getBundleDestinations()

setBundleDestinations

public void setBundleDestinations(List<BundleDestination> bundleDestinations)

getGroupDefinition

public GroupDefinition getGroupDefinition()

setGroupDefinition

public void setGroupDefinition(GroupDefinition groupDefinition)

getGroupByClause

public String getGroupByClause()

setGroupByClause

public void setGroupByClause(String groupByClause)

isRecursive

public boolean isRecursive()

setRecursive

public void setRecursive(boolean recursive)

getResourceType

public ResourceType getResourceType()

setResourceType

public void setResourceType(ResourceType resourceType)

getSubject

public Subject getSubject()

setSubject

public void setSubject(Subject subject)

isPrivateGroup

public boolean isPrivateGroup()
Returns:
true if this is a subject-owned group, private to the set subject

getClusterKey

public String getClusterKey()

setClusterKey

public void setClusterKey(String clusterKey)

getClusterResourceGroup

public ResourceGroup getClusterResourceGroup()

setClusterResourceGroup

public void setClusterResourceGroup(ResourceGroup clusterResourceGroup)

getAutoGroupParentResource

public Resource getAutoGroupParentResource()

setAutoGroupParentResource

public void setAutoGroupParentResource(Resource autoGroupParentResource)

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean visible)

getClusterBackingGroups

public List<ResourceGroup> getClusterBackingGroups()

setClusterBackingGroups

public void setClusterBackingGroups(List<ResourceGroup> clusterBackingGroups)

getAlertDefinitions

public Set<AlertDefinition> getAlertDefinitions()

setAlertDefinitions

public void setAlertDefinitions(Set<AlertDefinition> alertDefinitions)

getTags

public Set<Tag> getTags()

setTags

public void setTags(Set<Tag> tags)

addTag

public void addTag(Tag tag)

removeTag

public boolean removeTag(Tag tag)

getDashboards

protected Set<Dashboard> getDashboards()

setDashboards

protected void setDashboards(Set<Dashboard> dashboards)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.