|
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 GroupValue
getId
in class AppdefResourceValue
public void setId(java.lang.Integer id)
setId
in interface GroupValue
setId
in class AppdefResourceValue
public AppdefEntityID getEntityId()
AppdefResourceValue
getEntityId
in class AppdefResourceValue
public int getGroupType()
getGroupType
in interface GroupValue
public void setGroupType(int groupType)
setGroupType
in interface GroupValue
public java.lang.String getGroupTypeLabel()
public boolean isGroupAdhoc()
public boolean isGroupCompat()
public int getGroupEntType()
getGroupEntType
in interface GroupValue
public void setGroupEntType(int groupEntType)
setGroupEntType
in interface GroupValue
public int getGroupEntResType()
getGroupEntResType
in interface GroupValue
public void setGroupEntResType(int groupEntResType)
setGroupEntResType
in interface GroupValue
public int getClusterId()
GroupValue
getClusterId
in interface GroupValue
public void setClusterId(int clusterId)
setClusterId
in interface GroupValue
public java.lang.String getName()
getName
in interface GroupValue
getName
in class AppdefResourceValue
public void setName(java.lang.String name)
setName
in interface GroupValue
setName
in class AppdefResourceValue
public java.lang.String getDescription()
getDescription
in interface GroupValue
getDescription
in class AppdefResourceValue
public void setDescription(java.lang.String desc)
setDescription
in interface GroupValue
setDescription
in class AppdefResourceValue
public void setSubject(AuthzSubject s)
setSubject
in interface GroupValue
public AuthzSubject getSubject()
getSubject
in interface GroupValue
public int getSize()
getSize
in interface GroupValue
public int getTotalSize()
getTotalSize
in interface GroupValue
public void setTotalSize(int groupTotalSize)
setTotalSize
in interface GroupValue
public PageList getGroupEntries()
getGroupEntries
in interface GroupValue
public PageList getAppdefGroupEntries()
public PageList getAppdefGroupEntries(java.util.Comparator comparator)
optional
- comparator
public java.lang.Long getCTime()
getCTime
in interface GroupValue
getCTime
in class AppdefResourceValue
public java.lang.Long getMTime()
getMTime
in interface GroupValue
getMTime
in class AppdefResourceValue
public void setCTime(java.lang.Long ctime)
setCTime
in interface GroupValue
public void setMTime(java.lang.Long mtime)
setMTime
in interface GroupValue
public void addAppdefEntity(AppdefEntityID entity)
appdef
- entity idpublic boolean existsAppdefEntity(AppdefEntityID entity)
public boolean existsEntry(GroupEntry entry)
existsEntry
in interface GroupValue
public void removeAppdefEntity(AppdefEntityID entity)
public AppdefResourceTypeValue getAppdefResourceTypeValue()
getAppdefResourceTypeValue
in class AppdefResourceValue
public void setAppdefResourceTypeValue(AppdefResourceTypeValue artv)
artv
- - The entity type value object.public void addEntry(GroupEntry entry)
addEntry
in interface GroupValue
group
- entry value object.public void removeEntry(GroupEntry goner)
removeEntry
in interface GroupValue
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in interface GroupValue
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface GroupValue
hashCode
in class java.lang.Object
public java.lang.String getOwner()
getOwner
in interface GroupValue
getOwner
in class AppdefResourceValue
public void setOwner(java.lang.String s)
setOwner
in interface GroupValue
setOwner
in class AppdefResourceValue
public java.lang.String getModifiedBy()
getModifiedBy
in interface GroupValue
getModifiedBy
in class AppdefResourceValue
public void setModifiedBy(java.lang.String s)
setModifiedBy
in interface GroupValue
setModifiedBy
in class AppdefResourceValue
public java.lang.String getLocation()
getLocation
in interface GroupValue
getLocation
in class AppdefResourceValue
public void setLocation(java.lang.String s)
setLocation
in interface GroupValue
setLocation
in class AppdefResourceValue
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface GroupValue
clone
in class java.lang.Object
java.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 |