org.rhq.enterprise.server.resource.group.definition
Class GroupDefinitionManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.resource.group.definition.GroupDefinitionManagerBean
All Implemented Interfaces:
GroupDefinitionManagerLocal

public class GroupDefinitionManagerBean
extends java.lang.Object
implements GroupDefinitionManagerLocal


Constructor Summary
GroupDefinitionManagerBean()
           
 
Method Summary
 java.lang.Integer calculateGroupMembership_helper(Subject overlord, int groupDefinitionId, ExpressionEvaluator.Result result)
           
 void calculateGroupMembership(Subject subject, int groupDefinitionId)
           
 GroupDefinition createGroupDefinition(Subject subject, GroupDefinition newGroupDefinition)
           
 int getAutoRecalculationGroupDefinitionCount(Subject subject)
           
 GroupDefinition getById(int groupDefinitionId)
           
 int getDynaGroupCount(Subject subject)
           
 int getGroupDefinitionCount(Subject subject)
           
 PageList<GroupDefinition> getGroupDefinitions(Subject subject, PageControl pc)
           
 PageList<ResourceGroupComposite> getManagedResourceGroups(Subject subject, int groupDefinitionId, PageControl pc)
           
 void init()
           
 void recalculateDynaGroups(Subject subject)
           
 void removeGroupDefinition(Subject subject, java.lang.Integer groupDefinitionId)
           
 void removeManagedResource_helper(Subject overlord, int groupDefinitionId, java.lang.Integer doomedGroupId)
           
 GroupDefinition updateGroupDefinition(Subject subject, GroupDefinition groupDefinition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupDefinitionManagerBean

public GroupDefinitionManagerBean()
Method Detail

init

@PostConstruct
public void init()

recalculateDynaGroups

public void recalculateDynaGroups(Subject subject)
Specified by:
recalculateDynaGroups in interface GroupDefinitionManagerLocal

getById

public GroupDefinition getById(int groupDefinitionId)
                        throws GroupDefinitionNotFoundException
Specified by:
getById in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionNotFoundException

createGroupDefinition

public GroupDefinition createGroupDefinition(Subject subject,
                                             GroupDefinition newGroupDefinition)
                                      throws GroupDefinitionAlreadyExistsException,
                                             GroupDefinitionCreateException
Specified by:
createGroupDefinition in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionAlreadyExistsException
GroupDefinitionCreateException

updateGroupDefinition

public GroupDefinition updateGroupDefinition(Subject subject,
                                             GroupDefinition groupDefinition)
                                      throws GroupDefinitionAlreadyExistsException,
                                             GroupDefinitionUpdateException,
                                             InvalidExpressionException,
                                             ResourceGroupUpdateException
Specified by:
updateGroupDefinition in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionAlreadyExistsException
GroupDefinitionUpdateException
InvalidExpressionException
ResourceGroupUpdateException

calculateGroupMembership

public void calculateGroupMembership(Subject subject,
                                     int groupDefinitionId)
                              throws GroupDefinitionDeleteException,
                                     GroupDefinitionNotFoundException,
                                     InvalidExpressionException,
                                     ResourceGroupUpdateException
Specified by:
calculateGroupMembership in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionDeleteException
GroupDefinitionNotFoundException
InvalidExpressionException
ResourceGroupUpdateException

calculateGroupMembership_helper

public java.lang.Integer calculateGroupMembership_helper(Subject overlord,
                                                         int groupDefinitionId,
                                                         ExpressionEvaluator.Result result)
                                                  throws GroupDefinitionNotFoundException,
                                                         GroupDefinitionNotFoundException
Specified by:
calculateGroupMembership_helper in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionNotFoundException

getManagedResourceGroups

public PageList<ResourceGroupComposite> getManagedResourceGroups(Subject subject,
                                                                 int groupDefinitionId,
                                                                 PageControl pc)
                                                          throws GroupDefinitionException
Specified by:
getManagedResourceGroups in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionException

getGroupDefinitions

public PageList<GroupDefinition> getGroupDefinitions(Subject subject,
                                                     PageControl pc)
Specified by:
getGroupDefinitions in interface GroupDefinitionManagerLocal

getGroupDefinitionCount

public int getGroupDefinitionCount(Subject subject)
Specified by:
getGroupDefinitionCount in interface GroupDefinitionManagerLocal

getAutoRecalculationGroupDefinitionCount

public int getAutoRecalculationGroupDefinitionCount(Subject subject)
Specified by:
getAutoRecalculationGroupDefinitionCount in interface GroupDefinitionManagerLocal

getDynaGroupCount

public int getDynaGroupCount(Subject subject)
Specified by:
getDynaGroupCount in interface GroupDefinitionManagerLocal

removeGroupDefinition

public void removeGroupDefinition(Subject subject,
                                  java.lang.Integer groupDefinitionId)
                           throws GroupDefinitionNotFoundException,
                                  GroupDefinitionDeleteException
Specified by:
removeGroupDefinition in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionNotFoundException
GroupDefinitionDeleteException

removeManagedResource_helper

public void removeManagedResource_helper(Subject overlord,
                                         int groupDefinitionId,
                                         java.lang.Integer doomedGroupId)
                                  throws GroupDefinitionDeleteException,
                                         GroupDefinitionNotFoundException
Specified by:
removeManagedResource_helper in interface GroupDefinitionManagerLocal
Throws:
GroupDefinitionDeleteException
GroupDefinitionNotFoundException


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