@Component public class MiscDataUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ORG_PREFIX |
static String |
ROLE_PREFIX |
Constructor and Description |
---|
MiscDataUtil() |
Modifier and Type | Method and Description |
---|---|
static PrismContainer |
deserializeContainerFromXml(String xml,
PrismContext prismContext) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType |
deserializeObjectFromXml(String xml,
PrismContext prismContext) |
static Map<String,org.activiti.engine.form.FormProperty> |
formPropertiesAsMap(List<org.activiti.engine.form.FormProperty> properties) |
void |
generateFocusOidIfNeeded(ModelContext<?> modelContext,
ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> change) |
void |
generateProjectionOidIfNeeded(ModelContext<?> modelContext,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow,
ResourceShadowDiscriminator rsd) |
ChangesByState |
getChangesByStateForChild(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType childTask,
com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask,
ModelInteractionService modelInteractionService,
PrismContext prismContext,
OperationResult result) |
ChangesByState |
getChangesByStateForRoot(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask,
ModelInteractionService modelInteractionService,
PrismContext prismContext,
OperationResult result) |
static String |
getFocusObjectName(ModelContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> modelContext)
Retrieves focus object name from the model context.
|
static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType |
getFocusObjectNewOrOld(ModelContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> modelContext) |
static String |
getFocusObjectOid(ModelContext<?> modelContext) |
ObjectDelta |
getFocusPrimaryDelta(com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType workflowContext,
boolean mayBeNull) |
ObjectDeltaType |
getFocusPrimaryObjectDeltaType(com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType workflowContext,
boolean mayBeNull) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTreeDeltasType |
getObjectTreeDeltaType(com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType workflowContext,
boolean mayBeNull) |
Task |
getShadowTask(Map<String,Object> variables,
OperationResult result) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getUserByOid(String oid,
OperationResult result) |
String |
getUserNameByOid(String oid,
OperationResult result) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType |
groupIdToObjectReference(String groupId) |
boolean |
isAuthorizedToClaim(String taskId) |
boolean |
isAuthorizedToClaim(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem) |
boolean |
isAuthorizedToSubmit(String taskId,
String assigneeOid) |
boolean |
isAuthorizedToSubmit(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem) |
boolean |
isMemberOfActivitiGroup(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType userType,
String activitiGroupId) |
protected void |
recordChangesCanceled(ChangesByState rv,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType wfc,
PrismContext prismContext) |
protected void |
recordChangesWaitingToBeApproved(ChangesByState rv,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType wfc,
PrismContext prismContext) |
PrismObject |
resolveAndStoreObjectReference(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType ref,
OperationResult result) |
void |
resolveAssignmentTargetReferences(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> object,
OperationResult result) |
PrismObject |
resolveObjectReference(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType ref,
OperationResult result) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType |
resolveObjectReferenceName(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType ref,
OperationResult result) |
static String |
serializeContainerableToXml(Containerable containerable,
PrismContext prismContext) |
static String |
serializeObjectToXml(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object) |
static String |
serializeObjectToXml(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object,
PrismContext prismContext) |
static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType |
toObjectReferenceType(LightweightObjectRef ref) |
public static final String ROLE_PREFIX
public static final String ORG_PREFIX
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType toObjectReferenceType(LightweightObjectRef ref)
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getUserByOid(String oid, OperationResult result)
public String getUserNameByOid(String oid, OperationResult result)
public ObjectDelta getFocusPrimaryDelta(com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType workflowContext, boolean mayBeNull) throws JAXBException, SchemaException
JAXBException
SchemaException
public ObjectDeltaType getFocusPrimaryObjectDeltaType(com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType workflowContext, boolean mayBeNull) throws JAXBException, SchemaException
JAXBException
SchemaException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTreeDeltasType getObjectTreeDeltaType(com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType workflowContext, boolean mayBeNull) throws SchemaException
SchemaException
public static String serializeObjectToXml(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object)
public static String serializeObjectToXml(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object, PrismContext prismContext)
public static String serializeContainerableToXml(Containerable containerable, PrismContext prismContext)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType deserializeObjectFromXml(String xml, PrismContext prismContext)
public static PrismContainer deserializeContainerFromXml(String xml, PrismContext prismContext)
public void resolveAssignmentTargetReferences(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> object, OperationResult result)
public static String getFocusObjectName(ModelContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> modelContext)
public static String getFocusObjectOid(ModelContext<?> modelContext)
public static com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType getFocusObjectNewOrOld(ModelContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> modelContext)
public Task getShadowTask(Map<String,Object> variables, OperationResult result) throws SchemaException, ObjectNotFoundException
public boolean isAuthorizedToSubmit(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem)
public boolean isAuthorizedToClaim(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem)
public boolean isAuthorizedToClaim(String taskId)
public static Map<String,org.activiti.engine.form.FormProperty> formPropertiesAsMap(List<org.activiti.engine.form.FormProperty> properties)
public boolean isMemberOfActivitiGroup(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType userType, String activitiGroupId)
public PrismObject resolveObjectReference(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType ref, OperationResult result)
public PrismObject resolveAndStoreObjectReference(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType ref, OperationResult result)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType resolveObjectReferenceName(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType ref, OperationResult result)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType groupIdToObjectReference(String groupId)
public void generateFocusOidIfNeeded(ModelContext<?> modelContext, ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> change)
public void generateProjectionOidIfNeeded(ModelContext<?> modelContext, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadow, ResourceShadowDiscriminator rsd)
public ChangesByState getChangesByStateForChild(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType childTask, com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask, ModelInteractionService modelInteractionService, PrismContext prismContext, OperationResult result) throws SchemaException, ObjectNotFoundException
public ChangesByState getChangesByStateForRoot(com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType rootTask, ModelInteractionService modelInteractionService, PrismContext prismContext, OperationResult result) throws SchemaException, ObjectNotFoundException
protected void recordChangesWaitingToBeApproved(ChangesByState rv, com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType wfc, PrismContext prismContext) throws SchemaException
SchemaException
protected void recordChangesCanceled(ChangesByState rv, com.evolveum.midpoint.xml.ns._public.common.common_3.WfContextType wfc, PrismContext prismContext) throws SchemaException
SchemaException
Copyright © 2016 evolveum. All rights reserved.