Class ActivityPath
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.task.ActivityPath
-
- All Implemented Interfaces:
Serializable
public class ActivityPath extends Object implements Serializable
Object identifying an activity in the (logical) activity tree. For example, if we have a composite activity of two reconciliations (`recon-A` and `recon-B`), there are the following activity paths present: - `reconA/operationCompletion` - `reconA/resourceObjects` - `reconA/remainingShadows` - `reconB/operationCompletion` - `reconB/resourceObjects` - `reconB/remainingShadows` These paths denote the activities _regardless_ of whether they are distributed (into worker tasks), delegated (into subtasks), or both. Empty path denotes the root activity. Externalized form isActivityPathType
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ActivityPath
allExceptLast()
ActivityPath
append(String identifier)
static ActivityPath
empty()
boolean
equals(Object o)
boolean
equalsBean(ActivityPathType bean)
String
first()
static @NotNull ActivityPath
fromBean(@Nullable ActivityPathType bean)
static ActivityPath
fromId(String... identifiers)
static ActivityPath
fromList(List<String> identifiers)
@NotNull List<String>
getIdentifiers()
int
hashCode()
boolean
isEmpty()
String
last()
ActivityPath
rest()
int
size()
boolean
startsWith(ActivityPath otherPath)
ActivityPathType
toBean()
String
toDebugName()
String
toString()
-
-
-
Method Detail
-
fromBean
@NotNull public static @NotNull ActivityPath fromBean(@Nullable @Nullable ActivityPathType bean)
-
fromList
public static ActivityPath fromList(List<String> identifiers)
-
empty
public static ActivityPath empty()
-
fromId
public static ActivityPath fromId(String... identifiers)
-
isEmpty
public boolean isEmpty()
-
startsWith
public boolean startsWith(ActivityPath otherPath)
-
size
public int size()
-
first
public String first()
-
rest
public ActivityPath rest()
-
last
public String last()
-
allExceptLast
@NotNull public @NotNull ActivityPath allExceptLast()
-
append
public ActivityPath append(String identifier)
-
toBean
public ActivityPathType toBean()
-
equalsBean
public boolean equalsBean(ActivityPathType bean)
-
toDebugName
public String toDebugName()
-
-