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