Class CCureMockServiceHandler

java.lang.Object
edu.internet2.middleware.grouper.j2ee.MockServiceHandler
edu.internet2.middleware.grouper.app.ccure.CCureMockServiceHandler

public class CCureMockServiceHandler extends MockServiceHandler
Simulates the CCure Web Service API for tests (URL /grouper/mockServices/ccure/...); requests are dispatched by HTTP method + path. This implementation was developed against the CCure API version 2.9. Personnel and Clearance records have no create endpoint in Grouper's CCure provisioner (people and badges are provisioned outside of Grouper), so those two mock tables (mock_ccure_personnel and mock_ccure_clearance) start empty and must be seeded directly (e.g. via Hibernate) by whatever is testing against this mock. Implemented (the operations the real client, CCureApiCommands, actually calls): POST /api/Authenticate/Login -> login POST /api/Authenticate/Logout -> logout GET /api/Objects/Get/{type}/{id} -> getObject GET /api/Objects/GetAll/{type} -> getAllObjects POST /api/Objects/GetAllWithCriteria -> findObjectsWithCriteria POST /api/Objects/PersistToContainer -> persistToContainer POST /api/Objects/RemoveFromContainer -> removeFromContainer