Class MarkManager
- java.lang.Object
-
- com.evolveum.midpoint.model.common.MarkManager
-
@Component public class MarkManager extends Object
-
-
Constructor Summary
Constructors Constructor Description MarkManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<GlobalRuleWithId>
getAllEnabledMarkPolicyRules(Task task, OperationResult result)
Collects all (global) policy rules from all marks.@NotNull Collection<MarkType>
getAllEventMarks(OperationResult result)
@NotNull Collection<MarkType>
getAllMarks(OperationResult result)
@NotNull MarkType
getMark(String oid, OperationResult result)
Gets a mark by OID.@Nullable MarkType
getMarkByUri(@NotNull String uri, OperationResult result)
Gets a mark by URI.@Nullable MarkType
getMarkIfExists(String oid, OperationResult result)
Gets the mark by OID (if exists).Map<String,MarkType>
resolveMarkNames(Collection<String> markOids, OperationResult result)
Temporary
-
-
-
Method Detail
-
getMark
@NotNull public @NotNull MarkType getMark(String oid, OperationResult result) throws ObjectNotFoundException, SchemaException
Gets a mark by OID.
-
getMarkIfExists
@Nullable public @Nullable MarkType getMarkIfExists(String oid, OperationResult result) throws SchemaException
Gets the mark by OID (if exists).- Throws:
SchemaException
-
getMarkByUri
@Nullable public @Nullable MarkType getMarkByUri(@NotNull @NotNull String uri, OperationResult result) throws SchemaException, ConfigurationException
Gets a mark by URI. Note that we currently have no repo constraint disallowing multiple marks with the same URI, but check that as a configuration exception. This should be perhaps changed and enforced on DB level.
-
getAllMarks
@NotNull public @NotNull Collection<MarkType> getAllMarks(OperationResult result)
-
getAllEventMarks
@NotNull public @NotNull Collection<MarkType> getAllEventMarks(OperationResult result)
-
getAllEnabledMarkPolicyRules
@NotNull public @NotNull Collection<GlobalRuleWithId> getAllEnabledMarkPolicyRules(Task task, OperationResult result)
Collects all (global) policy rules from all marks. Adding the `markRef` in case it does not include a reference to the current mark.
-
resolveMarkNames
public Map<String,MarkType> resolveMarkNames(Collection<String> markOids, OperationResult result)
Temporary
-
-