VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
DtAssignmentConfigurationController Class Reference

DtAssignmentConfigurationController – role assignment and self-assignment endpoints.

Inheritance diagram for DtAssignmentConfigurationController:
Inheritance graph
[legend]

Public Member Functions

 DtAssignmentConfigurationController (const std::shared_ptr< ObjectMapper > &objectMapper)
 
 ENDPOINT_INFO (listSavedAssignmentSets)
 
 ENDPOINT ("GET","/api/role-assignment-sets", listSavedAssignmentSets, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (listImportAssignmentSets)
 
 ENDPOINT ("GET","/api/role-assignment-sets/import", listImportAssignmentSets, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (importAssignmentSet)
 
 ENDPOINT ("POST","/api/role-assignment-sets/import", importAssignmentSet, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (getSavedAssignmentSetById)
 
 ENDPOINT ("GET","/api/role-assignment-sets/{assignmentId}", getSavedAssignmentSetById, PATH(String, assignmentId), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (createSavedAssignmentSet)
 
 ENDPOINT ("POST","/api/role-assignment-sets", createSavedAssignmentSet, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (loadActiveSavedAssignmentSet)
 
 ENDPOINT ("POST","/api/role-assignment-sets/active/load", loadActiveSavedAssignmentSet, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (saveActiveSavedAssignmentSet)
 
 ENDPOINT ("POST","/api/role-assignment-sets/active/save", saveActiveSavedAssignmentSet, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (setSavedAssignmentDescription)
 
 ENDPOINT ("PUT","/api/role-assignment-sets/{assignmentId}/description", setSavedAssignmentDescription, PATH(String, assignmentId), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (setSavedAssignmentUserRoles)
 
 ENDPOINT ("PUT","/api/role-assignment-sets/{assignmentId}/users/{username}", setSavedAssignmentUserRoles, PATH(String, assignmentId), PATH(String, username), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (deleteSavedAssignmentSet)
 
 ENDPOINT ("DELETE","/api/role-assignment-sets/{assignmentId}", deleteSavedAssignmentSet, PATH(String, assignmentId), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (replaceSessionRoles)
 
 ENDPOINT ("PUT","/api/role-configurations/assignments/{sessionId}", replaceSessionRoles, PATH(String, sessionId), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (addSessionRole)
 
 ENDPOINT ("POST","/api/role-configurations/assignments/{sessionId}/roles/{roleName}", addSessionRole, PATH(String, sessionId), PATH(String, roleName), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (removeSessionRole)
 
 ENDPOINT ("DELETE","/api/role-configurations/assignments/{sessionId}/roles/{roleName}", removeSessionRole, PATH(String, sessionId), PATH(String, roleName), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (getAvailableRoles)
 
 ENDPOINT ("GET","/api/roles/available", getAvailableRoles, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (claimRole)
 
 ENDPOINT ("POST","/api/roles/claim", claimRole, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (relinquishRole)
 
 ENDPOINT ("POST","/api/roles/relinquish", relinquishRole, REQUEST(std::shared_ptr< IncomingRequest >, request))
 

Private Member Functions

std::shared_ptr< OutgoingResponse > handleListSavedAssignmentSets (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleListImportAssignmentSets (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleImportAssignmentSet (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleGetSavedAssignmentSetById (const std::shared_ptr< IncomingRequest > &req, const String &assignmentId)
 
std::shared_ptr< OutgoingResponse > handleCreateSavedAssignmentSet (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleLoadActiveSavedAssignmentSet (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleSaveActiveSavedAssignmentSet (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleSetSavedAssignmentDescription (const std::shared_ptr< IncomingRequest > &req, const String &assignmentId)
 
std::shared_ptr< OutgoingResponse > handleSetSavedAssignmentUserRoles (const std::shared_ptr< IncomingRequest > &req, const String &assignmentId, const String &username)
 
std::shared_ptr< OutgoingResponse > handleDeleteSavedAssignmentSet (const std::shared_ptr< IncomingRequest > &req, const String &assignmentId)
 
std::shared_ptr< OutgoingResponse > handleReplaceSessionRoles (const std::shared_ptr< IncomingRequest > &req, const String &sessionId)
 
std::shared_ptr< OutgoingResponse > handleAddSessionRole (const std::shared_ptr< IncomingRequest > &req, const String &sessionId, const String &roleName)
 
std::shared_ptr< OutgoingResponse > handleRemoveSessionRole (const std::shared_ptr< IncomingRequest > &req, const String &sessionId, const String &roleName)
 
std::shared_ptr< OutgoingResponse > handleGetAvailableRoles (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleClaimRole (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleRelinquishRole (const std::shared_ptr< IncomingRequest > &req)
 

Constructor & Destructor Documentation

DtAssignmentConfigurationController::DtAssignmentConfigurationController ( const std::shared_ptr< ObjectMapper > &  objectMapper)
inlineexplicit

Member Function Documentation

DtAssignmentConfigurationController::ENDPOINT_INFO ( listSavedAssignmentSets  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "GET"  ,
"/api/role-assignment-sets"  ,
listSavedAssignmentSets  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( listImportAssignmentSets  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "GET"  ,
"/api/role-assignment-sets/import"  ,
listImportAssignmentSets  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( importAssignmentSet  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/role-assignment-sets/import"  ,
importAssignmentSet  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( getSavedAssignmentSetById  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "GET"  ,
"/api/role-assignment-sets/{assignmentId}"  ,
getSavedAssignmentSetById  ,
PATH(String, assignmentId)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( createSavedAssignmentSet  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/role-assignment-sets"  ,
createSavedAssignmentSet  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( loadActiveSavedAssignmentSet  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/role-assignment-sets/active/load"  ,
loadActiveSavedAssignmentSet  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( saveActiveSavedAssignmentSet  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/role-assignment-sets/active/save"  ,
saveActiveSavedAssignmentSet  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( setSavedAssignmentDescription  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "PUT"  ,
"/api/role-assignment-sets/{assignmentId}/description"  ,
setSavedAssignmentDescription  ,
PATH(String, assignmentId)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( setSavedAssignmentUserRoles  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "PUT"  ,
"/api/role-assignment-sets/{assignmentId}/users/{username}"  ,
setSavedAssignmentUserRoles  ,
PATH(String, assignmentId)  ,
PATH(String, username)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( deleteSavedAssignmentSet  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "DELETE"  ,
"/api/role-assignment-sets/{assignmentId}"  ,
deleteSavedAssignmentSet  ,
PATH(String, assignmentId)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( replaceSessionRoles  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "PUT"  ,
"/api/role-configurations/assignments/{sessionId}"  ,
replaceSessionRoles  ,
PATH(String, sessionId)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( addSessionRole  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/role-configurations/assignments/{sessionId}/roles/{roleName}"  ,
addSessionRole  ,
PATH(String, sessionId)  ,
PATH(String, roleName)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( removeSessionRole  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "DELETE"  ,
"/api/role-configurations/assignments/{sessionId}/roles/{roleName}"  ,
removeSessionRole  ,
PATH(String, sessionId)  ,
PATH(String, roleName)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( getAvailableRoles  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "GET"  ,
"/api/roles/available"  ,
getAvailableRoles  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtAssignmentConfigurationController::ENDPOINT_INFO ( claimRole  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/roles/claim"  ,
claimRole  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline

References handleClaimRole().

DtAssignmentConfigurationController::ENDPOINT_INFO ( relinquishRole  )
inline
DtAssignmentConfigurationController::ENDPOINT ( "POST"  ,
"/api/roles/relinquish"  ,
relinquishRole  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleListSavedAssignmentSets ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleListImportAssignmentSets ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleImportAssignmentSet ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleGetSavedAssignmentSetById ( const std::shared_ptr< IncomingRequest > &  req,
const String &  assignmentId 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleCreateSavedAssignmentSet ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleLoadActiveSavedAssignmentSet ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleSaveActiveSavedAssignmentSet ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleSetSavedAssignmentDescription ( const std::shared_ptr< IncomingRequest > &  req,
const String &  assignmentId 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleSetSavedAssignmentUserRoles ( const std::shared_ptr< IncomingRequest > &  req,
const String &  assignmentId,
const String &  username 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleDeleteSavedAssignmentSet ( const std::shared_ptr< IncomingRequest > &  req,
const String &  assignmentId 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleReplaceSessionRoles ( const std::shared_ptr< IncomingRequest > &  req,
const String &  sessionId 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleAddSessionRole ( const std::shared_ptr< IncomingRequest > &  req,
const String &  sessionId,
const String &  roleName 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleRemoveSessionRole ( const std::shared_ptr< IncomingRequest > &  req,
const String &  sessionId,
const String &  roleName 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleGetAvailableRoles ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleClaimRole ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtAssignmentConfigurationController::handleRelinquishRole ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)