Class MockCcurePersonnel
java.lang.Object
edu.internet2.middleware.grouper.app.ccure.MockCcurePersonnel
Model object for a CCure Personnel record, used to back the mock service. There is no
create-Personnel endpoint in the real CCure API (people/badges are provisioned outside of
Grouper), so this table starts empty and is seeded directly (e.g. via Hibernate) by whatever
is testing against the mock, rather than through an HTTP call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateTableCcurePersonnel(DdlVersionBean ddlVersionBean, Database database) DDL for the mock table.getGuid()getInt1()getName()voidvoidvoidvoidsetPersonnelId(Integer personnelId) com.fasterxml.jackson.databind.node.ObjectNodetoJson()The DisplayProperties shape the real client requests: ObjectID, GUID, Name, Int1.toString()
-
Constructor Details
-
MockCcurePersonnel
public MockCcurePersonnel()
-
-
Method Details
-
getPersonnelId
-
setPersonnelId
-
getGuid
-
setGuid
-
getName
-
setName
-
getInt1
-
setInt1
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()The DisplayProperties shape the real client requests: ObjectID, GUID, Name, Int1.- Returns:
- the personnel JSON
-
createTableCcurePersonnel
DDL for the mock table.- Parameters:
ddlVersionBean- ddl version beandatabase- database
-
toString
-