# Path: functionaltests/cli/v1/behaviors/base_behaviors.py
# CONF = config.get_config()
# class BaseBehaviors(object):
#     def __init__(self):
#     def add_auth_and_endpoint(self, arg_list):
#     def issue_barbican_command(self, argv):
#     def _prettytable_to_dict(self, str):
#     def _prettytable_to_list(self, str):


import logging
from functionaltests.cli.v1.behaviors import base_behaviors




class ACLBehaviors(base_behaviors.BaseBehaviors):

    _args_map_list = {'users': ['--user', '-u'],
                      'operation_type': ['--operation-type', '-o']
                      }

    def __init__(self):
        super(ACLBehaviors, self).__init__()
        self.LOG = logging.getLogger(type(self).__name__)
        self.acl_entity_set = set()

    def _add_ref_arg(self, argv, entity_ref):
        argv.extend([entity_ref])
        return argv

    def _add_per_acl_args(self, argv, users=[], project_access=None,
                          operation_type=None, use_short_arg=False):
        index = 1 if use_short_arg else 0

        if users is not None:
            if users:
                for user in users:
                    argv.extend([self._args_map_list['users'][index], user])
            else:  # empty list case
                argv.extend([self._args_map_list['users'][index]])
        if project_access is not None:

# Path: functionaltests/cli/v1/behaviors/base_behaviors.py
# CONF = config.get_config()
# class BaseBehaviors(object):
#     def __init__(self):
#     def add_auth_and_endpoint(self, arg_list):
#     def issue_barbican_command(self, argv):
#     def _prettytable_to_dict(self, str):
#     def _prettytable_to_list(self, str):


# Path: functionaltests/cli/v1/behaviors/acl_behaviors.py
import logging
from functionaltests.cli.v1.behaviors import base_behaviors





class ACLBehaviors(base_behaviors.BaseBehaviors):

    _args_map_list = {'users': ['--user', '-u'],
                      'operation_type': ['--operation-type', '-o']
                      }

    def __init__(self):
        super(ACLBehaviors, self).__init__()
        self.LOG = logging.getLogger(type(self).__name__)
        self.acl_entity_set = set()

    def _add_ref_arg(self, argv, entity_ref):
        argv.extend([entity_ref])
        return argv

    def _add_per_acl_args(self, argv, users=[], project_access=None,
                          operation_type=None, use_short_arg=False):
        index = 1 if use_short_arg else 0

        if users is not None:
            if users:
                for user in users:
                    argv.extend([self._args_map_list['users'][index], user])
            else:  # empty list case
                argv.extend([self._args_map_list['users'][index]])
        if project_access is not None:

            if project_access: