servicedependency_class Class Reference

Use a service dependency when you want a service's status to depend on other service(s) status(es). More...

Inheritance diagram for servicedependency_class:
object_class

Public Member Functions

 validate_object ()
 Make sure user-input is sane prior to invoking save/glue_objects.
 compute_master_obj_id ()
 Compute the master object id.
 prepare_draw ()
 Prepare this object for drawing in the gui.
 get_cmd_bar_links ()
 Returns a list of actions that are legal for this object type.

Data Fields

 $type = 'servicedependency'
 object type
 $master_obj_type = 'service'
 master object type
 $master_obj_identifier = 'dependent_service'
 Variable in this object identifying the master object.

Detailed Description

Use a service dependency when you want a service's status to depend on other service(s) status(es).


Member Function Documentation

servicedependency_class::compute_master_obj_id (  ) 

Compute the master object id.

Returns:
False on errors, the object id on success

Reimplemented from object_class.

servicedependency_class::validate_object (  ) 

Make sure user-input is sane prior to invoking save/glue_objects.

Returns:
bool: True if object validates, otherwise false

service and dependent_service can legally be the same in 'new' if the user hasn't changed anything. This is the call for us to remove the 'new' object from the list.

Reimplemented from object_class.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 7 May 2013 for nacoma by  doxygen 1.6.1