All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.category.Association
java.lang.Object
|
+----com.sgi.sysadm.util.AttrBundle
|
+----com.sgi.sysadm.category.Category
|
+----com.sgi.sysadm.category.Association
- public abstract class Association
- extends Category
Association represents a dynamic collection of
child Item(s) related to a parent Item identified by a
selector. For example, the user account Item(s) that are related to
a group account Item with selector "bar" could be represented by an
Association. An Association represents an 1-to-n relationship. A
1-to-1 relationship is handled as a special case of 1-to-n
relationship.
Association derives from Category and supports the same client
mechanisms for obtaining dynamic information about the Item(s) in an
Association instance.
If an Item with the specified parent selector does not exist, the
Association will monitor for the addition of an Item with that
selector.
If an Item with the specified parent selector existed, but is
deleted while a client is monitoring the Association, all Items
are removed from the Association and the Association continues
monitoring of the system for the addition of an Item with that
parent selector.
The actual logic for determining and monitoring Item(s) in an
Association resides on the server-side. Clients can obtain a
Association instances using HostContext methods.
- See Also:
- HostContext
-
Association(String, String, String)
- Association constructor.
-
computeSelector(String, String, String)
- Compute the selector for this Association
-
getChildCategoryName()
- Get selector of child category.
-
getParentCategoryName()
- Get selector of parent category.
-
getParentSelector()
- Get the selector of the parent item.
Association
protected Association(String parentCategoryName,
String parentSelector,
String childCategoryName)
- Association constructor.
- Parameters:
- parentCategoryName - The selector of the parent Category.
- parentSelector - The selector of the parent Item.
- childCategoryName - The selector of the child Category.
computeSelector
protected static String computeSelector(String parentCategoryName,
String parentSelector,
String childCategoryName)
- Compute the selector for this Association
- Parameters:
- parentCategoryName - The selector of the parent Category.
- parentSelector - The selector of the parent Item.
- childCategoryName - The selector of the child Category.
- Returns:
- selector for this association
getParentSelector
public String getParentSelector()
- Get the selector of the parent item.
- Returns:
- selector of the parent item.
getParentCategoryName
public String getParentCategoryName()
- Get selector of parent category.
- Returns:
- selector of parent category.
getChildCategoryName
public String getChildCategoryName()
- Get selector of child category.
- Returns:
- selector of child category.
All Packages Class Hierarchy This Package Previous Next Index