Class MockCcureClearance
java.lang.Object
edu.internet2.middleware.grouper.app.ccure.MockCcureClearance
Model object for a CCure Clearance record (the "group" in provisioning terms), used to back
the mock service. There is no create-Clearance endpoint in the real CCure API, 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 voidcreateTableCcureClearance(DdlVersionBean ddlVersionBean, Database database) DDL for the mock table.getGuid()getName()voidvoidvoidsetObjectId(Integer objectId) voidsetPartitionId(String partitionId) com.fasterxml.jackson.databind.node.ObjectNodetoJson()The DisplayProperties shape the real client requests: ObjectID, GUID, Name, PartitionID.toString()
-
Constructor Details
-
MockCcureClearance
public MockCcureClearance()
-
-
Method Details
-
getObjectId
-
setObjectId
-
getGuid
-
setGuid
-
getName
-
setName
-
getPartitionId
-
setPartitionId
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()The DisplayProperties shape the real client requests: ObjectID, GUID, Name, PartitionID.- Returns:
- the clearance JSON
-
createTableCcureClearance
DDL for the mock table.- Parameters:
ddlVersionBean- ddl version beandatabase- database
-
toString
-