Definition at line 89 of file requesthandler.h.
Possible results from status request processing:.
Definition at line 92 of file requesthandler.h.
OSB_LIB::RequestHandler::RequestHandler | ( | AnCList * | ancList = 0 |
) | [explicit] |
Constructor with optional A&C-list to use.
OSB_LIB::RequestHandler::~RequestHandler | ( | ) |
Destructor: delete A&C-list if applicable.
OSB_LIB::RequestHandler::RequestHandler | ( | const RequestHandler & | ) | [private] |
Prevent copying until needed: not implemented.
bool OSB_LIB::RequestHandler::changeAsStatus | ( | const OSB_DB::Session & | session, | |
Associate & | assoc, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Change the effective status of locked associate.
bool OSB_LIB::RequestHandler::changeCoStatus | ( | const OSB_DB::Session & | session, | |
Contract & | co, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Change the effective status of locked contract.
bool OSB_LIB::RequestHandler::changePpnStatus | ( | const OSB_DB::Session & | session, | |
PersProduct & | pp, | |||
const Id< ProductNode > & | pnId, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Change the effective status of locked pers. node.
bool OSB_LIB::RequestHandler::changePpStatus | ( | const OSB_DB::Session & | session, | |
PersProduct & | pp, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Change the effective status of locked pers. product.
Result OSB_LIB::RequestHandler::changeStatus | ( | const OSB_DB::Session & | session, | |
StatusRequest & | request, | |||
OsbErrors & | errors, | |||
Tracker * | tracker | |||
) | [private] |
Change the status of the entity owning a request.
Result OSB_LIB::RequestHandler::checkEntities | ( | const StatusRequest & | request, | |
OsbErrors & | errors | |||
) | [private] |
Check the entities linked to a request.
bool OSB_LIB::RequestHandler::delRequest | ( | const OSB_DB::Session & | session, | |
const Id< StatusRequest > & | srqId | |||
) |
Remove a status request from the database.
session | Database session to use. | |
srqId | Object id of the status request to delete. |
void OSB_LIB::RequestHandler::finalizeRequest | ( | const OSB_DB::Session & | session, | |
const Result | result, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Store the request result in the database.
The function only has an effect if the request was processed, i.e., its result is not skipped or already done.
Note there was an error the caller of process() must first rollback the database transactions and afterwards update the request's status in the database and commit.
Associate& OSB_LIB::RequestHandler::lockAs | ( | const OSB_DB::Session & | session, | |
Id< Associate > | asId, | |||
bool | lockParent | |||
) | [private] |
Lock and read an associate.
Contract& OSB_LIB::RequestHandler::lockCo | ( | const OSB_DB::Session & | session, | |
Id< Contract > | coId, | |||
bool | lockParent | |||
) | [private] |
Lock and read a contract.
PersProduct& OSB_LIB::RequestHandler::lockPp | ( | const OSB_DB::Session & | session, | |
Id< PersProduct > | ppId, | |||
bool | lockParent | |||
) | [private] |
Lock and read a pers. product.
Result OSB_LIB::RequestHandler::lockRequest | ( | const OSB_DB::Session & | session, | |
StatusRequest & | request | |||
) | [private] |
Lock a request in the database.
RequestHandler& OSB_LIB::RequestHandler::operator= | ( | const RequestHandler & | ) | [private] |
Prevent assignment until needed: not implemented.
Result OSB_LIB::RequestHandler::process | ( | const OSB_DB::Session & | session, | |
StatusRequest & | request, | |||
OsbErrors & | errors, | |||
Tracker * | tracker = 0 | |||
) |
Process a status request.
session | Database session to use. | |
request | Status request to process. | |
errors | Gets errors and warnings. | |
tracker | Get notifications who is being processed. |
If the function returns resError the caller must first rollback the transactions and then call StatusRequest::updApplied() on request.
Result OSB_LIB::RequestHandler::setAsPrefStatus | ( | const OSB_DB::Session & | session, | |
Associate & | as, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Set the preferred status of a locked associate.
Result OSB_LIB::RequestHandler::setCoPrefStatus | ( | const OSB_DB::Session & | session, | |
Contract & | co, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Set the preferred status of a locked contract.
Result OSB_LIB::RequestHandler::setPpnPrefStatus | ( | const OSB_DB::Session & | session, | |
PersProduct & | pp, | |||
const Id< ProductNode > & | pnId, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Set the preferred status of a locked pers. node.
Result OSB_LIB::RequestHandler::setPpPrefStatus | ( | const OSB_DB::Session & | session, | |
PersProduct & | pp, | |||
StatusRequest & | request, | |||
OsbErrors & | errors | |||
) | [private] |
Set the preferred status of a locked pers. product.
Result OSB_LIB::RequestHandler::setPrefStatus | ( | const OSB_DB::Session & | session, | |
StatusRequest & | request, | |||
OsbErrors & | errors, | |||
Tracker * | tracker | |||
) | [private] |
Set the preferred status of all entities linked to a request.
AnCList* OSB_LIB::RequestHandler::ancList_ [private] |
LockList* OSB_LIB::RequestHandler::locks_ [private] |
bool OSB_LIB::RequestHandler::ownAncList_ [private] |
Flag if the A&C-list is owned by the request handler.
Definition at line 298 of file requesthandler.h.
RequestLinks* OSB_LIB::RequestHandler::rqLinks_ [private] |