irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

libirods_rule_engine_plugin-cpp_default_policy.cpp File Reference
#include "msParam.h"
#include "reGlobalsExtern.hpp"
#include "generalAdmin.h"
#include "miscServerFunct.hpp"
#include "irods_resource_plugin.hpp"
#include "irods_file_object.hpp"
#include "irods_physical_object.hpp"
#include "irods_collection_object.hpp"
#include "irods_string_tokenize.hpp"
#include "irods_hierarchy_parser.hpp"
#include "irods_resource_redirect.hpp"
#include "irods_stacktrace.hpp"
#include "irods_re_plugin.hpp"
#include "irods_re_ruleexistshelper.hpp"
#include "irods_re_structs.hpp"
#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <boost/lexical_cast.hpp>
#include <boost/function.hpp>
#include <boost/any.hpp>
#include "configuration.hpp"
#include "irods_server_properties.hpp"
#include "json.hpp"
Include dependency graph for libirods_rule_engine_plugin-cpp_default_policy.cpp:

Go to the source code of this file.

Macros

#define STATIC_PEP(NAME)   static_policy_enforcement_points[#NAME] = NAME
 

Typedefs

typedef std::function< irods::error(irods::callback, std::list< boost::any > &) > pep_opr_t
 

Functions

ruleExecInfo_tget_rei (irods::callback &_cb)
 
rsComm_tget_rs_comm (ruleExecInfo_t &_rei)
 
userInfo_t get_uoio (ruleExecInfo_t &_rei)
 
static std::string get_string_array_from_array (const boost::any &_array)
 
irods::error printHello (irods::callback _cb, std::list< boost::any > &)
 
irods::error acPreConnect (irods::callback _cb, std::list< boost::any > &_params)
 
irods::error acCreateUser (irods::callback _cb, std::list< boost::any > &)
 
irods::error acCreateDefaultCollections (irods::callback _cb, std::list< boost::any > &)
 
irods::error acCreateUserZoneCollections (irods::callback _cb, std::list< boost::any > &)
 
irods::error acCreateCollByAdmin (irods::callback _cb, std::list< boost::any > &_params)
 
irods::error acDeleteUser (irods::callback _cb, std::list< boost::any > &)
 
irods::error acDeleteDefaultCollections (irods::callback _cb, std::list< boost::any > &)
 
irods::error acDeleteUserZoneCollections (irods::callback _cb, std::list< boost::any > &)
 
irods::error acDeleteCollByAdminIfPresent (irods::callback _cb, std::list< boost::any > &_params)
 
irods::error acDeleteCollByAdmin (irods::callback _cb, std::list< boost::any > &_params)
 
irods::error acRenameLocalZone (irods::callback _cb, std::list< boost::any > &)
 
irods::error acGetUserByDN (irods::callback, std::list< boost::any > &)
 
irods::error acAclPolicy (irods::callback _cb, std::list< boost::any > &)
 
irods::error acTicketPolicy (irods::callback, std::list< boost::any > &)
 
irods::error acCheckPasswordStrength (irods::callback, std::list< boost::any > &)
 
irods::error acSetRescSchemeForCreate (irods::callback _cb, std::list< boost::any > &)
 
irods::error acSetRescSchemeForRepl (irods::callback _cb, std::list< boost::any > &)
 
irods::error acPreprocForDataObjOpen (irods::callback, std::list< boost::any > &)
 
irods::error acSetMultiReplPerResc (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForPut (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForCopy (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForFilePathReg (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForCreate (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForOpen (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForPhymv (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForRepl (irods::callback, std::list< boost::any > &)
 
irods::error acSetNumThreads (irods::callback _cb, std::list< boost::any > &)
 
irods::error acDataDeletePolicy (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDelete (irods::callback, std::list< boost::any > &)
 
irods::error acSetChkFilePathPerm (irods::callback _cb, std::list< boost::any > &)
 
irods::error acTrashPolicy (irods::callback, std::list< boost::any > &)
 
irods::error acSetPublicUserPolicy (irods::callback, std::list< boost::any > &)
 
irods::error acChkHostAccessControl (irods::callback, std::list< boost::any > &)
 
irods::error acSetVaultPathPolicy (irods::callback _cb, std::list< boost::any > &)
 
irods::error acSetReServerNumProc (irods::callback _cb, std::list< boost::any > &)
 
irods::error acPreprocForCollCreate (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForCollCreate (irods::callback, std::list< boost::any > &)
 
irods::error acPreprocForRmColl (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForRmColl (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyUser (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyUser (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyAVUMetadata (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyAVUMetadata (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForCreateUser (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForCreateUser (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForDeleteUser (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDeleteUser (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForCreateResource (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForCreateResource (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForCreateToken (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForCreateToken (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyUserGroup (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyUserGroup (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForDeleteResource (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDeleteResource (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForDeleteToken (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDeleteToken (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyResource (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyResource (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyCollMeta (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyCollMeta (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyDataObjMeta (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyDataObjMeta (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForModifyAccessControl (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForModifyAccessControl (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForObjRename (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForObjRename (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForGenQuery (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForGenQuery (irods::callback, std::list< boost::any > &)
 
irods::error acRescQuotaPolicy (irods::callback _cb, std::list< boost::any > &)
 
irods::error acBulkPutPostProcPolicy (irods::callback _cb, std::list< boost::any > &)
 
irods::error acPostProcForTarFileReg (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDataObjWrite (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDataObjRead (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForExecCmd (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForServerPortal (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForServerPortal (irods::callback, std::list< boost::any > &)
 
irods::error acPreProcForWriteSessionVariable (irods::callback, std::list< boost::any > &_params)
 
irods::error acPostProcForParallelTransferReceived (irods::callback, std::list< boost::any > &)
 
irods::error acPostProcForDataCopyReceived (irods::callback, std::list< boost::any > &)
 
irods::error acSetCreateConditions (irods::callback _cb, std::list< boost::any > &)
 
irods::error acDOC (irods::callback _cb, std::list< boost::any > &)
 
irods::error acSetResourceList (irods::callback _cb, std::list< boost::any > &)
 
irods::error acSetCopyNumber (irods::callback _cb, std::list< boost::any > &)
 
irods::error acRegisterData (irods::callback _cb, std::list< boost::any > &)
 
irods::error start (irods::default_re_ctx &_u, const std::string &_instance_name)
 
irods::error stop (irods::default_re_ctx &_u, const std::string &)
 
irods::error rule_exists (irods::default_re_ctx &, const std::string &_rn, bool &_ret)
 
irods::error list_rules (irods::default_re_ctx &, std::vector< std::string > &rule_vec)
 
irods::error exec_rule (irods::default_re_ctx &, const std::string &_rn, std::list< boost::any > &_ps, irods::callback _eff_hdlr)
 
int _delayExec (const char *rule, const char *recov, const char *condition, ruleExecInfo_t *)
 
irods::error exec_rule_text (irods::default_re_ctx &, const std::string &_rule_text, msParamArray_t *_ms_params, const std::string &_out_desc, irods::callback _eff_hdlr)
 
irods::error exec_rule_expression (irods::default_re_ctx &, const std::string &_rule_text, msParamArray_t *_ms_params, irods::callback _eff_hdlr)
 
irods::pluggable_rule_engine< irods::default_re_ctx > * plugin_factory (const std::string &_inst_name, const std::string &_context)
 

Variables

static std::map< std::string, pep_opr_tstatic_policy_enforcement_points
 
const std::string DEFAULT_RULE_REGEX = "ac[^ ]*"
 

Macro Definition Documentation

◆ STATIC_PEP

#define STATIC_PEP (   NAME)    static_policy_enforcement_points[#NAME] = NAME

Typedef Documentation

◆ pep_opr_t

typedef std::function< irods::error (irods::callback, std::list<boost::any>&) > pep_opr_t

Function Documentation

◆ _delayExec()

int _delayExec ( const char *  inActionCall,
const char *  recoveryActionCall,
const char *  delayCondition,
ruleExecInfo_t rei 
)

Definition at line 158 of file nre.systemMS.cpp.

Referenced by exec_rule_text(), and smsi_delayExec().

◆ acAclPolicy()

irods::error acAclPolicy ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 400 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acBulkPutPostProcPolicy()

irods::error acBulkPutPostProcPolicy ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 674 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acCheckPasswordStrength()

irods::error acCheckPasswordStrength ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 409 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acChkHostAccessControl()

irods::error acChkHostAccessControl ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 520 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acCreateCollByAdmin()

irods::error acCreateCollByAdmin ( irods::callback  _cb,
std::list< boost::any > &  _params 
)

Definition at line 220 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, LOG_ERROR, and rodsLog().

Referenced by start().

Here is the call graph for this function:

◆ acCreateDefaultCollections()

irods::error acCreateDefaultCollections ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 183 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acCreateUser()

irods::error acCreateUser ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 130 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, ERROR, get_rei(), get_uoio(), irods::log(), irods::error::ok(), and userInfo_t::userName.

Referenced by start().

Here is the call graph for this function:

◆ acCreateUserZoneCollections()

irods::error acCreateUserZoneCollections ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 189 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, ERROR, get_rei(), get_rs_comm(), get_uoio(), irods::log(), userInfo_t::rodsZone, and userInfo_t::userName.

Referenced by start().

Here is the call graph for this function:

◆ acDataDeletePolicy()

irods::error acDataDeletePolicy ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 499 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acDeleteCollByAdmin()

irods::error acDeleteCollByAdmin ( irods::callback  _cb,
std::list< boost::any > &  _params 
)

Definition at line 349 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, LOG_ERROR, and rodsLog().

Referenced by start().

Here is the call graph for this function:

◆ acDeleteCollByAdminIfPresent()

irods::error acDeleteCollByAdminIfPresent ( irods::callback  _cb,
std::list< boost::any > &  _params 
)

Definition at line 316 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References CAT_NO_ROWS_FOUND, irods::error::code(), terminate_irods_processes::e, LOG_ERROR, irods::error::ok(), rodsLog(), and SUCCESS.

Referenced by start().

Here is the call graph for this function:

◆ acDeleteDefaultCollections()

irods::error acDeleteDefaultCollections ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 278 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acDeleteUser()

irods::error acDeleteUser ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 246 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::error::ok().

Referenced by start().

Here is the call graph for this function:

◆ acDeleteUserZoneCollections()

irods::error acDeleteUserZoneCollections ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 285 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, ERROR, get_rei(), get_rs_comm(), get_uoio(), irods::log(), userInfo_t::rodsZone, and userInfo_t::userName.

Referenced by start().

Here is the call graph for this function:

◆ acDOC()

irods::error acDOC ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 756 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::error::ok().

Referenced by start().

Here is the call graph for this function:

◆ acGetUserByDN()

irods::error acGetUserByDN ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 396 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForCollCreate()

irods::error acPostProcForCollCreate ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 538 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForCopy()

irods::error acPostProcForCopy ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 470 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForCreate()

irods::error acPostProcForCreate ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 478 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForCreateResource()

irods::error acPostProcForCreateResource ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 586 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForCreateToken()

irods::error acPostProcForCreateToken ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 594 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForCreateUser()

irods::error acPostProcForCreateUser ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 570 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDataCopyReceived()

irods::error acPostProcForDataCopyReceived ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 739 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDataObjRead()

irods::error acPostProcForDataObjRead ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 686 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDataObjWrite()

irods::error acPostProcForDataObjWrite ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 682 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDelete()

irods::error acPostProcForDelete ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 503 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDeleteResource()

irods::error acPostProcForDeleteResource ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 610 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDeleteToken()

irods::error acPostProcForDeleteToken ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 618 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForDeleteUser()

irods::error acPostProcForDeleteUser ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 578 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForFilePathReg()

irods::error acPostProcForFilePathReg ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 474 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForGenQuery()

irods::error acPostProcForGenQuery ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 666 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyAccessControl()

irods::error acPostProcForModifyAccessControl ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 650 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyAVUMetadata()

irods::error acPostProcForModifyAVUMetadata ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 562 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyCollMeta()

irods::error acPostProcForModifyCollMeta ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 634 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyDataObjMeta()

irods::error acPostProcForModifyDataObjMeta ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 642 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyResource()

irods::error acPostProcForModifyResource ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 626 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyUser()

irods::error acPostProcForModifyUser ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 554 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForModifyUserGroup()

irods::error acPostProcForModifyUserGroup ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 602 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForObjRename()

irods::error acPostProcForObjRename ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 658 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForOpen()

irods::error acPostProcForOpen ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 482 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForParallelTransferReceived()

irods::error acPostProcForParallelTransferReceived ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 735 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForPhymv()

irods::error acPostProcForPhymv ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 486 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForPut()

irods::error acPostProcForPut ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 466 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForRepl()

irods::error acPostProcForRepl ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 490 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForRmColl()

irods::error acPostProcForRmColl ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 546 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForServerPortal()

irods::error acPostProcForServerPortal ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 698 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPostProcForTarFileReg()

irods::error acPostProcForTarFileReg ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 678 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreConnect()

irods::error acPreConnect ( irods::callback  _cb,
std::list< boost::any > &  _params 
)

Definition at line 112 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, ERROR, INVALID_ANY_CAST, LOG_ERROR, rodsLog(), and SUCCESS.

Referenced by start().

Here is the call graph for this function:

◆ acPreprocForCollCreate()

irods::error acPreprocForCollCreate ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 534 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForCreateResource()

irods::error acPreProcForCreateResource ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 582 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForCreateToken()

irods::error acPreProcForCreateToken ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 590 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForCreateUser()

irods::error acPreProcForCreateUser ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 566 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreprocForDataObjOpen()

irods::error acPreprocForDataObjOpen ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 458 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForDeleteResource()

irods::error acPreProcForDeleteResource ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 606 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForDeleteToken()

irods::error acPreProcForDeleteToken ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 614 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForDeleteUser()

irods::error acPreProcForDeleteUser ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 574 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForExecCmd()

irods::error acPreProcForExecCmd ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 690 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForGenQuery()

irods::error acPreProcForGenQuery ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 662 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyAccessControl()

irods::error acPreProcForModifyAccessControl ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 646 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyAVUMetadata()

irods::error acPreProcForModifyAVUMetadata ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 558 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyCollMeta()

irods::error acPreProcForModifyCollMeta ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 630 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyDataObjMeta()

irods::error acPreProcForModifyDataObjMeta ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 638 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyResource()

irods::error acPreProcForModifyResource ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 622 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyUser()

irods::error acPreProcForModifyUser ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 550 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForModifyUserGroup()

irods::error acPreProcForModifyUserGroup ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 598 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForObjRename()

irods::error acPreProcForObjRename ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 654 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreprocForRmColl()

irods::error acPreprocForRmColl ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 542 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForServerPortal()

irods::error acPreProcForServerPortal ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 694 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acPreProcForWriteSessionVariable()

irods::error acPreProcForWriteSessionVariable ( irods::callback  ,
std::list< boost::any > &  _params 
)

Definition at line 702 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References terminate_irods_processes::e, ERROR, LOG_ERROR, rodsLog(), SUCCESS, and SYS_INVALID_INPUT_PARAM.

Referenced by start().

Here is the call graph for this function:

◆ acRegisterData()

irods::error acRegisterData ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 785 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::error::ok().

Referenced by start().

Here is the call graph for this function:

◆ acRenameLocalZone()

irods::error acRenameLocalZone ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 375 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::error::ok().

Referenced by start().

Here is the call graph for this function:

◆ acRescQuotaPolicy()

irods::error acRescQuotaPolicy ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 670 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acSetChkFilePathPerm()

irods::error acSetChkFilePathPerm ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 507 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acSetCopyNumber()

irods::error acSetCopyNumber ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 780 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acSetCreateConditions()

irods::error acSetCreateConditions ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 743 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::error::ok().

Referenced by start().

Here is the call graph for this function:

◆ acSetMultiReplPerResc()

irods::error acSetMultiReplPerResc ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 462 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acSetNumThreads()

irods::error acSetNumThreads ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 494 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acSetPublicUserPolicy()

irods::error acSetPublicUserPolicy ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 516 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acSetRescSchemeForCreate()

irods::error acSetRescSchemeForCreate ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 413 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::server_properties::get_property(), irods::server_properties::instance(), LOG_NOTICE, and rodsLog().

Referenced by start().

Here is the call graph for this function:

◆ acSetRescSchemeForRepl()

irods::error acSetRescSchemeForRepl ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 435 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::server_properties::get_property(), irods::server_properties::instance(), LOG_NOTICE, and rodsLog().

Referenced by start().

Here is the call graph for this function:

◆ acSetReServerNumProc()

irods::error acSetReServerNumProc ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 529 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acSetResourceList()

irods::error acSetResourceList ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 775 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acSetVaultPathPolicy()

irods::error acSetVaultPathPolicy ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 524 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ acTicketPolicy()

irods::error acTicketPolicy ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 405 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ acTrashPolicy()

irods::error acTrashPolicy ( irods::callback  ,
std::list< boost::any > &   
)

Definition at line 512 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References SUCCESS.

Referenced by start().

◆ exec_rule()

irods::error exec_rule ( irods::default_re_ctx ,
const std::string &  _rn,
std::list< boost::any > &  _ps,
irods::callback  _eff_hdlr 
)

Definition at line 910 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References LOG_ERROR, rodsLog(), static_policy_enforcement_points, and SUCCESS.

Referenced by irods::rule_engine_context_manager< T, C, AUDIT_RULE >::exec_rule(), irods::rule_engine_context_manager< T, C, DONT_AUDIT_RULE >::exec_rule(), and plugin_factory().

Here is the call graph for this function:

◆ exec_rule_expression()

irods::error exec_rule_expression ( irods::default_re_ctx ,
const std::string &  _rule_text,
msParamArray_t _ms_params,
irods::callback  _eff_hdlr 
)

Definition at line 1063 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References addRErrorMsg(), terminate_irods_processes::e, ERROR, rsComm_t::rError, RuleExecInfo::rsComm, SUCCESS, SYS_INVALID_INPUT_PARAM, and SYS_NOT_SUPPORTED.

Referenced by plugin_factory().

Here is the call graph for this function:

◆ exec_rule_text()

irods::error exec_rule_text ( irods::default_re_ctx ,
const std::string &  _rule_text,
msParamArray_t _ms_params,
const std::string &  _out_desc,
irods::callback  _eff_hdlr 
)

Definition at line 973 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References _delayExec(), addRErrorMsg(), terminate_irods_processes::e, ERROR, rsComm_t::rError, RuleExecInfo::rsComm, SUCCESS, SYS_INVALID_INPUT_PARAM, and SYS_NOT_SUPPORTED.

Referenced by plugin_factory().

Here is the call graph for this function:

◆ get_rei()

◆ get_rs_comm()

◆ get_string_array_from_array()

static std::string get_string_array_from_array ( const boost::any &  _array)
static

Definition at line 78 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References INVALID_ANY_CAST, LOG_ERROR, rodsLog(), and THROW.

Here is the call graph for this function:

◆ get_uoio()

◆ list_rules()

irods::error list_rules ( irods::default_re_ctx ,
std::vector< std::string > &  rule_vec 
)

◆ plugin_factory()

irods::pluggable_rule_engine<irods::default_re_ctx>* plugin_factory ( const std::string &  _inst_name,
const std::string &  _context 
)

Definition at line 1134 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References irods::pluggable_rule_engine< T >::add_operation(), exec_rule(), exec_rule_expression(), exec_rule_text(), list_rules(), rule_exists(), start(), and stop().

Here is the call graph for this function:

◆ printHello()

irods::error printHello ( irods::callback  _cb,
std::list< boost::any > &   
)

Definition at line 107 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ rule_exists()

irods::error rule_exists ( irods::default_re_ctx ,
const std::string &  _rn,
bool &  _ret 
)

◆ start()

irods::error start ( irods::default_re_ctx _u,
const std::string &  _instance_name 
)

Definition at line 796 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

References acAclPolicy(), acBulkPutPostProcPolicy(), acCheckPasswordStrength(), acChkHostAccessControl(), acCreateCollByAdmin(), acCreateDefaultCollections(), acCreateUser(), acCreateUserZoneCollections(), acDataDeletePolicy(), acDeleteCollByAdmin(), acDeleteCollByAdminIfPresent(), acDeleteDefaultCollections(), acDeleteUser(), acDeleteUserZoneCollections(), acDOC(), acGetUserByDN(), acPostProcForCollCreate(), acPostProcForCopy(), acPostProcForCreate(), acPostProcForCreateResource(), acPostProcForCreateToken(), acPostProcForCreateUser(), acPostProcForDataCopyReceived(), acPostProcForDataObjRead(), acPostProcForDataObjWrite(), acPostProcForDelete(), acPostProcForDeleteResource(), acPostProcForDeleteToken(), acPostProcForDeleteUser(), acPostProcForFilePathReg(), acPostProcForGenQuery(), acPostProcForModifyAccessControl(), acPostProcForModifyAVUMetadata(), acPostProcForModifyCollMeta(), acPostProcForModifyDataObjMeta(), acPostProcForModifyResource(), acPostProcForModifyUser(), acPostProcForModifyUserGroup(), acPostProcForObjRename(), acPostProcForOpen(), acPostProcForParallelTransferReceived(), acPostProcForPhymv(), acPostProcForPut(), acPostProcForRepl(), acPostProcForRmColl(), acPostProcForServerPortal(), acPostProcForTarFileReg(), acPreConnect(), acPreprocForCollCreate(), acPreProcForCreateResource(), acPreProcForCreateToken(), acPreProcForCreateUser(), acPreprocForDataObjOpen(), acPreProcForDeleteResource(), acPreProcForDeleteToken(), acPreProcForDeleteUser(), acPreProcForExecCmd(), acPreProcForGenQuery(), acPreProcForModifyAccessControl(), acPreProcForModifyAVUMetadata(), acPreProcForModifyCollMeta(), acPreProcForModifyDataObjMeta(), acPreProcForModifyResource(), acPreProcForModifyUser(), acPreProcForModifyUserGroup(), acPreProcForObjRename(), acPreprocForRmColl(), acPreProcForServerPortal(), acPreProcForWriteSessionVariable(), acRegisterData(), acRenameLocalZone(), acRescQuotaPolicy(), acSetChkFilePathPerm(), acSetCopyNumber(), acSetCreateConditions(), acSetMultiReplPerResc(), acSetNumThreads(), acSetPublicUserPolicy(), acSetRescSchemeForCreate(), acSetRescSchemeForRepl(), acSetReServerNumProc(), acSetResourceList(), acSetVaultPathPolicy(), acTicketPolicy(), acTrashPolicy(), DEFAULT_RULE_REGEX, RuleExistsHelper::Instance(), printHello(), RuleExistsHelper::registerRuleRegex(), STATIC_PEP, and SUCCESS.

Referenced by dupString(), nextActionArgumentStringBackwardCompatible(), nextTokenRuleGen(), plugin_factory(), setup_irods::setup_server(), smsi_getstderr(), smsi_getstdout(), and smsi_substr().

Here is the call graph for this function:

◆ stop()

irods::error stop ( irods::default_re_ctx _u,
const std::string &   
)

Variable Documentation

◆ DEFAULT_RULE_REGEX

const std::string DEFAULT_RULE_REGEX = "ac[^ ]*"

Definition at line 44 of file libirods_rule_engine_plugin-cpp_default_policy.cpp.

Referenced by start().

◆ static_policy_enforcement_points

std::map< std::string, pep_opr_t > static_policy_enforcement_points
static