Class MarkManager
java.lang.Object
com.evolveum.midpoint.model.common.MarkManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@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).resolveMarkNames
(Collection<String> markOids, OperationResult result) Temporary
-
Constructor Details
-
MarkManager
public MarkManager()
-
-
Method Details
-
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
-
getAllEventMarks
-
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. [EP:M:PRC] DONE, the returned values have correct origin -
resolveMarkNames
Temporary
-