Class ObjectCategorisationCache
java.lang.Object
com.evolveum.midpoint.common.mining.objects.analysis.cache.ObjectCategorisationCache
A cache for categorizing roles, users, and focus objects
based on their identified characteristics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInsufficientCategory
(@NotNull RoleAnalysisOptionType analysisOption) build
(RoleAnalysisSessionType sessionObject) Builds the RoleAnalysisIdentifiedCharacteristicsType container by aggregating the categorized items from roles, users, and focus maps.void
clear()
Clears all cached categories.getCategory
(String oid, QName type) Retrieves the category for the specified object type and OID.void
markExcludedObjects
(@NotNull RoleAnalysisSessionType sessionObject) Marks objects as excluded based on the analysis options and manually unwanted objects.void
putAllCategory
(@NotNull Set<String> oids, RoleAnalysisObjectCategorizationType category, QName type) void
putCategory
(String oid, RoleAnalysisObjectCategorizationType category, QName type) Adds a category to the specified object type (Role, User, or Focus).void
putMultipleCategories
(String oid, QName type, RoleAnalysisObjectCategorizationType... categories) updateUnPopularityIdentifiedChar
(@NotNull RoleAnalysisSessionType session)
-
Constructor Details
-
ObjectCategorisationCache
public ObjectCategorisationCache()
-
-
Method Details
-
putCategory
Adds a category to the specified object type (Role, User, or Focus).- Parameters:
oid
- The OID of the object.category
- The category to add.type
- The type of the object (RoleType, UserType, FocusType).
-
putMultipleCategories
public void putMultipleCategories(String oid, QName type, RoleAnalysisObjectCategorizationType... categories) -
putAllCategory
public void putAllCategory(@NotNull @NotNull Set<String> oids, RoleAnalysisObjectCategorizationType category, QName type) -
getCategory
Retrieves the category for the specified object type and OID.- Parameters:
oid
- The OID of the object.type
- The type of the object (RoleType, UserType, FocusType).- Returns:
- The characteristics item for the given OID and type.
-
clear
public void clear()Clears all cached categories. -
build
Builds the RoleAnalysisIdentifiedCharacteristicsType container by aggregating the categorized items from roles, users, and focus maps.- Parameters:
sessionObject
- The RoleAnalysisSessionType containing session data.- Returns:
- The RoleAnalysisIdentifiedCharacteristicsType container with categorized items.
-
markExcludedObjects
Marks objects as excluded based on the analysis options and manually unwanted objects.- Parameters:
sessionObject
- The session object containing the analysis options and identified characteristics.
-
addInsufficientCategory
-
getUnpopularRoles
-
getUnpopularUsers
-
updateUnPopularityIdentifiedChar
public RoleAnalysisIdentifiedCharacteristicsType updateUnPopularityIdentifiedChar(@NotNull @NotNull RoleAnalysisSessionType session)
-