Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions conf/db/upgrade/V5.5.28__schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- ZCF-4158: Store SCIM event application state.
CREATE TABLE IF NOT EXISTS `zstack`.`ScimEventVO` (
`uuid` varchar(32) NOT NULL UNIQUE COMMENT 'uuid',
`clientId` varchar(128) NOT NULL DEFAULT 'default',
`eventId` varchar(255) NOT NULL,
`resourceType` varchar(64) NOT NULL,
`resourceId` varchar(255) NOT NULL,
`resourceVersion` bigint NOT NULL,
`operation` varchar(32) NOT NULL,
`status` varchar(32) NOT NULL,
`payloadHash` varchar(128) DEFAULT NULL,
`errorMessage` text DEFAULT NULL,
`lastOpDate` timestamp NOT NULL DEFAULT '2000-01-01 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`createDate` timestamp NOT NULL DEFAULT '2000-01-01 00:00:00',
PRIMARY KEY (`uuid`),
UNIQUE KEY `ukScimEventVOClientEvent` (`clientId`, `eventId`),
KEY `idxScimEventVOResourceVersion` (`clientId`, `resourceType`, `resourceId`, `resourceVersion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
13 changes: 13 additions & 0 deletions core/src/main/java/org/zstack/core/scim/ScimGlobalProperty.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.zstack.core.scim;

import org.zstack.core.GlobalProperty;
import org.zstack.core.GlobalPropertyDefinition;

@GlobalPropertyDefinition
public class ScimGlobalProperty {
@GlobalProperty(name = "scim.receiver.token", defaultValue = "")
public static String SCIM_RECEIVER_TOKEN;

@GlobalProperty(name = "scim.receiver.signatureSecret", defaultValue = "")
public static String SCIM_RECEIVER_SIGNATURE_SECRET;
}
Loading