gpt4 book ai didi

com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemEventCauseInformationType.getDisplayName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 19:45:05 28 4
gpt4 key购买 nike

本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemEventCauseInformationType.getDisplayName()方法的一些代码示例,展示了WorkItemEventCauseInformationType.getDisplayName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkItemEventCauseInformationType.getDisplayName()方法的具体详情如下:
包路径:com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemEventCauseInformationType
类名称:WorkItemEventCauseInformationType
方法名:getDisplayName

WorkItemEventCauseInformationType.getDisplayName介绍

暂无

代码示例

代码示例来源:origin: Evolveum/midpoint

/**
 * 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());
}

代码示例来源:origin: Evolveum/midpoint

/**
 * 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);
  }
}

代码示例来源:origin: Evolveum/midpoint

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");
  }
}

代码示例来源:origin: Evolveum/midpoint

record.addPropertyValue(WorkflowConstants.AUDIT_CAUSE_NAME, cause.getName());
if (cause.getDisplayName() != null) {
  record.addPropertyValue(WorkflowConstants.AUDIT_CAUSE_DISPLAY_NAME, cause.getDisplayName());

代码示例来源:origin: Evolveum/midpoint

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;
}

代码示例来源:origin: Evolveum/midpoint

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;

代码示例来源:origin: Evolveum/midpoint

assertEquals("Wrong cause type in "+c, WorkItemEventCauseTypeType.TIMED_ACTION, c.getCause().getType());
assertEquals("Wrong cause name in "+c, "auto-reject", c.getCause().getName());
assertEquals("Wrong cause display name in "+c, "Automatic rejection at deadline", c.getCause().getDisplayName());

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com