<?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl">
  <classes name="TangoAccessControl" pogoRevision="9.4">
    <description description="This class is a conceate class inherited from AccessControl abstract class.&lt;Br>&#xA;&lt;Br>&#xA;This class defines how to manage the TANGO access control.&lt;Br>&#xA;It implements commands for tool to defines access for users, devices and IP addresses.&lt;Br>&#xA;It implements also commands used by client API to check access for specified user, device and address.&lt;Br>&#xA;And it implements register and unregister it as TANGO service." title="Tango Access Control Management" sourcePath="/mntdirect/_segfs/tango/tmp/pascal/TangoAccessControl/TangoAccessControl" language="Cpp" filestogenerate="XMI   file,CMakeLists,Protected Regions" hasMandatoryProperty="false" hasConcreteProperty="false" hasAbstractCommand="false" hasAbstractAttribute="false">
      <inheritances classname="AccessControl" sourcePath="../AbstractClasses"/>
      <identification contact="at esrf.fr - accelerator-control" author="accelerator-control" emailDomain="esrf.fr" classFamily="System" siteSpecific="" platform="All Platforms" bus="Not Applicable" manufacturer="none" reference=""/>
    </description>
    <commands name="State" description="This command gets the device state (stored in its &lt;i>device_state&lt;/i> data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="none.">
        <type xsi:type="pogoDsl:VoidType"/>
      </argin>
      <argout description="State Code">
        <type xsi:type="pogoDsl:StateType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="false"/>
    </commands>
    <commands name="Status" description="This command gets the device status (stored in its &lt;i>device_status&lt;/i> data member) and returns it to the caller." execMethod="dev_status" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="none.">
        <type xsi:type="pogoDsl:VoidType"/>
      </argin>
      <argout description="Status description">
        <type xsi:type="pogoDsl:ConstStringType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="false"/>
    </commands>
    <commands name="AddAddressForUser" description="Add an address for the specified user.." execMethod="add_address_for_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name, address">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="AddDeviceForUser" description="Add a device and rights for the specified user.." execMethod="add_device_for_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name, device adn value">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="CloneUser" description="Copy addresses and devices from source user to target user." execMethod="clone_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="[0] - source user name.\n[1] - target user name.">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="GetAccess" description="Check access for specified user, device, address&#xA;     and returns access (read or write)." execMethod="get_access" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="[0] - User name&#xA;[1] - IP Address&#xA;[2] - Device">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="access for specified inputs  read/write.">
        <type xsi:type="pogoDsl:StringType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
    </commands>
    <commands name="GetAccessForMultiIP" description="Check access for specified user, device and addresses&#xA;     and returns access (read or write)." execMethod="get_access_for_multi_ip" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="[0] - User name&#xA;[1] - Device&#xA;[2] - IP Address #1&#xA;[3] - IP Address #2&#xA;[4] - IP Address #3&#xA;[5] - IP Address #4&#xA;......">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="access for specified inputs  read/write.">
        <type xsi:type="pogoDsl:StringType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="false" concreteHere="true"/>
    </commands>
    <commands name="GetAddressByUser" description="Returns address list  found for the specified user." execMethod="get_address_by_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name.">
        <type xsi:type="pogoDsl:StringType"/>
      </argin>
      <argout description="Addresses found for the specified user.">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="GetAllowedCommandClassList" description="Returns the class names which have AllowedAccessCmd property defined." execMethod="get_allowed_command_class_list" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argin>
      <argout description="Class names which have AllowedAccessCmd property defined.">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argout>
      <status abstract="false" inherited="true" concrete="true" concreteHere="true"/>
    </commands>
    <commands name="GetAllowedCommands" description="Returns allowed command list found in database for specified device&#xA;It search the class of the specified device and then uses the class property &lt;b>AllowedAccessCmd&lt;/b>" execMethod="get_allowed_commands" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="Device name OR Device Class name">
        <type xsi:type="pogoDsl:StringType"/>
      </argin>
      <argout description="Allowed commands found in database for specified device">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="GetDeviceByUser" description="Returns devices and rights found for the specified user." execMethod="get_device_by_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name.">
        <type xsi:type="pogoDsl:StringType"/>
      </argin>
      <argout description="devices and rights found for the specified user.">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="GetDeviceClass" description="Returns class for specified device." execMethod="get_device_class" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="Device name">
        <type xsi:type="pogoDsl:StringType"/>
      </argin>
      <argout description="Class found in database for specified device">
        <type xsi:type="pogoDsl:StringType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="GetUsers" description="Returns user list found in table access_address." execMethod="get_users" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argin>
      <argout description="Users find in table access_address.">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="RegisterService" description="Register device as a TANGO service." execMethod="register_service" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
    </commands>
    <commands name="RemoveAddressForUser" description="Remove an address for the specified user.." execMethod="remove_address_for_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name, address">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="RemoveDeviceForUser" description="Remove a device and its rights for the specified user.." execMethod="remove_device_for_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name, device and value">
        <type xsi:type="pogoDsl:StringArrayType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="RemoveUser" description="Remove all records for specified user." execMethod="remove_user" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="user name">
        <type xsi:type="pogoDsl:StringType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
      <excludedStates>FAULT</excludedStates>
    </commands>
    <commands name="UnregisterService" description="Unregister device as a TANGO service." execMethod="unregister_service" displayLevel="OPERATOR" polledPeriod="0">
      <argin description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argin>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </argout>
      <status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
    </commands>
    <states name="ON" description="The MySql database handle is OK.">
      <status abstract="false" inherited="true" concrete="true"/>
    </states>
    <states name="FAULT" description="The MySql database handle is not OK.">
      <status abstract="false" inherited="true" concrete="true"/>
    </states>
    <preferences docHome="./doc_html" makefileHome="$(TANGO_HOME)"/>
    <additionalFiles name="DbUtils" path="DbUtils.cpp"/>
  </classes>
</pogoDsl:PogoSystem>
