org.rhq.core.domain.common
Class EntityContext
java.lang.Object
org.rhq.core.domain.common.EntityContext
- All Implemented Interfaces:
- Serializable
public class EntityContext
- extends Object
- implements Serializable
Category is assigned with the following preference assuming multiple categories can be satisfied with the available
context information:
ResourceGroup
AutoGroup
ResourceTemplate
Resource
- See Also:
- Serialized Form
type
public EntityContext.Type type
resourceId
public int resourceId
groupId
public int groupId
parentResourceId
public int parentResourceId
resourceTypeId
public int resourceTypeId
EntityContext
public EntityContext()
EntityContext
public EntityContext(Integer resourceId,
Integer groupId,
Integer parentResourceId,
Integer resourceTypeId)
isResource
public boolean isResource()
isResourceGroup
public boolean isResourceGroup()
isAutoCluster
public boolean isAutoCluster()
isAutoGroup
public boolean isAutoGroup()
isSubsystemView
public boolean isSubsystemView()
getType
public EntityContext.Type getType()
getResourceId
public int getResourceId()
getGroupId
public int getGroupId()
getParentResourceId
public int getParentResourceId()
getResourceTypeId
public int getResourceTypeId()
forResource
public static EntityContext forResource(int resourceId)
forGroup
public static EntityContext forGroup(int groupId)
forGroup
public static EntityContext forGroup(int groupId,
boolean isAutoCluster,
boolean isAutoGroup)
forGroup
public static EntityContext forGroup(ResourceGroup group)
forAutoGroup
public static EntityContext forAutoGroup(int parentResourceId,
int resourceTypeId)
forTemplate
public static EntityContext forTemplate(int resourceTypeId)
forSubsystemView
public static EntityContext forSubsystemView()
fromCriteriaMap
public static EntityContext fromCriteriaMap(Map<String,Object> criteriaMap)
toCriteriaMap
public Map<String,String> toCriteriaMap()
getLegacyKey
public String getLegacyKey()
getUnknownContextMessage
public String getUnknownContextMessage()
toString
public String toString()
- Overrides:
toString
in class Object
toShortString
public String toShortString()
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.