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)  

objMetaOpr.hpp File Reference
#include "rods.h"
#include "objInfo.h"
#include "dataObjInpOut.h"
#include "rcGlobalExtern.h"
#include "rsGlobalExtern.hpp"
Include dependency graph for objMetaOpr.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int svrCloseQueryOut (rsComm_t *rsComm, genQueryOut_t *genQueryOut)
 
int isData (rsComm_t *rsComm, char *objName, rodsLong_t *dataId)
 
int isColl (rsComm_t *rsComm, char *objName, rodsLong_t *collId)
 
int isCollAllKinds (rsComm_t *rsComm, char *objName, rodsLong_t *collId)
 
int isUser (rsComm_t *rsComm, char *objName)
 
int isResc (rsComm_t *rsComm, char *objName)
 
int isMeta (rsComm_t *rsComm, char *objName)
 
int isToken (rsComm_t *rsComm, char *objName)
 
int getObjType (rsComm_t *rsComm, char *objName, char *objType)
 
int addAVUMetadataFromKVPairs (rsComm_t *rsComm, char *objName, char *inObjType, keyValPair_t *kVP)
 
int setAVUMetadataFromKVPairs (rsComm_t *rsComm, char *objName, char *inObjType, keyValPair_t *kVP)
 
int removeAVUMetadataFromKVPairs (rsComm_t *rsComm, char *objName, char *inObjType, keyValPair_t *kVP)
 
int getStructFileType (specColl_t *specColl)
 
int checkPermissionByObjType (rsComm_t *rsComm, char *objName, char *objType, char *user, char *zone, char *oper)
 
int checkDupReplica (rsComm_t *rsComm, rodsLong_t dataId, char *rescName, char *filePath)
 
int getNumSubfilesInBunfileObj (rsComm_t *rsComm, char *objPath)
 
int getPhyPath (rsComm_t *rsComm, char *objName, char *resource, char *phyPath, char *rescHier)
 

Function Documentation

◆ addAVUMetadataFromKVPairs()

int addAVUMetadataFromKVPairs ( rsComm_t rsComm,
char *  objName,
char *  inObjType,
keyValPair_t kVP 
)

Definition at line 311 of file objMetaOpr.cpp.

References modAVUMetadataInp_t::arg0, modAVUMetadataInp_t::arg1, modAVUMetadataInp_t::arg2, modAVUMetadataInp_t::arg3, modAVUMetadataInp_t::arg4, modAVUMetadataInp_t::arg5, getObjType(), KeyValPair::keyWord, KeyValPair::len, LOG_ERROR, rodsLog(), rsModAVUMetadata(), irods.pypyodbc::status, SYS_INVALID_INPUT_PARAM, and KeyValPair::value.

Referenced by msiAssociateKeyValuePairsToObj().

Here is the call graph for this function:

◆ checkDupReplica()

int checkDupReplica ( rsComm_t rsComm,
rodsLong_t  dataId,
char *  rescName,
char *  filePath 
)

◆ checkPermissionByObjType()

int checkPermissionByObjType ( rsComm_t rsComm,
char *  objName,
char *  objType,
char *  user,
char *  zone,
char *  oper 
)

◆ getNumSubfilesInBunfileObj()

int getNumSubfilesInBunfileObj ( rsComm_t rsComm,
char *  objPath 
)

◆ getObjType()

int getObjType ( rsComm_t rsComm,
char *  objName,
char *  objType 
)

Definition at line 285 of file objMetaOpr.cpp.

References INVALID_OBJECT_TYPE, isColl(), isData(), isMeta(), isResc(), isToken(), isUser(), and NULL.

Referenced by addAVUMetadataFromKVPairs(), msiApplyDCMetadataTemplate(), msiCheckAccess(), msiGetObjType(), removeAVUMetadataFromKVPairs(), and setAVUMetadataFromKVPairs().

Here is the call graph for this function:

◆ getPhyPath()

int getPhyPath ( rsComm_t rsComm,
char *  objName,
char *  resource,
char *  phyPath,
char *  rescHier 
)

◆ getStructFileType()

◆ isColl()

int isColl ( rsComm_t rsComm,
char *  objName,
rodsLong_t collId 
)

Definition at line 204 of file objMetaOpr.cpp.

References addInxIval(), addInxVal(), clearGenQueryInp(), COL_COLL_ID, COL_COLL_NAME, freeGenQueryOut(), getSqlResultByInx(), LOG_ERROR, MAX_NAME_LEN, GenQueryInp::maxRows, NULL, rodsLog(), rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, and SqlResult::value.

Referenced by _rsDataObjRename(), getObjType(), mountFileDir(), rsCollCreate(), rsGetHostForGet(), and scanObjCol().

Here is the call graph for this function:

◆ isCollAllKinds()

int isCollAllKinds ( rsComm_t rsComm,
char *  objName,
rodsLong_t collId 
)

Definition at line 186 of file objMetaOpr.cpp.

References collStatAllKinds(), rodsObjStat::dataId, freeRodsObjStat(), MAX_NAME_LEN, NULL, DataObjInp::objPath, rstrcpy(), and irods.pypyodbc::status.

Referenced by rsMkCollR().

Here is the call graph for this function:

◆ isData()

int isData ( rsComm_t rsComm,
char *  objName,
rodsLong_t dataId 
)

◆ isMeta()

int isMeta ( rsComm_t rsComm,
char *  objName 
)

Definition at line 273 of file objMetaOpr.cpp.

References INVALID_OBJECT_TYPE.

Referenced by getObjType().

◆ isResc()

int isResc ( rsComm_t rsComm,
char *  objName 
)

Definition at line 255 of file objMetaOpr.cpp.

References addInxIval(), addInxVal(), clearGenQueryInp(), COL_R_RESC_ID, COL_R_RESC_NAME, freeGenQueryOut(), GenQueryInp::maxRows, NAME_LEN, NULL, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, and irods.pypyodbc::status.

Referenced by getObjType().

Here is the call graph for this function:

◆ isToken()

int isToken ( rsComm_t rsComm,
char *  objName 
)

Definition at line 279 of file objMetaOpr.cpp.

References INVALID_OBJECT_TYPE.

Referenced by getObjType().

◆ isUser()

int isUser ( rsComm_t rsComm,
char *  objName 
)

Definition at line 237 of file objMetaOpr.cpp.

References addInxIval(), addInxVal(), clearGenQueryInp(), COL_USER_ID, COL_USER_NAME, freeGenQueryOut(), GenQueryInp::maxRows, NAME_LEN, NULL, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, and irods.pypyodbc::status.

Referenced by getObjType().

Here is the call graph for this function:

◆ removeAVUMetadataFromKVPairs()

int removeAVUMetadataFromKVPairs ( rsComm_t rsComm,
char *  objName,
char *  inObjType,
keyValPair_t kVP 
)

Definition at line 400 of file objMetaOpr.cpp.

References modAVUMetadataInp_t::arg0, modAVUMetadataInp_t::arg1, modAVUMetadataInp_t::arg2, modAVUMetadataInp_t::arg3, modAVUMetadataInp_t::arg4, modAVUMetadataInp_t::arg5, getObjType(), KeyValPair::keyWord, KeyValPair::len, NULL, rsModAVUMetadata(), irods.pypyodbc::status, and KeyValPair::value.

Referenced by msiRemoveKeyValuePairsFromObj().

Here is the call graph for this function:

◆ setAVUMetadataFromKVPairs()

int setAVUMetadataFromKVPairs ( rsComm_t rsComm,
char *  objName,
char *  inObjType,
keyValPair_t kVP 
)

Definition at line 351 of file objMetaOpr.cpp.

References modAVUMetadataInp_t::arg0, modAVUMetadataInp_t::arg1, modAVUMetadataInp_t::arg2, modAVUMetadataInp_t::arg3, modAVUMetadataInp_t::arg4, modAVUMetadataInp_t::arg5, getObjType(), KeyValPair::keyWord, KeyValPair::len, NULL, rsModAVUMetadata(), irods.pypyodbc::status, and KeyValPair::value.

Referenced by msiSetKeyValuePairsToObj().

Here is the call graph for this function:

◆ svrCloseQueryOut()

int svrCloseQueryOut ( rsComm_t rsComm,
genQueryOut_t genQueryOut 
)

Definition at line 26 of file objMetaOpr.cpp.

References GenQueryInp::continueInx, GenQueryOut::continueInx, GenQueryInp::maxRows, NULL, rsGenQuery(), and irods.pypyodbc::status.

Referenced by msiSetDataTypeFromExt().

Here is the call graph for this function: