@classmethod
def permissions(cls, id, acl_class):
    api = cls.instance()
    response_data = api.call('permissions?id={}&aclClass={}'.format(id, acl_class.upper()), None)
    if (('payload' in response_data) and ('permissions' in response_data['payload'])):
        permissions = []
        for permission_json in response_data['payload']['permissions']:
            permission_object = ObjectPermissionModel.load(permission_json)
            permission_object.parse_mask(True)
            permissions.append(permission_object)
        return permissions
    else:
        return []
@classmethod
def permissions(cls, id, acl_class):
    api = cls.instance()
    response_data = api.call('permissions?id={}&aclClass={}'.format(id, acl_class.upper()), None)
    if (('payload' in response_data) and ('permissions' in response_data['payload'])):
        permissions = []
        for permission_json in response_data['payload']['permissions']:
            permission_object = ObjectPermissionModel.load(permission_json)
            permission_object.parse_mask(True)
            permissions.append(permission_object)
        return permissions
    else:
        return []