@NotNull public static WorkItemEventCauseInformationType createCause(AbstractWorkItemActionType action) { WorkItemEventCauseInformationType cause = new WorkItemEventCauseInformationType(); cause.setType(WorkItemEventCauseTypeType.TIMED_ACTION); if (action != null) { cause.setName(action.getName()); cause.setDisplayName(action.getDisplayName()); } return cause; }
/** * Creates a new {@code WorkItemEventCauseInformationType} instance by deeply copying a given {@code WorkItemEventCauseInformationType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public WorkItemEventCauseInformationType(final WorkItemEventCauseInformationType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'WorkItemEventCauseInformationType' from 'null'."); } // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemEventCauseTypeType this.type = ((o.type == null)?null:o.getType()); // CBuiltinLeafInfo: java.lang.String this.name = ((o.name == null)?null:o.getName()); // CBuiltinLeafInfo: java.lang.String this.displayName = ((o.displayName == null)?null:o.getDisplayName()); }
/** * Create an instance of {@link WorkItemEventCauseInformationType } * */ public WorkItemEventCauseInformationType createWorkItemEventCauseInformationType() { return new WorkItemEventCauseInformationType(); }
private void executeEscalateAction(AccessCertificationCampaignType campaign, EscalateWorkItemActionType escalateAction, Task task, OperationResult result) throws SecurityViolationException, ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException { WorkItemEventCauseInformationType causeInformation = new WorkItemEventCauseInformationType() .type(WorkItemEventCauseTypeType.TIMED_ACTION) .name(escalateAction.getName()) .displayName(escalateAction.getDisplayName()); operationsHelper.escalateCampaign(campaign.getOid(), escalateAction, causeInformation, task, result); }
causeInformation == null || causeInformation.getType() == WorkItemEventCauseTypeType.USER_ACTION ? ObjectTypeUtil.createObjectRef(principal.getUser(), prismContext) : null;
public WorkItemEventCauseInformationType type(WorkItemEventCauseTypeType value) { setType(value); return this; }
public WorkItemEventCauseInformationType displayName(String value) { setDisplayName(value); return this; }
public WorkItemEventCauseInformationType name(String value) { setName(value); return this; }
/** * Create an instance of {@link WorkItemEventCauseInformationType } * */ public WorkItemEventCauseInformationType createWorkItemEventCauseInformationType() { return new WorkItemEventCauseInformationType(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public WorkItemEventCauseInformationType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final WorkItemEventCauseInformationType clone = ((WorkItemEventCauseInformationType) super.clone()); // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemEventCauseTypeType clone.type = ((this.type == null)?null:this.getType()); // CBuiltinLeafInfo: java.lang.String clone.name = ((this.name == null)?null:this.getName()); // CBuiltinLeafInfo: java.lang.String clone.displayName = ((this.displayName == null)?null:this.getDisplayName()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
cause = new WorkItemEventCauseInformationType(); cause.setType(WorkItemEventCauseTypeType.TIMED_ACTION); cause.setName(completeAction.getName()); cause.setDisplayName(completeAction.getDisplayName()); foundTimedActions++; WorkItemResultType workItemOutput = new WorkItemResultType();
/** * Create an instance of {@link WorkItemEventCauseInformationType } * */ public WorkItemEventCauseInformationType createWorkItemEventCauseInformationType() { return new WorkItemEventCauseInformationType(); }
private void appendResultAndOriginInformation(StringBuilder sb, WorkItemEvent event, OperationResult result) { boolean atLeastOne = appendResultInformation(sb, event, false); WorkItemEventCauseInformationType cause = event.getCause(); if (cause != null && cause.getType() == WorkItemEventCauseTypeType.TIMED_ACTION) { sb.append("Reason: "); if (cause.getDisplayName() != null) { sb.append(cause.getDisplayName()).append(" (timed action)"); } else if (cause.getName() != null) { sb.append(cause.getName()).append(" (timed action)"); } else { sb.append("Timed action"); } sb.append("\n"); atLeastOne = true; } else { SimpleObjectRef initiator = event.getInitiator(); if (initiator != null && !isCancelled(event)) { UserType initiatorFull = (UserType) functions.getObjectType(initiator, true, result); sb.append("Carried out by: ").append(textFormatter.formatUserName(initiatorFull, initiator.getOid())).append("\n"); atLeastOne = true; } } if (atLeastOne) { sb.append("\n"); } }
public WorkItemEventCauseInformationType beginCause() { WorkItemEventCauseInformationType value = new WorkItemEventCauseInformationType(); cause(value); return value; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { WorkItemEventCauseTypeType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theDisplayName; theDisplayName = this.getDisplayName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "displayName", theDisplayName), currentHashCode, theDisplayName); } return currentHashCode; }
public WorkItemEventCauseInformationType beginCause() { WorkItemEventCauseInformationType value = new WorkItemEventCauseInformationType(); cause(value); return value; }
lhsType = this.getType(); WorkItemEventCauseTypeType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; lhsDisplayName = this.getDisplayName(); String rhsDisplayName; rhsDisplayName = that.getDisplayName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "displayName", lhsDisplayName), LocatorUtils.property(thatLocator, "displayName", rhsDisplayName), lhsDisplayName, rhsDisplayName)) { return false;
public WorkItemEventCauseInformationType beginCause() { WorkItemEventCauseInformationType value = new WorkItemEventCauseInformationType(); cause(value); return value; }
if (cause.getType() != null) { record.addPropertyValue(WorkflowConstants.AUDIT_CAUSE_TYPE, cause.getType().value()); if (cause.getName() != null) { record.addPropertyValue(WorkflowConstants.AUDIT_CAUSE_NAME, cause.getName()); if (cause.getDisplayName() != null) { record.addPropertyValue(WorkflowConstants.AUDIT_CAUSE_DISPLAY_NAME, cause.getDisplayName());
public WorkItemEventCauseInformationType beginCause() { WorkItemEventCauseInformationType value = new WorkItemEventCauseInformationType(); cause(value); return value; }