Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
6-30
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 6      Namespace Administration, Group Administration, and Notification APIs
Group Administration API
 (b) illustrates the result of renaming /config/G1/G2 into /config/G1/G4 using 
renameGroup(“/config/G1/G2”,”G4”).
isMember
This operation checks if the given member is a direct member of the given group, returning TRUE if it 
is a member or FALSE otherwise.
List Parents
This method returns all the parent groups that are direct parents of the given device.
Method
Boolean isMember (String absGroupId, GroupMember member)
Input parameter
absGroupId
This is the absolute group ID of the given group.
member
This is the member to be checked.
Return
A boolean value indicates whether the given member is an immediate member 
of group absGroupId.
Exceptions
This method could throw one of the following exceptions:
  •
DatastoreAccessException – Data-store connection problem or problem 
not described below.
  •
InvalidInputException – See 
 for basic rules.
  •
ParentNotFoundException – Cannot locate group specified by 
absGroupId.
  •
MessageFormatException – Problem with message syntax.
Additional exception that can be thrown by the remote API:
CommunicationException – General server access problem.
Method
String[ ] listParents (String device)
Input parameter
device
This is the device ID for which the direct parents should be identified.
Return
An array of absolute group ID that are immediate parents of the given device.