All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.category.Item
java.lang.Object
|
+----com.sgi.sysadm.util.AttrBundle
|
+----com.sgi.sysadm.category.Item
- public class Item
- extends AttrBundle
Represents a physical or logical entity that is manipulated by
system administration operations. An Item is a subclass of
AttrBundle and has an aggregation of typed key value pairs. Each
Item has an associated type and a unique name within that type. For
example, a user account can have the unique name "foo" within the
type "user account" and the following Attributes:
string, userName, foo
long, userId, 3944
Item(s) of a specific type are aggregated in an instance of a
subclass of Category. The type of the Item corresponds to the
selector of the Category. For example, the collection of user
account Item(s) can be represented by a Category instance.
Category uses Item to inform CategoryListeners of
the current state of the system and of any changes.
-
Item(AttrBundle)
- Construct an Item that based on an AttrBundle.
-
Item(Item)
- Construct an Item that is a copy of another Item.
-
Item(String)
- Construct an Item from a serialized format.
-
Item(String, String)
- Construct an Item with a unique name in the context of a
specific Category.
-
clone()
- Get an object that is a copy of this one.
-
getChanges(Item)
- Find differences between this and another Item.
Item
public Item(String type,
String selector)
- Construct an Item with a unique name in the context of a
specific Category.
- Parameters:
- type - The String representing the selector of the
Category instance to which this Item belongs.
- selector - Unique identifier within category for Item.
Item
public Item(String stream)
- Construct an Item from a serialized format.
- Parameters:
- stream - Serialized format of Item, obtained via
serialize();
Item
public Item(Item other)
- Construct an Item that is a copy of another Item.
- Parameters:
- other - The Item to copy.
Item
public Item(AttrBundle attrs)
- Construct an Item that based on an AttrBundle.
- Parameters:
- attrs - The Attributes for Item.
clone
public Object clone()
- Get an object that is a copy of this one.
- Returns:
- Item that has a copy of this.
- Overrides:
- clone in class AttrBundle
getChanges
public Vector getChanges(Item other)
- Find differences between this and another Item.
- Parameters:
- other - Item to compare
- Returns:
- Attributes in "other" that are different from
attributes in this.
All Packages Class Hierarchy This Package Previous Next Index