org.rhq.enterprise.server.common
Class EntityContext

java.lang.Object
  extended by org.rhq.enterprise.server.common.EntityContext

public class EntityContext
extends java.lang.Object

Category is assigned with the following preference assuming multiple categories can be satisfied with the available context information:

 ResourceGroup
 AutoGroup
 ResourceTemplate
 Resource
 

Author:
Joseph Marques

Nested Class Summary
static class EntityContext.Category
           
 
Field Summary
 EntityContext.Category category
           
 int groupId
           
 int parentResourceId
           
 int resourceId
           
 int resourceTypeId
           
 
Constructor Summary
EntityContext(java.lang.Integer resourceId, java.lang.Integer groupId, java.lang.Integer parentResourceId, java.lang.Integer resourceTypeId)
           
 
Method Summary
 EntityContext.Category getCategory()
           
 int getGroupId()
           
 java.lang.String getLegacyKey()
           
 int getParentResourceId()
           
 int getResourceId()
           
 int getResourceTypeId()
           
 java.lang.String getUnknownContextMessage()
           
 java.lang.String toShortString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

category

public final EntityContext.Category category

resourceId

public final int resourceId

groupId

public final int groupId

parentResourceId

public final int parentResourceId

resourceTypeId

public final int resourceTypeId
Constructor Detail

EntityContext

public EntityContext(java.lang.Integer resourceId,
                     java.lang.Integer groupId,
                     java.lang.Integer parentResourceId,
                     java.lang.Integer resourceTypeId)
Method Detail

getCategory

public EntityContext.Category getCategory()

getResourceId

public int getResourceId()

getGroupId

public int getGroupId()

getParentResourceId

public int getParentResourceId()

getResourceTypeId

public int getResourceTypeId()

getLegacyKey

public java.lang.String getLegacyKey()

getUnknownContextMessage

public java.lang.String getUnknownContextMessage()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toShortString

public java.lang.String toShortString()


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