FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEobjACL.h
Go to the documentation of this file.
1 #ifndef _OME_OBJACL_H
2 #define _OME_OBJACL_H "$Id: OMEobjACL.h 452 2020-07-23 20:19:23Z geoff $"
4 
6 #include <OMEstring.h>
7 #include <OMEassoc.h>
8 
13 OMEassoc *OMEmakeACL(const OMEstring &entity, uint_fast32_t defaultPermission,
14  const OMEassoc &methodList);
15 
16 void OMEaddToACL(OMEassoc &acl, const OMEstring &entity,
17  uint_fast32_t defaultPermission, const OMEassoc &methodList);
18 
19 bool OMEcheckACL(const OMEassoc &acl, const OMEstring &methodName,
20  const class OMEthread *t = nullptr);
21 
22 bool OMEcheckResourceAccess(OMEthread *, const OMEstring &resourceName);
23 
24 void OMEclearUserIDtable(); // called at exit to cleanup
25 
26 
29 #endif
30 
31 /* vim: set expandtab shiftwidth=4 tabstop=4: */
OMEmakeACL
OMEassoc * OMEmakeACL(const OMEstring &entity, uint_fast32_t defaultPermission, const OMEassoc &methodList)
Definition: OMEobjACL.cpp:164
OMEtype::initializeAsType
void initializeAsType(const enum OMEtypes_t t)
The fundamental tagged data type used through the FARGOS/VISTA infrastructure.
Definition: OMEtype.cpp:95
OMEoid::getObjectACL
const OMEassoc & getObjectACL() const
Definition: OMEoid.h:285
s
const char s[]
Definition: t.cpp:4
OMEstring.h
OME string implementation.
OMEassoc
Implements associative array of OMEtype elements.
Definition: OMEassoc.h:112
OMEstring
Implements text and binary string storage.
Definition: OMEstring.h:305
OMEcheckACL
bool OMEcheckACL(const OMEassoc &acl, const OMEstring &methodName, const OMEthread *threadData)
Definition: OMEobjACL.cpp:173
OMEarray::indexExists
bool indexExists(const uint32_t i) const
Definition: OMEarray.h:202
OMEtype::value
union OMEtype::@26 value
OMEtype
Fundamental ANY type for FARGOS/VISTA Object Management Environment.
Definition: OMEbaseType.h:250
OMEverifyUserPassword
bool OMEverifyUserPassword(const char *userName, const char *password)
Definition: OMEpassword.cpp:63
OMEassoc::indexExists
bool indexExists(const ASSOC_HASH_KEY_t i) const
Definition: OMEassoc.h:226
OMEobject
Base class and abstract interface for an object within a FARGOS/VISTA Object Management Environment.
Definition: OMEobject.h:22
createACLthatDisallowsOthers
int createACLthatDisallowsOthers(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OMEobjACL.cpp:241
OMEtype::oid
class OMEoid * oid
Definition: OMEbaseType.h:297
LOG_COUT
#define LOG_COUT(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard output.
Definition: logging_api.hpp:3007
OMEtype::s
class OMEstring * s
Definition: OMEbaseType.h:299
OMEobjACL.h
OMEcore.h
OMEtype::i
int32_t i
Definition: OMEbaseType.h:285
OMEtype::array
class OMEarray * array
Definition: OMEbaseType.h:294
OMEgetSystemUser
int OMEgetSystemUser(OMEstring &sysUser, OMEstring &sysPw)
Definition: OMEobjACL.cpp:29
srcID
const char srcID[]
Definition: catSym.c:17
OME_STRING
@ OME_STRING
Definition: OMEmanifests.h:85
OMEcrypto.h
OMEthread.h
OME_NIL
@ OME_NIL
Definition: OMEmanifests.h:78
addUserToACL
int addUserToACL(OMEthread *thread, OMEtype &result, const OMEtype &acl, const OMEtype &user, const OMEtype &methods)
Definition: OMEobjACL.cpp:308
OME_OID
@ OME_OID
Definition: OMEmanifests.h:84
OMEassoc.h
OME associative array implementation.
OMEtype.h
OME fundamental type implementation.
OMEthread::getUserName
const OMEstring * getUserName() const
Definition: OMEobjACL.cpp:460
createNewOIDthatOnlyAllowsOthers
int createNewOIDthatOnlyAllowsOthers(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OMEobjACL.cpp:338
OMEstring::length
size_t length() const
Definition: OMEstring.h:401
becomeUser
int becomeUser(OMEthread *thread, OMEtype &result, const OMEtype &userName, const OMEtype &password)
Definition: OMEobjACL.cpp:398
OMEthread::userInfo
OMEtype userInfo
Definition: OMEthread.h:67
OME_USED
const char srcID[] OME_USED
Definition: tick_time.cpp:24
OMEcheckACL
bool OMEcheckACL(const OMEassoc &acl, const OMEstring &methodName, const class OMEthread *t=nullptr)
OME_SET
@ OME_SET
Definition: OMEmanifests.h:89
OMEdefOIL2func
Record to define the implementation of an OIL2 function.
Definition: OMEthread.h:287
OMEclearUserIDtable
void OMEclearUserIDtable()
Definition: OMEobjACL.cpp:490
becomePseudoUser
int becomePseudoUser(OMEthread *thread, OMEtype &result)
Definition: OMEobjACL.cpp:413
OME_FAST_CALL
#define OME_FAST_CALL
Definition: compiler_hints.h:468
_STD
#define _STD
Definition: OMEmanifests.h:146
OMEset::nextElement
OMEtype * nextElement()
Iterate over a set by retrieving the next element.
Definition: OMEset.cpp:280
OMEarray
Implements sparse array of OMEtype elements.
Definition: OMEarray.h:75
makePermitEveryoneACL
int makePermitEveryoneACL(OMEthread *thread, OMEtype &result)
Definition: OMEobjACL.cpp:286
OMEthread
Public interface to an OME thread.
Definition: OMEthread.h:60
OMEnoACLS
int OMEnoACLS
Definition: OMEinit.cpp:16
LOG_ENDLINE
#define LOG_ENDLINE
Closing clause for text line output using << operators.
Definition: logging_api.hpp:2956
OMEoid
Public interface to an OME Object Identifier.
Definition: OMEoid.h:196
OMEthread::setUserID
OME_FAST_CALL int setUserID(const OMEstring &userID, const OMEstring &pwInfo)
Definition: OMEobjACL.cpp:437
OMEmakeRandomKey
OMEstring * OMEmakeRandomKey(int32_t bits=1024)
Generate a random sequence of bits.
Definition: pkRoutines.cpp:46
OMEtype::type
uint32_t type
Definition: OMEbaseType.h:304
makeDefaultACL
int makeDefaultACL(OMEthread *thread, OMEtype &result)
Definition: OMEobjACL.cpp:267
OME_ARRAY
@ OME_ARRAY
Definition: OMEmanifests.h:86
OMEarray::ARRAY_SUBSCRIPT_t
OMEarrayStorage::ARRAY_SUBSCRIPT_t ARRAY_SUBSCRIPT_t
Definition: OMEarray.h:90
OMEtype::assoc
class OMEassoc * assoc
Definition: OMEbaseType.h:296
OMEset::resetIterator
void resetIterator()
Reset the internal iterator to the beginning of the list.
Definition: OMEset.cpp:264
OMEtype::set
class OMEset * set
Definition: OMEbaseType.h:298
OMEuserInfoP
class OMEuserInfo * OMEuserInfoP
Definition: OMEobjACL.cpp:43
OMEcheckResourceAccess
bool OMEcheckResourceAccess(OMEthread *thread, const OMEstring &resourceName)
Definition: OMEobjACL.cpp:475
OMEthread::getUserID
const OMEtype & getUserID() const OME_ALWAYS_INLINE
Definition: OMEthread.h:146
OMEoid::getInstanceInMemory
const class OMEobject * getInstanceInMemory() const
Return object information record.
Definition: OMEoid.h:280
OME_ASSOC
@ OME_ASSOC
Definition: OMEmanifests.h:87
createACLthatAllowsOthers
int createACLthatAllowsOthers(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OMEobjACL.cpp:214
LOG_CERR
#define LOG_CERR(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard error.
Definition: logging_api.hpp:3014
OMEaddToACL
void OMEaddToACL(OMEassoc &result, const OMEstring &entity, uint_fast32_t defaultPermission, const OMEassoc &methodList)
Definition: OMEobjACL.cpp:154
logging_api.hpp
FARGOS Logging API.
Generated: Fri Jul 31 2020 18:19:15
Support Information