-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements for role mining functionality
1. Adding basic structures needed for role-mining analysis. 2. Adding the initial functions needed to analyze role-mining in terms of permissions.
- Loading branch information
1 parent
4a1d664
commit dbf2d9f
Showing
17 changed files
with
2,131 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/mining/PAStructure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/* | ||
* Copyright (C) 2010-2022 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.gui.api.component.mining; | ||
|
||
import com.evolveum.midpoint.prism.PrismObject; | ||
import com.evolveum.midpoint.web.component.util.Selectable; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType; | ||
|
||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class PAStructure extends Selectable<RoleMiningStructureList> implements Serializable { | ||
|
||
|
||
public static final String F_NAME = "roleObject"; | ||
public static final String F_ROLE_MEMBERS_OID_LIST = "roleMembers"; | ||
public static final String F_TOTAL_RESULT = "objectTotalResult"; | ||
public static final String F_RESULT_ARRAY = "objectPartialResult"; | ||
public static final String F_STATIC_INDEX = "staticIndex"; | ||
public static final String F_AUTHORIZATION = "authorizationTypeList"; | ||
|
||
PrismObject<RoleType> roleObject; | ||
List<AuthorizationType> authorizationTypeList; | ||
List<PrismObject<UserType>> roleMembers; | ||
double objectTotalResult; | ||
ArrayList<Double> objectPartialResult; | ||
int staticIndex; | ||
|
||
public PAStructure(PrismObject<RoleType> roleObject, List<PrismObject<UserType>> roleMembers, | ||
double objectTotalResult, ArrayList<Double> objectPartialResult,List<AuthorizationType> authorizationTypeList, int staticIndex) { | ||
this.roleObject = roleObject; | ||
this.roleMembers = roleMembers; | ||
this.objectTotalResult = objectTotalResult; | ||
this.objectPartialResult = objectPartialResult; | ||
this.authorizationTypeList = authorizationTypeList; | ||
this.staticIndex = staticIndex; | ||
} | ||
|
||
public PrismObject<RoleType> getRoleObject() { | ||
return roleObject; | ||
} | ||
|
||
public void setRoleObject(PrismObject<RoleType> roleObject) { | ||
this.roleObject = roleObject; | ||
} | ||
|
||
public List<PrismObject<UserType>> getRoleMembers() { | ||
return roleMembers; | ||
} | ||
|
||
public void setRoleMembers(List<PrismObject<UserType>> roleMembers) { | ||
this.roleMembers = roleMembers; | ||
} | ||
|
||
public double getObjectTotalResult() { | ||
return objectTotalResult; | ||
} | ||
|
||
public void setObjectTotalResult(double objectTotalResult) { | ||
this.objectTotalResult = objectTotalResult; | ||
} | ||
|
||
public ArrayList<Double> getObjectPartialResult() { | ||
return objectPartialResult; | ||
} | ||
|
||
public void setObjectPartialResult(ArrayList<Double> objectPartialResult) { | ||
this.objectPartialResult = objectPartialResult; | ||
} | ||
|
||
public int getStaticIndex() { | ||
return staticIndex; | ||
} | ||
|
||
public void setStaticIndex(int staticIndex) { | ||
this.staticIndex = staticIndex; | ||
} | ||
|
||
public List<AuthorizationType> getAuthorizationTypeList() { | ||
return authorizationTypeList; | ||
} | ||
|
||
public void setAuthorizationTypeList(List<AuthorizationType> authorizationTypeList) { | ||
this.authorizationTypeList = authorizationTypeList; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.