From 036fb773219189d9c5a98254dcffeb550888307e Mon Sep 17 00:00:00 2001 From: Radovan Semancik Date: Thu, 16 Mar 2017 16:40:17 +0100 Subject: [PATCH] Basic role catalog collections schema --- .../schema/constants/SchemaConstants.java | 33 +++++++++ .../xml/ns/public/common/common-core-3.xsd | 68 +++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java b/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java index 13355c6e1f4..2f59d3032e1 100644 --- a/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java +++ b/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java @@ -65,6 +65,11 @@ public abstract class SchemaConstants { public static final String NS_MATCHING_RULE = NS_MIDPOINT_PUBLIC + "/common/matching-rule-3"; public static final String NS_FAULT = "http://midpoint.evolveum.com/xml/ns/public/common/fault-3"; public static final String NS_SAMPLES_EXTENSION = "http://midpoint.evolveum.com/xml/ns/samples/extension-3"; + + /** + * Namespace for default (bult-in) object collections, such as "all objects", "all roles", ... + */ + public static final String NS_OBJECT_COLLECTIONS = NS_MIDPOINT_PUBLIC + "/common/object-collections-3"; // COMMON NAMESPACE @@ -398,6 +403,34 @@ public abstract class SchemaConstants { public static final String LIFECYCLE_FAILED = "failed"; + // Object collections + + /** + * All objects in role catalog. It means all the objects in all the categories that are placed under the + * primary role catalog defined in the system. If used in a context where the role catalog can be displayed + * as a tree then this collection will be displayed as a tree. + */ + public static final QName OBJECT_COLLECTION_ROLE_CATALOG_QNAME = new QName(NS_OBJECT_COLLECTIONS, "roleCatalog"); + public static final String OBJECT_COLLECTION_ROLE_CATALOG_URI = QNameUtil.qNameToUri(OBJECT_COLLECTION_ROLE_CATALOG_QNAME); + + /** + * Collection that contains all roles. + */ + public static final QName OBJECT_COLLECTION_ALL_ROLES_QNAME = new QName(NS_OBJECT_COLLECTIONS, "allRoles"); + public static final String OBJECT_COLLECTION_ALL_ROLES_URI = QNameUtil.qNameToUri(OBJECT_COLLECTION_ALL_ROLES_QNAME); + + /** + * Collection that contains all orgs. + */ + public static final QName OBJECT_COLLECTION_ALL_ORGS_QNAME = new QName(NS_OBJECT_COLLECTIONS, "allOrgs"); + public static final String OBJECT_COLLECTION_ALL_ORGS_URI = QNameUtil.qNameToUri(OBJECT_COLLECTION_ALL_ORGS_QNAME); + + /** + * Collection that contains all services. + */ + public static final QName OBJECT_COLLECTION_ALL_SERVICES_QNAME = new QName(NS_OBJECT_COLLECTIONS, "allServices"); + public static final String OBJECT_COLLECTION_ALL_SERVICES_URI = QNameUtil.qNameToUri(OBJECT_COLLECTION_ALL_SERVICES_QNAME); + // Samples public static final QName SAMPLES_SSN = new QName(SchemaConstants.NS_SAMPLES_EXTENSION, "ssn"); diff --git a/infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd b/infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd index fc5aa61fb6b..de48bae9305 100644 --- a/infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd +++ b/infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd @@ -11072,6 +11072,19 @@ + + + + Specifies the set of object collections ("role catalog views") to display in role + catalog. If this element is not specified then the default (hardcoded) collections + will be displayed. If this element is specified then only those collections specified + in this element are displayed. + + + 3.6 + + + @@ -11137,6 +11150,61 @@ + + + + Specifies a set of object collections ("views") to be displayed (used) at + a specific location in the system. + This is generic type that can be used to specify collections to display + in role catalog, menu, dashboard and so on. + + + 3.6 + + + + + + + Reference to the colleciot, its visibility, etc. + + + 3.6 + + + + + + + + + + + Specifies how a specific collection ("view") is to be displayed (used) at + a specific location in the system. + This is generic type that can be used to specify collection to display + in role catalog, menu, dashboard and so on. + + + 3.6 + + + + + + + Reference to the built-in collection. + + + 3.6 + + + + + + +