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.
![]() ![]() |
#include "rods.h"
#include "objInfo.h"
#include "dataObjInpOut.h"
#include "rcGlobalExtern.h"
#include "rsGlobalExtern.hpp"
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) |
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().
int checkDupReplica | ( | rsComm_t * | rsComm, |
rodsLong_t | dataId, | ||
char * | rescName, | ||
char * | filePath | ||
) |
Definition at line 711 of file objMetaOpr.cpp.
References addInxIval(), addInxVal(), clearGenQueryInp(), irods::error::code(), COL_D_DATA_ID, COL_D_DATA_PATH, COL_D_RESC_ID, COL_DATA_REPL_NUM, freeGenQueryOut(), getSqlResultByInx(), irods::resource_manager::hier_to_leaf_id(), irods::log(), LOG_ERROR, MAX_NAME_LEN, GenQueryInp::maxRows, NULL, irods::error::ok(), PASS, resc_mgr, rodsLog(), rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, USER__NULL_INPUT_ERR, and SqlResult::value.
Referenced by _rsRegReplica().
int checkPermissionByObjType | ( | rsComm_t * | rsComm, |
char * | objName, | ||
char * | objType, | ||
char * | user, | ||
char * | zone, | ||
char * | oper | ||
) |
Definition at line 602 of file objMetaOpr.cpp.
References addInxIval(), addInxVal(), CAT_NO_ROWS_FOUND, checkPermitForCollection(), checkPermitForDataObject(), checkPermitForResource(), clearGenQueryInp(), COL_USER_GROUP_NAME, COL_USER_NAME, freeGenQueryOut(), getSqlResultByInx(), getTokenId(), getUserId(), INVALID_OBJECT_TYPE, SqlResult::len, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, GenQueryOut::rowCnt, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, SYS_INVALID_INPUT_PARAM, and SqlResult::value.
Referenced by msiCheckAccess().
Definition at line 766 of file objMetaOpr.cpp.
References addInxIval(), addInxVal(), addKeyVal(), BUNDLE_RESC_CLASS, CAT_NO_ROWS_FOUND, clearGenQueryInp(), COL_COLL_NAME, COL_D_DATA_PATH, COL_DATA_NAME, COL_DATA_SIZE, COL_R_CLASS_NAME, GenQueryInp::condInput, freeGenQueryOut(), MAX_NAME_LEN, GenQueryInp::maxRows, NULL, GenQueryInp::options, RETURN_TOTAL_ROW_COUNT, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, GenQueryOut::totalRowCount, and ZONE_KW.
Referenced by _rsDataObjUnlink().
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().
int getPhyPath | ( | rsComm_t * | rsComm, |
char * | objName, | ||
char * | resource, | ||
char * | phyPath, | ||
char * | rescHier | ||
) |
Definition at line 86 of file objMetaOpr.cpp.
References addInxIval(), addInxVal(), clearGenQueryInp(), COL_COLL_NAME, COL_D_DATA_PATH, COL_D_RESC_HIER, COL_DATA_NAME, freeGenQueryOut(), getSqlResultByInx(), irods::log(), LOG_ERROR, MAX_NAME_LEN, GenQueryInp::maxRows, NULL, DataObjInp::objPath, irods::error::ok(), irods::OPEN_OPERATION(), deploy_schemas_locally::parser, PASS, irods::resolve_resource_hierarchy(), rodsLog(), rsGenQuery(), GenQueryInp::selectInp, splitPathByKey(), GenQueryInp::sqlCondInp, irods.pypyodbc::status, SYS_INVALID_INPUT_PARAM, UNMATCHED_KEY_OR_INDEX, and SqlResult::value.
Referenced by queueSpecCollCache().
int getStructFileType | ( | specColl_t * | specColl | ) |
Definition at line 386 of file objMetaOpr.cpp.
References SpecColl::collClass, NULL, STRUCT_FILE_COLL, and SpecColl::type.
Referenced by _rsDataObjGet(), _rsDataObjOpen(), _rsDataObjPut(), _rsSyncMountedColl(), getDataObjInfoIncSpecColl(), l3Close(), l3Create(), l3FileGetSingleBuf(), l3FilePutSingleBuf(), l3Mkdir(), l3Open(), l3Opendir(), l3Read(), l3Rename(), l3Rmdir(), l3Stat(), l3Truncate(), l3Unlink(), l3Write(), rsDataObjLseek(), specCollClosedir(), specCollObjRename(), specCollReaddir(), specCollSubStat(), and unmountFileDir().
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().
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().
int isData | ( | rsComm_t * | rsComm, |
char * | objName, | ||
rodsLong_t * | dataId | ||
) |
Definition at line 47 of file objMetaOpr.cpp.
References addInxIval(), addInxVal(), clearGenQueryInp(), COL_COLL_ID, COL_COLL_NAME, COL_D_DATA_ID, COL_DATA_NAME, freeGenQueryOut(), getSqlResultByInx(), LOG_ERROR, MAX_NAME_LEN, GenQueryInp::maxRows, NULL, rodsLog(), rsGenQuery(), GenQueryInp::selectInp, splitPathByKey(), GenQueryInp::sqlCondInp, irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, and SqlResult::value.
Referenced by _rsDataObjRename(), createPhyBundleDataObj(), dirPathReg(), and getObjType().
Definition at line 273 of file objMetaOpr.cpp.
References INVALID_OBJECT_TYPE.
Referenced by getObjType().
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().
Definition at line 279 of file objMetaOpr.cpp.
References INVALID_OBJECT_TYPE.
Referenced by getObjType().
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().
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().
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().
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().