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_BY_CATEGORY
           
static String QUERY_FIND_ALL_BY_CATEGORY_admin
           
static String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY
           
static String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_ADMIN
           
static String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_COUNT
           
static String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_COUNT_ADMIN
           
static String QUERY_FIND_AUTOGROUP_BY_ID
           
static String QUERY_FIND_AUTOGROUP_BY_ID_ADMIN
           
static String QUERY_FIND_BY_GROUP_DEFINITION_AND_EXPRESSION
           
static String QUERY_FIND_BY_IDS
           
static String QUERY_FIND_BY_NAME
           
static String QUERY_FIND_BY_RESOURCE_ID
           
static String QUERY_FIND_BY_RESOURCE_ID_COMPOSITE
           
static String QUERY_FIND_BY_RESOURCE_ID_COMPOSITE_COUNT
           
static String QUERY_FIND_GROUP_COMPOSITE_BY_ID
           
static String QUERY_FIND_GROUP_IDS_BY_RESOURCE_ID
           
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
           
 
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)
           
 List<AbstractAggregateConfigurationUpdate> getConfigurationUpdates()
           
 Set<Resource> getExplicitResources()
           
 String getGroupByClause()
           
 GroupCategory getGroupCategory()
           
 GroupDefinition getGroupDefinition()
           
 int getId()
           
 Set<Resource> getImplicitResources()
           
 List<GroupOperationHistory> getOperationHistories()
           
 ResourceType getResourceType()
           
 Set<Role> getRoles()
           
 boolean isRecursive()
           
 boolean removeExplicitResource(Resource resource)
           
 boolean removeImplicitResource(Resource resource)
           
 void removeRole(Role role)
           
 void setConfigurationUpdates(List<AbstractAggregateConfigurationUpdate> configurationUpdates)
           
 void setGroupByClause(String groupByClause)
           
 void setGroupDefinition(GroupDefinition groupDefinition)
           
 void setId(int id)
           
 void setOperationHistories(List<GroupOperationHistory> operationHistories)
           
 void setRecursive(boolean recursive)
           
 void setResourceType(ResourceType resourceType)
           
 
Methods inherited from class org.rhq.core.domain.resource.group.Group
equals, getCtime, getDescription, getLocation, getModifiedBy, getMtime, getName, hashCode, setCtime, setDescription, setLocation, setModifiedBy, setMtime, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY

public static final String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY
See Also:
Constant Field Values

QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_COUNT

public static final String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_COUNT
See Also:
Constant Field Values

QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_ADMIN

public static final String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_ADMIN
See Also:
Constant Field Values

QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_COUNT_ADMIN

public static final String QUERY_FIND_ALL_COMPOSITE_BY_CATEGORY_COUNT_ADMIN
See Also:
Constant Field Values

QUERY_FIND_ALL_BY_CATEGORY

public static final String QUERY_FIND_ALL_BY_CATEGORY
See Also:
Constant Field Values

QUERY_FIND_ALL_BY_CATEGORY_admin

public static final String QUERY_FIND_ALL_BY_CATEGORY_admin
See Also:
Constant Field Values

QUERY_FIND_GROUP_IDS_BY_RESOURCE_ID

public static final String QUERY_FIND_GROUP_IDS_BY_RESOURCE_ID
See Also:
Constant Field Values

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
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

public static final String QUERY_GET_RESOURCE_GROUPS_ASSIGNED_TO_ROLE
See Also:
Constant Field Values

QUERY_FIND_BY_IDS

public static final String QUERY_FIND_BY_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID

public static final String QUERY_FIND_BY_RESOURCE_ID
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_COMPOSITE

public static final String QUERY_FIND_BY_RESOURCE_ID_COMPOSITE
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_COMPOSITE_COUNT

public static final String QUERY_FIND_BY_RESOURCE_ID_COMPOSITE_COUNT
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_GROUP_COMPOSITE_BY_ID

public static final String QUERY_FIND_GROUP_COMPOSITE_BY_ID
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
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)

getExplicitResources

@NotNull
public Set<Resource> getExplicitResources()

removeExplicitResource

public boolean removeExplicitResource(@NotNull
                                      Resource resource)

addImplicitResource

public void addImplicitResource(@NotNull
                                Resource resource)

getGroupCategory

public GroupCategory getGroupCategory()

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<AbstractAggregateConfigurationUpdate> getConfigurationUpdates()

setConfigurationUpdates

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

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)


Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.