[midPoint] Relationship userType - orgType

Martin Marchese mmarchese at identicum.com
Thu Nov 10 21:48:25 CET 2016


Hi Radovan,

Thanks for your answer.

We are facing a similar case, so we decided to add extension properties to
the AssignmentTypes. We created the metaAssignment.xsd file within the
home/schema directory and restarted tomcat. The xsd file content is the
following:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsd:schema elementFormDefault="qualified"
            targetNamespace="
http://midpoint.identicum.com/xml/ns/metaAssignment"
            xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
            xmlns:c="
http://midpoint.evolveum.com/xml/ns/public/common/common-3"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xsd:complexType name="AssignmentExtensionType">
                <xsd:annotation>
                        <xsd:appinfo>
                                <a:extension ref="c:AssignmentType"/>
                        </xsd:appinfo>
                </xsd:annotation>
                <xsd:sequence>
                        <xsd:element name="metaRelation" type="xsd:string"
  minOccurs="0" maxOccurs="1" />
                </xsd:sequence>
        </xsd:complexType>
</xsd:schema>

However, seems like the extension is not being loaded since when we try to
add the following assignment:

    <assignment>
        <extension>
          <metaRelation>STUDENT</metaRelation>
        </extension>
        <targetRef oid="fa18702d-7c44-4b73-82fe-5cad153782e5"
type="OrgType"/>
    </assignment>

We receive the following error:

Item {
http://midpoint.evolveum.com/xml/ns/public/common/common-3}metaRelation has
no definition (schema present, in container
PCD:{.../common/common-3}extension {
http://midpoint.identicum.com/xml/ns/metaAssignment}AssignmentExtensionType[0,1],dyn,RAM,runtime)while
parsing ( {.../common/common-3}metaRelation => parser ValueParser(DOMe,
{.../common/common-3}metaRelation: STUDENT


Are we forgetting about something? Is there a way to troubleshoot if the
schema is being loaded OK?

Thanks in advance

*Ing. Martín Marchese*
Identicum S.A.
Jorge Newbery 3226
Tel: +54 (11) 4552-3050
mmarchese at identicum.com
www.identicum.com

On Thu, Jul 14, 2016 at 12:16 PM, Radovan Semancik <
radovan.semancik at evolveum.com> wrote:

> Hi,
>
> Oh yes, there is a very nice way: just use assignments.
>
> Users can have assignments for Orgs. They can have any number of
> assignments to any number of Orgs. A user can even have several assignments
> to the same org as long as there are different parameters (orgRef,
> tenantRef or any extension property). Assignments can have extension
> properties that define the type of the assignment if you need that (e.g. to
> differentiate teacher and student). Or you can use the "relation" feature
> in targetRef. We use that feature to distinguish organization managers from
> members, but it should be generic enough to also support other types
> (teacher, student). Assignments also have validity ("from" and "to" dates),
> so they are ideal to model relations with a fixed end date such as student
> affiliations to school that automatically end at the end of semester.
>
> Assignments are designed from the day 1 to handle exactly the use case
> that you are describing.
>
> --
> Radovan Semancik
> Software Architectevolveum.com
>
>
>
> On 07/12/2016 03:53 PM, Martin Marchese wrote:
>
> Hi All,
>
> We are facing a need in our MidPoint implementation. It's the case of an
> educational system (made up of many schools).
>
> We have ths schools modeled as orgTypes.
>
> Users can be part of one or more orgTypes, and they can have 1 or more
> positions in each school, for example:
>
> user1 can be a teacher and principal in school A and teacher in school B
>
> Is there a way to represent these kind of relationships between orgTypes
> and userTypes?
>
> We are looking for something like this (if it's possible):
>
> http://www.internet2.edu/products-services/trust-
> identity/eduperson-eduorg/
>
> Thanks
>
> *Ing. Martín Marchese*
> Identicum S.A.
> Anchorena 1357 PB
> Tel: +54 (11) 3526.5509
> mmarchese at identicum.com
> www.identicum.com
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161110/bff354b0/attachment.htm>


More information about the midPoint mailing list