|
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.appdef.shared.AppdefResourceValue
org.hyperic.hq.appdef.shared.AppdefGroupValue
public class AppdefGroupValue
Appdef GroupValue implements the grouping subsystem's GroupValue interface and provides the implementation for its methods. The class extends the domain of groupable elements to include appdef entities. The group entries are converted to and from appdef entities as required to meet the needs of consumers. Note, despite the "Value" name and implied value object pattern, this class is not necessarily light weight. It is likely that an instance of this class will hold references to one or more visitor class instances. This makes it an extremely bad candidate for, say, sticking in the session. (MOST of this junk belongs in an abstract base class in the grouping subsystem. However, the requirement is that this class MUST extend AppdefResourceValue and since Java doesn't allow multiple inheritance, well, we're stuck with this.)
| Constructor Summary | |
|---|---|
AppdefGroupValue()
|
|
AppdefGroupValue(java.lang.Integer id)
|
|
| Method Summary | |
|---|---|
void |
addAppdefEntity(AppdefEntityID entity)
Adds an entity identified by AppdefEntityID to our group. |
void |
addEntry(GroupEntry entry)
Adds an entry to the group. |
java.lang.Object |
clone()
A deep copy clone implementation specifically addresses the need for the GroupManager to have a way to create new instances of the concrete groups for which it has no class definition. |
boolean |
equals(java.lang.Object other)
|
boolean |
existsAppdefEntity(AppdefEntityID entity)
Asserts that an element exists in the group. |
boolean |
existsEntry(GroupEntry entry)
Asserts that an element exists in the group. |
PageList |
getAppdefGroupEntries()
Fetch the group members as a paged list of AppdefEntityIDs. |
PageList |
getAppdefGroupEntries(java.util.Comparator comparator)
Fetch the group members as a paged list of AppdefEntityIDs. |
AppdefResourceTypeValue |
getAppdefResourceTypeValue()
Gets the appdef resource type value of this group. |
int |
getClusterId()
The group's clusterId |
java.lang.Long |
getCTime()
|
java.lang.String |
getDescription()
Group description |
AppdefEntityID |
getEntityId()
get an entity ID for the object |
int |
getGroupEntResType()
The group entity resource type |
PageList |
getGroupEntries()
The PageList of group entries |
int |
getGroupEntType()
The group entity type |
int |
getGroupType()
The group type (adhoc, compatible) |
java.lang.String |
getGroupTypeLabel()
The group type label |
java.lang.Integer |
getId()
The group identifier |
java.lang.String |
getLocation()
Location - now applicable |
java.lang.String |
getModifiedBy()
ModifiedBy - now applicable |
java.lang.Long |
getMTime()
|
java.lang.String |
getName()
The name of the group |
java.lang.String |
getOwner()
Owner - not applicable, here only to satisfy interface. |
int |
getSize()
The group size PageList.size() |
AuthzSubject |
getSubject()
|
int |
getTotalSize()
The group total size (PageList.getTotalSize()) |
int |
hashCode()
|
boolean |
isGroupAdhoc()
Test whether the group type is one of the adhoc types. |
boolean |
isGroupCompat()
Test whether the group type is one of the compatible types. |
void |
removeAppdefEntity(AppdefEntityID entity)
Removes an entity identified by AppdefEntityID from our group. |
void |
removeEntry(GroupEntry goner)
Removes an entry from the group. |
void |
setAppdefResourceTypeValue(AppdefResourceTypeValue artv)
Sets the appdef resource type value of this group. |
void |
setClusterId(int clusterId)
|
void |
setCTime(java.lang.Long ctime)
|
void |
setDescription(java.lang.String desc)
|
void |
setGroupEntResType(int groupEntResType)
|
void |
setGroupEntType(int groupEntType)
|
void |
setGroupType(int groupType)
|
void |
setId(java.lang.Integer id)
|
void |
setLocation(java.lang.String s)
|
void |
setModifiedBy(java.lang.String s)
|
void |
setMTime(java.lang.Long mtime)
|
void |
setName(java.lang.String name)
|
void |
setOwner(java.lang.String s)
|
void |
setSubject(AuthzSubject s)
The group owner |
void |
setTotalSize(int groupTotalSize)
The group total size (PageList.setTotalSize()) |
java.lang.String |
toString()
|
| Methods inherited from class org.hyperic.hq.appdef.shared.AppdefResourceValue |
|---|
compareTo, getHostName, getPlatformTypeCountMap, getResourceTypeCountMap, getServerTypeCountMap, getServiceTypeCountMap, setHostName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AppdefGroupValue()
public AppdefGroupValue(java.lang.Integer id)
| Method Detail |
|---|
public java.lang.Integer getId()
getId in interface GroupValuegetId in class AppdefResourceValuepublic void setId(java.lang.Integer id)
setId in interface GroupValuesetId in class AppdefResourceValuepublic AppdefEntityID getEntityId()
AppdefResourceValue
getEntityId in class AppdefResourceValuepublic int getGroupType()
getGroupType in interface GroupValuepublic void setGroupType(int groupType)
setGroupType in interface GroupValuepublic java.lang.String getGroupTypeLabel()
public boolean isGroupAdhoc()
public boolean isGroupCompat()
public int getGroupEntType()
getGroupEntType in interface GroupValuepublic void setGroupEntType(int groupEntType)
setGroupEntType in interface GroupValuepublic int getGroupEntResType()
getGroupEntResType in interface GroupValuepublic void setGroupEntResType(int groupEntResType)
setGroupEntResType in interface GroupValuepublic int getClusterId()
GroupValue
getClusterId in interface GroupValuepublic void setClusterId(int clusterId)
setClusterId in interface GroupValuepublic java.lang.String getName()
getName in interface GroupValuegetName in class AppdefResourceValuepublic void setName(java.lang.String name)
setName in interface GroupValuesetName in class AppdefResourceValuepublic java.lang.String getDescription()
getDescription in interface GroupValuegetDescription in class AppdefResourceValuepublic void setDescription(java.lang.String desc)
setDescription in interface GroupValuesetDescription in class AppdefResourceValuepublic void setSubject(AuthzSubject s)
setSubject in interface GroupValuepublic AuthzSubject getSubject()
getSubject in interface GroupValuepublic int getSize()
getSize in interface GroupValuepublic int getTotalSize()
getTotalSize in interface GroupValuepublic void setTotalSize(int groupTotalSize)
setTotalSize in interface GroupValuepublic PageList getGroupEntries()
getGroupEntries in interface GroupValuepublic PageList getAppdefGroupEntries()
public PageList getAppdefGroupEntries(java.util.Comparator comparator)
optional - comparator
public java.lang.Long getCTime()
getCTime in interface GroupValuegetCTime in class AppdefResourceValuepublic java.lang.Long getMTime()
getMTime in interface GroupValuegetMTime in class AppdefResourceValuepublic void setCTime(java.lang.Long ctime)
setCTime in interface GroupValuepublic void setMTime(java.lang.Long mtime)
setMTime in interface GroupValuepublic void addAppdefEntity(AppdefEntityID entity)
appdef - entity idpublic boolean existsAppdefEntity(AppdefEntityID entity)
public boolean existsEntry(GroupEntry entry)
existsEntry in interface GroupValuepublic void removeAppdefEntity(AppdefEntityID entity)
public AppdefResourceTypeValue getAppdefResourceTypeValue()
getAppdefResourceTypeValue in class AppdefResourceValuepublic void setAppdefResourceTypeValue(AppdefResourceTypeValue artv)
artv - - The entity type value object.public void addEntry(GroupEntry entry)
addEntry in interface GroupValuegroup - entry value object.public void removeEntry(GroupEntry goner)
removeEntry in interface GroupValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in interface GroupValueequals in class java.lang.Objectpublic int hashCode()
hashCode in interface GroupValuehashCode in class java.lang.Objectpublic java.lang.String getOwner()
getOwner in interface GroupValuegetOwner in class AppdefResourceValuepublic void setOwner(java.lang.String s)
setOwner in interface GroupValuesetOwner in class AppdefResourceValuepublic java.lang.String getModifiedBy()
getModifiedBy in interface GroupValuegetModifiedBy in class AppdefResourceValuepublic void setModifiedBy(java.lang.String s)
setModifiedBy in interface GroupValuesetModifiedBy in class AppdefResourceValuepublic java.lang.String getLocation()
getLocation in interface GroupValuegetLocation in class AppdefResourceValuepublic void setLocation(java.lang.String s)
setLocation in interface GroupValuesetLocation in class AppdefResourceValue
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface GroupValueclone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
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 | ||||||||