|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.bizapp.server.session.BizappSessionEJB
org.hyperic.hq.bizapp.server.session.AppdefBossEJBImpl
public class AppdefBossEJBImpl
Field Summary | |
---|---|
protected int |
APPDEF_GROUP_TYPE_UNDEFINED
|
protected int |
APPDEF_RES_TYPE_UNDEFINED
|
protected int |
APPDEF_TYPE_UNDEFINED
|
protected boolean |
debug
|
protected org.apache.commons.logging.Log |
log
|
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
AppdefBossEJBImpl()
|
Method Summary | |
---|---|
void |
_removeApplicationInNewTran(AuthzSubject subject,
Application app)
|
void |
_removeGroupInNewTran(AuthzSubject subject,
ResourceGroup group)
|
void |
_removePlatformInNewTran(AuthzSubject subject,
Platform platform)
|
void |
_removeServerInNewTran(AuthzSubject subject,
Server server)
Used only during the asynchronous delete process. |
void |
_removeServiceInNewTran(AuthzSubject subject,
Service service)
Used only during the asynchronous delete process. |
void |
addResourcesToGroup(int sessionID,
ResourceGroup group,
java.util.List aeids)
Add entities to a resource group |
void |
batchGroupAdd(int sessionId,
AppdefEntityID entityId,
java.lang.Integer[] groupIds)
Add an appdef entity to a batch of groups. |
void |
batchGroupRemove(int sessionId,
AppdefEntityID entityId,
java.lang.Integer[] groupIds)
Remove an appdef entity from a batch of groups. |
AppdefResourceValue |
changeResourceOwner(int sessionId,
AppdefEntityID eid,
java.lang.Integer newOwnerId)
|
ApplicationValue |
createApplication(int sessionID,
ApplicationValue appVal,
java.util.Collection services,
ConfigResponse protoProps)
Create an application |
ResourceGroup |
createGroup(int sessionId,
int adType,
int adResType,
java.lang.String name,
java.lang.String description,
java.lang.String location,
java.lang.String[] resources,
boolean privGrp)
Create and return a new compatible group type object. |
ResourceGroup |
createGroup(int sessionId,
int adType,
java.lang.String name,
java.lang.String description,
java.lang.String location,
java.lang.String[] resources,
boolean privGrp)
Create and return a new strict mixed group value object. |
ResourceGroup |
createGroup(int sessionId,
java.lang.String name,
java.lang.String description,
java.lang.String location,
java.lang.String[] resources,
boolean privGrp)
Create and return a new mixed group value object. |
Platform |
createPlatform(int sessionID,
PlatformValue platformVal,
java.lang.Integer platTypePK,
java.lang.Integer agent)
|
ServerValue |
createServer(int sessionID,
ServerValue serverVal,
java.lang.Integer platformPK,
java.lang.Integer serverTypePK,
java.util.Map cProps)
Create a server with CProps |
Service |
createService(AuthzSubject subject,
ServiceValue serviceVal,
java.lang.Integer serviceTypePK,
java.lang.Integer serverPK,
java.util.Map cProps)
Create a service with CProps |
ServiceValue |
createService(int sessionID,
ServiceValue serviceVal,
java.lang.Integer serviceTypePK,
AppdefEntityID aeid)
|
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
Agent |
findAgentByIpAndPort(int sessionId,
java.lang.String ip,
int port)
Get the value of one agent based on the IP and Port on which the agent is listening |
java.util.List |
findAllAgents(int sessionId)
|
java.util.List |
findAllApplicationTypes(int sessionID)
|
java.util.Collection |
findAllGroupPojos(int sessionId)
Produce list of all group pojos where caller is authorized |
PageList |
findAllGroupsMemberExclusive(int sessionId,
PageControl pc,
AppdefEntityID entity)
Produce list of all groups where caller is authorized to modify. |
PageList |
findAllGroupsMemberExclusive(int sessionId,
PageControl pc,
AppdefEntityID[] entities)
Produce list of all groups where caller is authorized to modify. |
PageList |
findAllGroupsMemberExclusive(int sessionId,
PageControl pc,
AppdefEntityID entity,
java.lang.Integer[] removeIds)
Produce list of all groups where caller is authorized to modify. |
PageList |
findAllGroupsMemberExclusive(int sessionId,
PageControl pc,
AppdefEntityID entity,
java.lang.Integer[] removeIds,
Resource resourceType)
Produce list of all groups where caller is authorized to modify. |
PageList |
findAllGroupsMemberInclusive(int sessionId,
PageControl pc,
AppdefEntityID entity)
Produce list of all groups where caller is authorized to modify. |
PageList |
findAllPlatforms(int sessionID,
PageControl pc)
Get all platforms in the inventory. |
PageList |
findAllPlatformTypes(int sessionID,
PageControl pc)
Find all the platform types defined in the system. |
PageList |
findAllResourceTypes(int sessionId,
int entType,
PageControl pc)
|
PageList |
findAllResourceTypes(int sessionId,
PageControl pc)
|
PageList |
findAllServerTypes(int sessionID,
PageControl pc)
Find all the server types defined in the system. |
PageList |
findAllServiceTypes(int sessionID,
PageControl pc)
|
ApplicationValue |
findApplicationById(int sessionID,
java.lang.Integer id)
|
PageList |
findApplications(int sessionID,
AppdefEntityID id,
PageControl pc)
|
ApplicationType |
findApplicationTypeById(int sessionId,
java.lang.Integer id)
|
PageList |
findAvailableServicesForApplication(int sessionId,
java.lang.Integer appId,
AppdefEntityID[] pendingEntities,
java.lang.String nameFilter,
PageControl pc)
Find SERVICE compatible inventory. |
AppdefResourceValue |
findById(int sessionId,
AppdefEntityID entityId)
Looks up and returns a value object corresponding to the appdef entity represented by the instance id passed in. |
PageList |
findByIds(int sessionId,
AppdefEntityID[] entities,
PageControl pc)
Looks up and returns a list of value objects corresponding to the list of appdef entity represented by the instance ids passed in. |
PageList |
findChildResources(int sessionID,
AppdefEntityID parent,
AppdefEntityTypeID childResourceType,
PageControl pc)
Get first-level child resources of a given resource based on the child resource type. |
AppdefResourceType |
findCommonResourceType(int sessionID,
java.lang.String[] aeids)
Find a common appdef resource type among the appdef entities |
PageList |
findCompatInventory(int sessionId,
int appdefTypeId,
int appdefResTypeId,
AppdefEntityID groupEntity,
AppdefEntityID[] pendingEntities,
java.lang.String resourceName,
PageControl pc)
Produce list of compatible, viewable inventory items. |
PageList |
findCompatInventory(int sessionId,
int groupType,
int appdefTypeId,
int groupEntTypeId,
int appdefResTypeId,
java.lang.String resourceName,
AppdefEntityID[] pendingEntities,
PageControl pc)
Produce list of compatible, viewable inventory items. |
AppdefGroupValue |
findGroup(int sessionId,
java.lang.Integer id)
|
ResourceGroup |
findGroupById(int sessionId,
java.lang.Integer groupId)
|
PageList |
findGroups(int sessionId,
java.lang.Integer[] groupIds,
PageControl pc)
Lookup and return a list of group value objects by their identifiers. |
PlatformValue |
findPlatformByDependentID(int sessionID,
AppdefEntityID entityId)
Find the platform by service. |
PlatformValue |
findPlatformById(int sessionID,
java.lang.Integer id)
|
PageList |
findPlatformServices(int sessionID,
java.lang.Integer platformId,
java.lang.Integer typeId,
PageControl pc)
|
PageList |
findPlatformServices(int sessionID,
java.lang.Integer platformId,
PageControl pc)
|
PlatformType |
findPlatformTypeById(int sessionID,
java.lang.Integer id)
|
PlatformType |
findPlatformTypeByName(int sessionID,
java.lang.String name)
|
PageList |
findRecentPlatforms(int sessionID,
long range,
int size)
Get recently created platforms in the inventory. |
Agent |
findResourceAgent(AppdefEntityID entityId)
|
AppdefResourceTypeValue |
findResourceTypeById(int sessionID,
AppdefEntityTypeID id)
|
ServerValue |
findServerById(int sessionID,
java.lang.Integer id)
|
ServerValue |
findServerByService(int sessionID,
java.lang.Integer serviceID)
|
PageList |
findServersByPlatform(int sessionID,
java.lang.Integer platformId,
PageControl pc)
Find all servers on a given platform |
PageList |
findServersByTypeAndPlatform(int sessionId,
java.lang.Integer platformId,
int adResTypeId,
PageControl pc)
|
ServerType |
findServerTypeById(int sessionID,
java.lang.Integer id)
|
PageList |
findServerTypesByPlatform(int sessionID,
java.lang.Integer platformId,
PageControl pc)
|
PageList |
findServerTypesByPlatformType(int sessionID,
java.lang.Integer platformId,
PageControl pc)
|
ServiceValue |
findServiceById(int sessionID,
java.lang.Integer id)
|
PageList |
findServiceInventoryByApplication(int sessionID,
java.lang.Integer appId,
PageControl pc)
Find service inventory by application - including services and clusters |
PageList |
findServicesByServer(int sessionID,
java.lang.Integer serverId,
PageControl pc)
Find all services on a server |
ServiceType |
findServiceTypeById(int sessionID,
java.lang.Integer id)
|
PageList |
findServiceTypesByServerType(int sessionID,
int serverTypeId)
|
PageList |
findViewablePlatformServiceTypes(int sessionID,
java.lang.Integer platId)
|
PageList |
findViewablePlatformTypes(int sessionID,
PageControl pc)
Find all the viewable platform types defined in the system. |
PageList |
findViewableServersByPlatform(int sessionID,
java.lang.Integer platformId,
PageControl pc)
Get the virtual servers for a given platform |
PageList |
findViewableServerTypes(int sessionID,
PageControl pc)
Find all viewable server types defined in the system. |
PageList |
findViewableServiceTypes(int sessionID,
PageControl pc)
|
ServerValue |
findVirtualServerByPlatformServiceType(int sessionID,
java.lang.Integer platId,
java.lang.Integer svcTypeId)
Get the virtual server for a given platform and service type |
int |
getAgentCount(int sessionId)
|
java.lang.String[][] |
getAppdefTypeStrArrMap()
Returns a 2x2 array mapping "appdef type id" to its corresponding label. |
DependencyTree |
getAppDependencyTree(int sessionId,
java.lang.Integer appId)
Get the dependency tree for a given application |
java.util.Properties |
getCPropDescEntries(int sessionId,
AppdefEntityID id)
Get a map which holds the descriptions & their associated values for an appdef entity. |
java.util.List |
getCPropKeys(int sessionId,
AppdefEntityID aeid)
Get all the keys associated with an appdef type of a resource. |
java.util.List |
getCPropKeys(int sessionId,
int appdefType,
int appdefTypeId)
Get all the keys associated with an appdef resource type. |
java.util.Collection |
getGroupsForResource(int sessionId,
Resource r)
|
AppdefInventorySummary |
getInventorySummary(int sessionId,
boolean countTypes)
Get the appdef inventory summary visible to a user |
ResourceTreeNode[] |
getNavMapData(int sessionId,
AppdefEntityID adeId)
Get the navigation map data for a given Appdef entity. |
ResourceTreeNode[] |
getNavMapData(int sessionId,
AppdefEntityID[] adeIds,
int ctype)
Get the navigation map data for a an auto-group. |
static org.hyperic.hq.bizapp.shared.AppdefBossLocal |
getOne()
|
AppdefResourcePermissions |
getResourcePermissions(int sessionId,
AppdefEntityID id)
|
java.util.Map |
getResourceTypeCountMap(int sessionId,
java.lang.Integer groupId)
|
java.util.List |
getServicesView(AuthzSubject subject,
Resource proto,
java.lang.String cprop,
java.lang.String metricName,
PageInfo pi)
Get Service resources and their display information |
java.util.Collection |
getUnavailableResources(AuthzSubject user,
java.lang.String typeId,
PageInfo info)
Get the list of resources that are unavailable |
java.util.Map |
getUnavailableResourcesCount(AuthzSubject user)
Get the map of unavailable resource counts by type |
boolean |
hasVirtualResourceRelation(Resource resource)
Check whether or not a given resource exists in the virtual hierarchy |
AppdefEntityID[] |
removeAppdefEntity(int sessionId,
AppdefEntityID aeid)
Removes an appdef entity by nulling out any reference from its children and then deleting it synchronously. |
void |
removeAppService(int sessionId,
java.lang.Integer appId,
java.lang.Integer serviceId)
Remove an application service. |
void |
removeDeletedResources(java.util.Map agentCache)
Remove all delete resources Method is "NotSupported" since all the resource deletes may take longer than the jboss transaction timeout. |
void |
removePlatform(AuthzSubject subject,
Platform platform)
|
void |
removeResourcesFromGroup(int sessionId,
ResourceGroup group,
java.util.Collection resources)
Remove resources from the group's contents. |
void |
removeServer(AuthzSubject subj,
java.lang.Integer serverId)
|
void |
resetResourceOwnership(int sessionId,
AuthzSubject currentOwner)
Update all the appdef resources owned by this user to be owned by the root user. |
PageList |
search(int sessionId,
int appdefTypeId,
java.lang.String searchFor,
AppdefEntityTypeID appdefResType,
java.lang.Integer groupId,
int[] groupSubType,
boolean matchAny,
boolean matchOwn,
boolean matchUnavail,
PageControl pc)
Perform a search for resources from the resource hub |
PageList |
search(int sessionId,
java.lang.String searchFor,
PageControl pc)
Perform a search for resources |
void |
setAllConfigResponses(int sessionInt,
AllConfigResponses allConfigs,
AllConfigResponses allConfigsRollback)
A method to set ALL the configs of a resource. |
void |
setAppDependencyTree(int sessionId,
DependencyTree depTree)
|
void |
setApplicationServices(int sessionId,
java.lang.Integer appId,
java.util.List entityIds)
Set the services used by an application indicate whether the service is an entry point |
void |
setCPropValue(int sessionId,
AppdefEntityID id,
java.lang.String key,
java.lang.String val)
Set (or delete) a custom property for a resource. |
void |
startup()
|
ApplicationValue |
updateApplication(int sessionId,
ApplicationValue app)
|
void |
updateGroup(int sessionId,
ResourceGroup group,
java.lang.String name,
java.lang.String description,
java.lang.String location)
Update properties of a group. |
PlatformValue |
updatePlatform(AuthzSubject subject,
PlatformValue aPlatform)
|
PlatformValue |
updatePlatform(int sessionId,
PlatformValue aPlatform)
|
ServerValue |
updateServer(int sessionId,
ServerValue aServer)
|
ServerValue |
updateServer(int sessionId,
ServerValue aServer,
java.util.Map cProps)
Update a server with cprops. |
ServiceValue |
updateService(AuthzSubject subject,
ServiceValue aService,
java.util.Map cProps)
Update a service with cProps. |
ServiceValue |
updateService(int sessionId,
ServiceValue aService)
|
ServiceValue |
updateService(int sessionId,
ServiceValue aService,
java.util.Map cProps)
Update a service with cProps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
---|
setSessionContext |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected boolean debug
protected final int APPDEF_TYPE_UNDEFINED
protected final int APPDEF_RES_TYPE_UNDEFINED
protected final int APPDEF_GROUP_TYPE_UNDEFINED
Constructor Detail |
---|
public AppdefBossEJBImpl()
Method Detail |
---|
public AppdefResourceType findCommonResourceType(int sessionID, java.lang.String[] aeids) throws AppdefEntityNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException
sessionID
- aeids
- the array of appdef entity IDs
AppdefEntityNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
public PageList findAllPlatformTypes(int sessionID, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findViewablePlatformTypes(int sessionID, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, PermissionException, javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
javax.ejb.FinderException
public PageList findAllServerTypes(int sessionID, PageControl pc) throws javax.ejb.FinderException, SessionNotFoundException, SessionTimeoutException, PermissionException
javax.ejb.FinderException
SessionNotFoundException
SessionTimeoutException
PermissionException
public PageList findViewableServerTypes(int sessionID, PageControl pc) throws javax.ejb.FinderException, SessionNotFoundException, SessionTimeoutException, PermissionException
javax.ejb.FinderException
SessionNotFoundException
SessionTimeoutException
PermissionException
public java.util.List findAllApplicationTypes(int sessionID) throws ApplicationException
ApplicationException
public ApplicationType findApplicationTypeById(int sessionId, java.lang.Integer id) throws ApplicationException
ApplicationException
public PageList findAllServiceTypes(int sessionID, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findViewableServiceTypes(int sessionID, PageControl pc) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException, PermissionException
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findViewablePlatformServiceTypes(int sessionID, java.lang.Integer platId) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public ApplicationValue findApplicationById(int sessionID, java.lang.Integer id) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findChildResources(int sessionID, AppdefEntityID parent, AppdefEntityTypeID childResourceType, PageControl pc) throws SessionException, PermissionException, AppdefEntityNotFoundException
Get first-level child resources of a given resource based on the child resource type.
For example:
parent
- the resource whose children we wantchildResourceType
- the type of child resource
AppdefResourceValue
objects
SessionException
PermissionException
AppdefEntityNotFoundException
public PageList findApplications(int sessionID, AppdefEntityID id, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findPlatformServices(int sessionID, java.lang.Integer platformId, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findPlatformServices(int sessionID, java.lang.Integer platformId, java.lang.Integer typeId, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findServiceInventoryByApplication(int sessionID, java.lang.Integer appId, PageControl pc) throws AppdefEntityNotFoundException, SessionException, PermissionException
AppdefEntityNotFoundException
SessionException
PermissionException
public PageList findServicesByServer(int sessionID, java.lang.Integer serverId, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionException
AppdefEntityNotFoundException
PermissionException
SessionException
public PlatformValue findPlatformByDependentID(int sessionID, AppdefEntityID entityId) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
public ServerValue findServerByService(int sessionID, java.lang.Integer serviceID) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findServersByTypeAndPlatform(int sessionId, java.lang.Integer platformId, int adResTypeId, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public ServerValue findVirtualServerByPlatformServiceType(int sessionID, java.lang.Integer platId, java.lang.Integer svcTypeId) throws ServerNotFoundException, PlatformNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException
ServerNotFoundException
PlatformNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
public PageList findServersByPlatform(int sessionID, java.lang.Integer platformId, PageControl pc) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findViewableServersByPlatform(int sessionID, java.lang.Integer platformId, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findServerTypesByPlatform(int sessionID, java.lang.Integer platformId, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findServerTypesByPlatformType(int sessionID, java.lang.Integer platformId, PageControl pc) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
public PageList findAllPlatforms(int sessionID, PageControl pc) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException, PermissionException
sessionID
- The current session token.pc
- a PageControl object which determines the size of the page and
the sorting, if any.
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findRecentPlatforms(int sessionID, long range, int size) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException, PermissionException
sessionID
- The current session token.
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findByIds(int sessionId, AppdefEntityID[] entities, PageControl pc) throws PermissionException, SessionTimeoutException, SessionNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public AppdefResourceValue findById(int sessionId, AppdefEntityID entityId) throws AppdefEntityNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PlatformValue findPlatformById(int sessionID, java.lang.Integer id) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
public Agent findResourceAgent(AppdefEntityID entityId) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException, AgentNotFoundException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
AgentNotFoundException
public ServerValue findServerById(int sessionID, java.lang.Integer id) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
public ServiceValue findServiceById(int sessionID, java.lang.Integer id) throws AppdefEntityNotFoundException, SessionTimeoutException, SessionNotFoundException, PermissionException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findAllResourceTypes(int sessionId, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findAllResourceTypes(int sessionId, int entType, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public Platform createPlatform(int sessionID, PlatformValue platformVal, java.lang.Integer platTypePK, java.lang.Integer agent) throws javax.ejb.CreateException, ValidationException, SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefDuplicateNameException, AppdefDuplicateFQDNException, ApplicationException
platTypePK
- - the type of platform
javax.ejb.CreateException
ValidationException
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefDuplicateNameException
AppdefDuplicateFQDNException
ApplicationException
public AppdefResourceTypeValue findResourceTypeById(int sessionID, AppdefEntityTypeID id) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public PlatformType findPlatformTypeById(int sessionID, java.lang.Integer id) throws PlatformNotFoundException, SessionTimeoutException, SessionNotFoundException
PlatformNotFoundException
SessionTimeoutException
SessionNotFoundException
public PlatformType findPlatformTypeByName(int sessionID, java.lang.String name) throws PlatformNotFoundException, SessionTimeoutException, SessionNotFoundException
PlatformNotFoundException
SessionTimeoutException
SessionNotFoundException
public ServiceType findServiceTypeById(int sessionID, java.lang.Integer id) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public PageList findServiceTypesByServerType(int sessionID, int serverTypeId) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public ServerType findServerTypeById(int sessionID, java.lang.Integer id) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public ServerValue createServer(int sessionID, ServerValue serverVal, java.lang.Integer platformPK, java.lang.Integer serverTypePK, java.util.Map cProps) throws javax.ejb.CreateException, ValidationException, SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefDuplicateNameException, CPropKeyNotFoundException
platformPK
- - the pk of the host platformserverTypePK
- - the type of servercProps
- - the map with Custom Properties for the server
javax.ejb.CreateException
ValidationException
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefDuplicateNameException
CPropKeyNotFoundException
public ApplicationValue createApplication(int sessionID, ApplicationValue appVal, java.util.Collection services, ConfigResponse protoProps) throws javax.ejb.CreateException, ValidationException, SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefDuplicateNameException
javax.ejb.CreateException
ValidationException
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefDuplicateNameException
public ServiceValue createService(int sessionID, ServiceValue serviceVal, java.lang.Integer serviceTypePK, AppdefEntityID aeid) throws SessionNotFoundException, SessionTimeoutException, ServerNotFoundException, PlatformNotFoundException, PermissionException, AppdefDuplicateNameException, ValidationException, javax.ejb.CreateException
serviceTypePK
- - the type of serviceaeid
- - the appdef entity ID
SessionNotFoundException
SessionTimeoutException
ServerNotFoundException
PlatformNotFoundException
PermissionException
AppdefDuplicateNameException
ValidationException
javax.ejb.CreateException
public Service createService(AuthzSubject subject, ServiceValue serviceVal, java.lang.Integer serviceTypePK, java.lang.Integer serverPK, java.util.Map cProps) throws SessionNotFoundException, SessionTimeoutException, AppdefDuplicateNameException, ValidationException, PermissionException, javax.ejb.CreateException, CPropKeyNotFoundException
serviceTypePK
- - the type of serviceserverPK
- - the server hostcProps
- - the map with Custom Properties for the service
SessionNotFoundException
SessionTimeoutException
AppdefDuplicateNameException
ValidationException
PermissionException
javax.ejb.CreateException
CPropKeyNotFoundException
public AppdefEntityID[] removeAppdefEntity(int sessionId, AppdefEntityID aeid) throws SessionNotFoundException, SessionTimeoutException, ApplicationException, VetoException
ResourcesCleanupZevent
SessionNotFoundException
SessionTimeoutException
ApplicationException
VetoException
public void removeDeletedResources(java.util.Map agentCache) throws ApplicationException, VetoException, javax.ejb.RemoveException
agentCache
- Map
of Integer
of agentIds
to List
of AppdefEntityID
s
ApplicationException
VetoException
javax.ejb.RemoveException
public void _removePlatformInNewTran(AuthzSubject subject, Platform platform) throws ApplicationException, VetoException
ApplicationException
VetoException
public void removePlatform(AuthzSubject subject, Platform platform) throws ApplicationException, VetoException
ApplicationException
VetoException
public void _removeServerInNewTran(AuthzSubject subject, Server server) throws VetoException, PermissionException
VetoException
PermissionException
public void _removeServiceInNewTran(AuthzSubject subject, Service service) throws VetoException, PermissionException, javax.ejb.RemoveException
VetoException
PermissionException
javax.ejb.RemoveException
public void _removeGroupInNewTran(AuthzSubject subject, ResourceGroup group) throws SessionException, PermissionException, VetoException
SessionException
PermissionException
VetoException
public void _removeApplicationInNewTran(AuthzSubject subject, Application app) throws ApplicationException, PermissionException, SessionException, VetoException
ApplicationException
PermissionException
SessionException
VetoException
public ServerValue updateServer(int sessionId, ServerValue aServer) throws PermissionException, ValidationException, SessionTimeoutException, SessionNotFoundException, javax.ejb.FinderException, UpdateException, AppdefDuplicateNameException
PermissionException
ValidationException
SessionTimeoutException
SessionNotFoundException
javax.ejb.FinderException
UpdateException
AppdefDuplicateNameException
public ServerValue updateServer(int sessionId, ServerValue aServer, java.util.Map cProps) throws javax.ejb.FinderException, ValidationException, SessionTimeoutException, SessionNotFoundException, PermissionException, UpdateException, AppdefDuplicateNameException, CPropKeyNotFoundException
cProps
- - the map with Custom Properties for the server
javax.ejb.FinderException
ValidationException
SessionTimeoutException
SessionNotFoundException
PermissionException
UpdateException
AppdefDuplicateNameException
CPropKeyNotFoundException
public ServiceValue updateService(int sessionId, ServiceValue aService) throws PermissionException, ValidationException, SessionTimeoutException, SessionNotFoundException, javax.ejb.FinderException, UpdateException, AppdefDuplicateNameException
PermissionException
ValidationException
SessionTimeoutException
SessionNotFoundException
javax.ejb.FinderException
UpdateException
AppdefDuplicateNameException
public ServiceValue updateService(int sessionId, ServiceValue aService, java.util.Map cProps) throws javax.ejb.FinderException, ValidationException, SessionTimeoutException, SessionNotFoundException, PermissionException, UpdateException, AppdefDuplicateNameException, CPropKeyNotFoundException
cProps
- - the map with Custom Properties for the service
javax.ejb.FinderException
ValidationException
SessionTimeoutException
SessionNotFoundException
PermissionException
UpdateException
AppdefDuplicateNameException
CPropKeyNotFoundException
public ServiceValue updateService(AuthzSubject subject, ServiceValue aService, java.util.Map cProps) throws javax.ejb.FinderException, ValidationException, SessionTimeoutException, SessionNotFoundException, PermissionException, UpdateException, AppdefDuplicateNameException, CPropKeyNotFoundException
cProps
- - the map with Custom Properties for the service
javax.ejb.FinderException
ValidationException
SessionTimeoutException
SessionNotFoundException
PermissionException
UpdateException
AppdefDuplicateNameException
CPropKeyNotFoundException
public PlatformValue updatePlatform(int sessionId, PlatformValue aPlatform) throws javax.ejb.FinderException, ValidationException, PermissionException, SessionTimeoutException, SessionNotFoundException, UpdateException, ApplicationException, AppdefDuplicateNameException, AppdefDuplicateFQDNException
javax.ejb.FinderException
ValidationException
PermissionException
SessionTimeoutException
SessionNotFoundException
UpdateException
ApplicationException
AppdefDuplicateNameException
AppdefDuplicateFQDNException
public PlatformValue updatePlatform(AuthzSubject subject, PlatformValue aPlatform) throws javax.ejb.FinderException, ValidationException, PermissionException, SessionTimeoutException, SessionNotFoundException, UpdateException, ApplicationException, AppdefDuplicateNameException, AppdefDuplicateFQDNException
javax.ejb.FinderException
ValidationException
PermissionException
SessionTimeoutException
SessionNotFoundException
UpdateException
ApplicationException
AppdefDuplicateNameException
AppdefDuplicateFQDNException
public ApplicationValue updateApplication(int sessionId, ApplicationValue app) throws ApplicationException, PermissionException
ApplicationException
PermissionException
public void setApplicationServices(int sessionId, java.lang.Integer appId, java.util.List entityIds) throws ApplicationException, PermissionException
ApplicationException
PermissionException
public DependencyTree getAppDependencyTree(int sessionId, java.lang.Integer appId) throws ApplicationException, PermissionException
ApplicationException
PermissionException
public void setAppDependencyTree(int sessionId, DependencyTree depTree) throws ApplicationException, PermissionException
ApplicationException
PermissionException
public void removeServer(AuthzSubject subj, java.lang.Integer serverId) throws ServerNotFoundException, SessionNotFoundException, SessionTimeoutException, PermissionException, SessionException, VetoException
ServerNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
SessionException
VetoException
public void removeAppService(int sessionId, java.lang.Integer appId, java.lang.Integer serviceId) throws ApplicationException, ApplicationNotFoundException, PermissionException, SessionTimeoutException, SessionNotFoundException
appId
- - The application identifier.
ApplicationException
ApplicationNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public AppdefResourceValue changeResourceOwner(int sessionId, AppdefEntityID eid, java.lang.Integer newOwnerId) throws ApplicationException, PermissionException
ApplicationException
PermissionException
public ResourceGroup createGroup(int sessionId, java.lang.String name, java.lang.String description, java.lang.String location, java.lang.String[] resources, boolean privGrp) throws GroupCreationException, GroupDuplicateNameException, SessionException
name
- - The name of the group.description
- - A description of the group contents. (optional)location
- - Location of group (optional)
GroupCreationException
GroupDuplicateNameException
SessionException
public ResourceGroup createGroup(int sessionId, int adType, java.lang.String name, java.lang.String description, java.lang.String location, java.lang.String[] resources, boolean privGrp) throws GroupCreationException, SessionException, GroupDuplicateNameException
adType
- - The appdef entity type (groups or applications)name
- - The name of the group.description
- - A description of the group contents. (optional)location
- - Location of group (optional)
GroupCreationException
SessionException
GroupDuplicateNameException
public ResourceGroup createGroup(int sessionId, int adType, int adResType, java.lang.String name, java.lang.String description, java.lang.String location, java.lang.String[] resources, boolean privGrp) throws GroupCreationException, GroupDuplicateNameException, SessionException
adType
- - The type of entity this group is compatible with.adResType
- - The resource type this group is compatible with.name
- - The name of the group.description
- - A description of the group contents. (optional)location
- - Location of group (optional)
GroupCreationException
GroupDuplicateNameException
SessionException
public void removeResourcesFromGroup(int sessionId, ResourceGroup group, java.util.Collection resources) throws SessionException, PermissionException, VetoException
SessionException
PermissionException
VetoException
public ResourceGroup findGroupById(int sessionId, java.lang.Integer groupId) throws PermissionException, SessionException
PermissionException
SessionException
public java.util.Map getResourceTypeCountMap(int sessionId, java.lang.Integer groupId) throws PermissionException, SessionException
PermissionException
SessionException
public AppdefGroupValue findGroup(int sessionId, java.lang.Integer id) throws PermissionException, SessionException
PermissionException
SessionException
public java.util.Collection getGroupsForResource(int sessionId, Resource r) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public PageList findGroups(int sessionId, java.lang.Integer[] groupIds, PageControl pc) throws PermissionException, SessionException
AppdefGroupNotFoundException
- when group cannot be found.
InvalidAppdefTypeException
- if group is compat and the appdef
type id is incorrect.
PermissionException
SessionException
public PageList findAllGroupsMemberInclusive(int sessionId, PageControl pc, AppdefEntityID entity) throws PermissionException, SessionTimeoutException, SessionNotFoundException, ApplicationException
entity
- for use in group member filtering.
PermissionException
SessionTimeoutException
SessionNotFoundException
ApplicationException
public PageList findAllGroupsMemberExclusive(int sessionId, PageControl pc, AppdefEntityID entity) throws PermissionException, SessionTimeoutException, SessionNotFoundException
entity
- for use in group member filtering.
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findAllGroupsMemberExclusive(int sessionId, PageControl pc, AppdefEntityID entity, java.lang.Integer[] removeIds) throws PermissionException, SessionTimeoutException, SessionNotFoundException
entity
- for use in group member filtering.
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findAllGroupsMemberExclusive(int sessionId, PageControl pc, AppdefEntityID entity, java.lang.Integer[] removeIds, Resource resourceType) throws PermissionException, SessionTimeoutException, SessionNotFoundException
entity
- for use in group member filtering.
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList findAllGroupsMemberExclusive(int sessionId, PageControl pc, AppdefEntityID[] entities) throws PermissionException, SessionException
entity
- for use in group member filtering.
PermissionException
SessionException
public java.util.Collection findAllGroupPojos(int sessionId) throws PermissionException, SessionTimeoutException, SessionNotFoundException
PermissionException
SessionTimeoutException
SessionNotFoundException
public void addResourcesToGroup(int sessionID, ResourceGroup group, java.util.List aeids) throws SessionException, PermissionException, VetoException
SessionException
PermissionException
VetoException
public void updateGroup(int sessionId, ResourceGroup group, java.lang.String name, java.lang.String description, java.lang.String location) throws SessionException, PermissionException, GroupDuplicateNameException
SessionException
PermissionException
GroupDuplicateNameException
ResourceGroupManagerEJBImpl.updateGroup
public PageList findCompatInventory(int sessionId, int groupType, int appdefTypeId, int groupEntTypeId, int appdefResTypeId, java.lang.String resourceName, AppdefEntityID[] pendingEntities, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionException
groupType
- - the optional group typeappdefTypeId
- - the id correponding to the type of entity.
example: group, platform, server, service
NOTE: A valid entity type id is now MANDATORY!appdefResTypeId
- - the id corresponding to the type of resource
example: linux, jboss, vhostresourceName
- - resource name (or name substring) to search for.
AppdefEntityNotFoundException
PermissionException
SessionException
public PageList findCompatInventory(int sessionId, int appdefTypeId, int appdefResTypeId, AppdefEntityID groupEntity, AppdefEntityID[] pendingEntities, java.lang.String resourceName, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionException
appdefTypeId
- - the id correponding to the type of entity
example: platform, server, service
NOTE: A valid entity type id is now MANDATORY!appdefResTypeId
- - the id corresponding to the type of resource
example: linux, jboss, vhostgroupEntity
- - the appdef entity of a group value who's
members are to be filtered out of result set.resourceName
- - resource name (or name substring) to search for.
AppdefEntityNotFoundException
PermissionException
SessionException
public PageList search(int sessionId, int appdefTypeId, java.lang.String searchFor, AppdefEntityTypeID appdefResType, java.lang.Integer groupId, int[] groupSubType, boolean matchAny, boolean matchOwn, boolean matchUnavail, PageControl pc) throws PermissionException, SessionException, java.util.regex.PatternSyntaxException
PermissionException
SessionException
java.util.regex.PatternSyntaxException
public PageList search(int sessionId, java.lang.String searchFor, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList findAvailableServicesForApplication(int sessionId, java.lang.Integer appId, AppdefEntityID[] pendingEntities, java.lang.String nameFilter, PageControl pc) throws AppdefEntityNotFoundException, PermissionException, SessionException
sessionId
- - valid auth token
AppdefEntityNotFoundException
PermissionException
SessionException
public void batchGroupAdd(int sessionId, AppdefEntityID entityId, java.lang.Integer[] groupIds) throws SessionException, PermissionException, VetoException
sessionId
- representing session identifierentityId
- object to be added.groupIds
- identifier array
SessionException
PermissionException
VetoException
public void resetResourceOwnership(int sessionId, AuthzSubject currentOwner) throws UpdateException, PermissionException, AppdefEntityNotFoundException
UpdateException
PermissionException
AppdefEntityNotFoundException
public void batchGroupRemove(int sessionId, AppdefEntityID entityId, java.lang.Integer[] groupIds) throws PermissionException, SessionException, VetoException
entityId
- object to be removedgroupIds
- identifier array
PermissionException
SessionException
VetoException
public AppdefResourcePermissions getResourcePermissions(int sessionId, AppdefEntityID id) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.FinderException
SessionNotFoundException
SessionTimeoutException
javax.ejb.FinderException
public int getAgentCount(int sessionId) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public java.util.List findAllAgents(int sessionId) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public Agent findAgentByIpAndPort(int sessionId, java.lang.String ip, int port) throws SessionNotFoundException, SessionTimeoutException, AgentNotFoundException
SessionNotFoundException
SessionTimeoutException
AgentNotFoundException
public void setCPropValue(int sessionId, AppdefEntityID id, java.lang.String key, java.lang.String val) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException, CPropKeyNotFoundException
id
- Appdef entity to set the value forkey
- Key to associate the value withval
- Value to assicate with the key. If the value is null,
then the value will simply be removed.
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
CPropKeyNotFoundException
public java.util.Properties getCPropDescEntries(int sessionId, AppdefEntityID id) throws SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException
id
- Appdef entity to get the custom entities for
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
public java.util.List getCPropKeys(int sessionId, int appdefType, int appdefTypeId) throws SessionNotFoundException, SessionTimeoutException
appdefType
- One of AppdefEntityConstants.APPDEF_TYPE_*appdefTypeId
- The ID of the appdef resource type
SessionNotFoundException
SessionTimeoutException
public java.util.List getCPropKeys(int sessionId, AppdefEntityID aeid) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
aeid
- The ID of the appdef resource
PermissionException
AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
public AppdefInventorySummary getInventorySummary(int sessionId, boolean countTypes) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public java.lang.String[][] getAppdefTypeStrArrMap()
public void setAllConfigResponses(int sessionInt, AllConfigResponses allConfigs, AllConfigResponses allConfigsRollback) throws PermissionException, EncodingException, PluginException, ApplicationException, AutoinventoryException, ScheduleWillNeverFireException, AgentConnectionException
allConfigs
- The full configuation information.allConfigsRollback
- The configuation to rollback to if an error
occurs.
PermissionException
EncodingException
PluginException
ApplicationException
AutoinventoryException
ScheduleWillNeverFireException
AgentConnectionException
public ResourceTreeNode[] getNavMapData(int sessionId, AppdefEntityID adeId) throws SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
public ResourceTreeNode[] getNavMapData(int sessionId, AppdefEntityID[] adeIds, int ctype) throws SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException
adeIds
- the appdef entity ids of the "parents" of the groupd childrenctype
- the child resource type
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
public java.util.Collection getUnavailableResources(AuthzSubject user, java.lang.String typeId, PageInfo info) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
public java.util.Map getUnavailableResourcesCount(AuthzSubject user) throws AppdefEntityNotFoundException, PermissionException
AppdefEntityNotFoundException
PermissionException
public java.util.List getServicesView(AuthzSubject subject, Resource proto, java.lang.String cprop, java.lang.String metricName, PageInfo pi) throws PermissionException, InvalidAppdefTypeException
subject
- the callerproto
- the type name of the servicescprop
- a unique custom property name to be fetched
PermissionException
InvalidAppdefTypeException
public boolean hasVirtualResourceRelation(Resource resource)
public void startup()
public static org.hyperic.hq.bizapp.shared.AppdefBossLocal getOne()
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |