# Display of idxuserrole_relations.xml File

## Information Taken from /u01/install/APPS/fs1/FMW_Home/user_projects/domains/Discoverer/config/fmwconfig/carml/idxuserrole_relations.xml

     -rw-r----- 1 applmgr oinstall 5807  Jun 12 18:19 2015  Feb 25 22:35 2013  idxuserrole_relations.xml

    <?xml version="1.0" encoding="UTF-8"?>

    <EntityRelations>

        <Relations>
            <Relation Name="RoleMembers_role"
                      FromEntity="Role" FromAttr="member" ToEntity="Role" ToAttr="subjectname" Reversible="true"/>
            <Relation Name="RoleMembers_user"
                      FromEntity="Role" FromAttr="member" ToEntity="User" ToAttr="subjectname" Reversible="true"/>
            <Relation Name="RoleOwners_role"
                      FromEntity="Role" FromAttr="owner" ToEntity="Role" ToAttr="subjectname" Reversible="true"/>
            <Relation Name="RoleOwners_user"
                      FromEntity="Role" FromAttr="owner" ToEntity="User" ToAttr="subjectname" Reversible="true"/>
            <Relation Name="UserManager"
                      FromEntity="User" FromAttr="manager" ToEntity="User" ToAttr="subjectname" Reversible="true"/>
        </Relations>

        <NestedRelations>
            <NestedRelation Name="RoleMembers">
                <RelationRef Name="RoleMembers_role" Recursive="true">
                    <RelationRef Name="RoleMembers_user"/>
                </RelationRef>
                <RelationRef Name="RoleMembers_user"/>
            </NestedRelation>

            <NestedRelation Name="RoleOwners">
                <RelationRef Name="RoleOwners_role">
                    <RelationRef Name="RoleMembers"/>
                </RelationRef>
                <RelationRef Name="RoleOwners_user"/>
            </NestedRelation>

        </NestedRelations>

        <Methods>
            <!-- List<User> getManagementChain(User user, int levels, String manager, String title) -->
            <Method Name="getManagementChain" Description="Get Management Chain">
                <RelationRef Name="UserManager" Recursive="true"/>
                <InputEntity EntityName="User"/>
                <ReturnEntity EntityName="User"/>
                <InputFilter Match="any">
                    <AttributeFilter Name="manager"/>
                    <AttributeFilter Name="title"/>
                </InputFilter>
            </Method>

            <!-- List<User> getReportees(User user, int levels) -->
            <Method Name="getReportees" Description="Get Reportees">
                <RelationRef Name="UserManager" Recursive="true" Reverse="true"/>
                <InputEntity EntityName="User"/>
                <ReturnEntity EntityName="User"/>
            </Method>

            <!-- List<User> getGrantees(Role role, int levels, UserManager usermanager) -->
            <Method Name="getGrantees" Description="Get members of a role">
                <RelationRef Name="RoleMembers"/>
                <InputEntity EntityName="Role"/>
                <ReturnEntity EntityName="User"/>
            </Method>

            <!-- List<String> getGranteeNames(Role role, int levels) -->
            <Method Name="getGranteeNames" Description="Get member names of a role">
                <RelationRef Name="RoleMembers"/>
                <InputEntity EntityName="Role"/>
                <ReturnEntity EntityName="User" AttrName="subjectname"/>
                <ReturnEntity EntityName="Role" AttrName="subjectname"/>
            </Method>

            <!-- List<Object> getMembersandRoles(Role role, int levels, UserManager usermanager) -->
            <Method Name="getMembersandRoles" Description="Get members and subroles of a role">
                <RelationRef Name="RoleMembers"/>
                <InputEntity EntityName="Role"/>
                <ReturnEntity EntityName="User"/>
                <ReturnEntity EntityName="Role"/>
            </Method>

            <!-- List<Role> getGrantedRoles(User user, int levels) -->
            <!-- List<Role> getGrantedRoles(Role role, int levels) -->
            <Method Name="getGrantedRoles" Description="Get granted roles of a member">
                <RelationRef Name="RoleMembers" Reverse="true"/>
                <InputEntity EntityName="User"/>
                <InputEntity EntityName="Role"/>
                <ReturnEntity EntityName="Role"/>
            </Method>

            <!-- List<User> getOwners(Role role, int levels, UserManager usermanager) -->
            <Method Name="getOwners" Description="Get owners of a role">
                <RelationRef Name="RoleOwners"/>
                <InputEntity EntityName="Role"/>
                <ReturnEntity EntityName="User"/>
            </Method>

            <!-- List<User> getOwnedRoles(User user, int levels) -->
            <!-- List<User> getOwnedRoles(Role role, int levels) -->
            <Method Name="getOwnedRoles" Description="Get owned roles of an user/role">
                <RelationRef Name="RoleOwners" Reverse="true"/>
                <InputEntity EntityName="User"/>
                <InputEntity EntityName="Role"/>
                <ReturnEntity EntityName="Role"/>
            </Method>

        </Methods>

        <BooleanMethods>
            <!-- boolean isManager(User user, User usermanager, boolean direct) -->
            <BooleanMethod Name="isManager" Description="Return true if user2 is manager of user1">
                <RelationRef Name="UserManager" Recursive="true" Reverse="true"/>
                <InputEntity EntityName="User"/>
            </BooleanMethod>

            <!-- boolean isMember(Role role, User rolemember, boolean direct) -->
            <!-- boolean isMember(Role role, Role rolemember, boolean direct) -->
            <BooleanMethod Name="isMember" Description="Return TRUE if inputMember is a member of a role">
                <RelationRef Name="RoleMembers" Reverse="true"/>
                <InputEntity EntityName="User"/>
                <InputEntity EntityName="Role"/>
            </BooleanMethod>

            <!-- boolean isOwner(Role role, User roleowner, boolean direct) -->
            <!-- boolean isOwner(Role role, Role roleowner, boolean direct) -->
            <BooleanMethod Name="isOwner" Description="Return TRUE if inputOwner is owner of a role">
                <RelationRef Name="RoleOwners" Reverse="true"/>
                <InputEntity EntityName="User"/>
                <InputEntity EntityName="Role"/>
            </BooleanMethod>

        </BooleanMethods>

    </EntityRelations>

Back to top