congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GlobalAttributeDefinitionCreateRequest.getGlobalAttributeDefinitionKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getGlobalAttributeDefinitionKey
method
in
org.finra.herd.model.api.xml.GlobalAttributeDefinitionCreateRequest

Best Java code snippets using org.finra.herd.model.api.xml.GlobalAttributeDefinitionCreateRequest.getGlobalAttributeDefinitionKey (Showing top 16 results out of 315)

origin: FINRAOS/herd

/**
 * Validates the global Attribute Definition create request. This method also trims the request parameters. Currently only format level is supported
 *
 * @param request the global Attribute Definition create request
 *
 * @throws IllegalArgumentException throws exception if any other level other than format is specified
 */
private void validateGlobalAttributeDefinitionCreateRequest(GlobalAttributeDefinitionCreateRequest request)
{
  Assert.notNull(request, "A global attribute definition create request must be specified.");
  globalAttributeDefinitionHelper.validateGlobalAttributeDefinitionKey(request.getGlobalAttributeDefinitionKey());
  if (!GlobalAttributeDefinitionLevelEntity.GlobalAttributeDefinitionLevels.BUS_OBJCT_FRMT.name()
    .equalsIgnoreCase(request.getGlobalAttributeDefinitionKey().getGlobalAttributeDefinitionLevel()))
  {
    throw new IllegalArgumentException(String.format("Global attribute definition with level \"%s\" is not supported.",
      request.getGlobalAttributeDefinitionKey().getGlobalAttributeDefinitionLevel()));
  }
  if (request.getAttributeValueListKey() != null)
  {
    attributeValueListHelper.validateAttributeValueListKey(request.getAttributeValueListKey());
  }
}
origin: org.finra.herd/herd-service

/**
 * Validates the global Attribute Definition create request. This method also trims the request parameters. Currently only format level is supported
 *
 * @param request the global Attribute Definition create request
 *
 * @throws IllegalArgumentException throws exception if any other level other than format is specified
 */
private void validateGlobalAttributeDefinitionCreateRequest(GlobalAttributeDefinitionCreateRequest request)
{
  Assert.notNull(request, "A global attribute definition create request must be specified.");
  globalAttributeDefinitionHelper.validateGlobalAttributeDefinitionKey(request.getGlobalAttributeDefinitionKey());
  if (!GlobalAttributeDefinitionLevelEntity.GlobalAttributeDefinitionLevels.BUS_OBJCT_FRMT.name()
    .equalsIgnoreCase(request.getGlobalAttributeDefinitionKey().getGlobalAttributeDefinitionLevel()))
  {
    throw new IllegalArgumentException(String.format("Global attribute definition with level \"%s\" is not supported.",
      request.getGlobalAttributeDefinitionKey().getGlobalAttributeDefinitionLevel()));
  }
  if (request.getAttributeValueListKey() != null)
  {
    attributeValueListHelper.validateAttributeValueListKey(request.getAttributeValueListKey());
  }
}
origin: FINRAOS/herd

public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
  {
    GlobalAttributeDefinitionKey theGlobalAttributeDefinitionKey;
    theGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    strategy.appendField(locator, this, "globalAttributeDefinitionKey", buffer, theGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null));
  }
  {
    AttributeValueListKey theAttributeValueListKey;
    theAttributeValueListKey = this.getAttributeValueListKey();
    strategy.appendField(locator, this, "attributeValueListKey", buffer, theAttributeValueListKey, (this.attributeValueListKey!= null));
  }
  return buffer;
}
origin: org.finra.herd/herd-model-api

public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
  {
    GlobalAttributeDefinitionKey theGlobalAttributeDefinitionKey;
    theGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    strategy.appendField(locator, this, "globalAttributeDefinitionKey", buffer, theGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null));
  }
  {
    AttributeValueListKey theAttributeValueListKey;
    theAttributeValueListKey = this.getAttributeValueListKey();
    strategy.appendField(locator, this, "attributeValueListKey", buffer, theAttributeValueListKey, (this.attributeValueListKey!= null));
  }
  return buffer;
}
origin: FINRAOS/herd

public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
  {
    GlobalAttributeDefinitionKey theGlobalAttributeDefinitionKey;
    theGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    strategy.appendField(locator, this, "globalAttributeDefinitionKey", buffer, theGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null));
  }
  {
    AttributeValueListKey theAttributeValueListKey;
    theAttributeValueListKey = this.getAttributeValueListKey();
    strategy.appendField(locator, this, "attributeValueListKey", buffer, theAttributeValueListKey, (this.attributeValueListKey!= null));
  }
  return buffer;
}
origin: org.finra.herd/herd-service

@Override
public GlobalAttributeDefinition createGlobalAttributeDefinition(GlobalAttributeDefinitionCreateRequest request)
{
  // Validate and trim the request parameters.
  validateGlobalAttributeDefinitionCreateRequest(request);
  // Validate the global Attribute Definition entity does not already exist in the database.
  globalAttributeDefinitionDaoHelper.validateGlobalAttributeDefinitionNoExists(request.getGlobalAttributeDefinitionKey());
  //Get the existing global Attribute Definition level entity
  GlobalAttributeDefinitionLevelEntity globalAttributeDefinitionLevelEntity =
    globalAttributeDefinitionLevelDao.getGlobalAttributeDefinitionLevel(request.getGlobalAttributeDefinitionKey().getGlobalAttributeDefinitionLevel());
  AttributeValueListEntity attributeValueListEntity = null;
  //Get the attribute value list if the attribute value key exists
  if (request.getAttributeValueListKey() != null)
  {
    //Get the existing attribute list and ensure it exists
    attributeValueListEntity = attributeValueListDaoHelper.getAttributeValueListEntity(request.getAttributeValueListKey());
  }
  // Create and persist a new global Attribute Definition entity from the request information.
  GlobalAttributeDefinitionEntity globalAttributeDefinitionEntity =
    createGlobalAttributeDefinitionEntity(request.getGlobalAttributeDefinitionKey(), globalAttributeDefinitionLevelEntity, attributeValueListEntity);
  // Create and return the global Attribute Definition object from the persisted entity.
  return createGlobalAttributeDefinitionFromEntity(globalAttributeDefinitionEntity);
}
origin: FINRAOS/herd

@Override
public GlobalAttributeDefinition createGlobalAttributeDefinition(GlobalAttributeDefinitionCreateRequest request)
{
  // Validate and trim the request parameters.
  validateGlobalAttributeDefinitionCreateRequest(request);
  // Validate the global Attribute Definition entity does not already exist in the database.
  globalAttributeDefinitionDaoHelper.validateGlobalAttributeDefinitionNoExists(request.getGlobalAttributeDefinitionKey());
  //Get the existing global Attribute Definition level entity
  GlobalAttributeDefinitionLevelEntity globalAttributeDefinitionLevelEntity =
    globalAttributeDefinitionLevelDao.getGlobalAttributeDefinitionLevel(request.getGlobalAttributeDefinitionKey().getGlobalAttributeDefinitionLevel());
  AttributeValueListEntity attributeValueListEntity = null;
  //Get the attribute value list if the attribute value key exists
  if (request.getAttributeValueListKey() != null)
  {
    //Get the existing attribute list and ensure it exists
    attributeValueListEntity = attributeValueListDaoHelper.getAttributeValueListEntity(request.getAttributeValueListKey());
  }
  // Create and persist a new global Attribute Definition entity from the request information.
  GlobalAttributeDefinitionEntity globalAttributeDefinitionEntity =
    createGlobalAttributeDefinitionEntity(request.getGlobalAttributeDefinitionKey(), globalAttributeDefinitionLevelEntity, attributeValueListEntity);
  // Create and return the global Attribute Definition object from the persisted entity.
  return createGlobalAttributeDefinitionFromEntity(globalAttributeDefinitionEntity);
}
origin: FINRAOS/herd

public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
  if ((object == null)||(this.getClass()!= object.getClass())) {
    return false;
  }
  if (this == object) {
    return true;
  }
  final GlobalAttributeDefinitionCreateRequest that = ((GlobalAttributeDefinitionCreateRequest) object);
  {
    GlobalAttributeDefinitionKey lhsGlobalAttributeDefinitionKey;
    lhsGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    GlobalAttributeDefinitionKey rhsGlobalAttributeDefinitionKey;
    rhsGlobalAttributeDefinitionKey = that.getGlobalAttributeDefinitionKey();
    if (!strategy.equals(LocatorUtils.property(thisLocator, "globalAttributeDefinitionKey", lhsGlobalAttributeDefinitionKey), LocatorUtils.property(thatLocator, "globalAttributeDefinitionKey", rhsGlobalAttributeDefinitionKey), lhsGlobalAttributeDefinitionKey, rhsGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null), (that.globalAttributeDefinitionKey!= null))) {
      return false;
    }
  }
  {
    AttributeValueListKey lhsAttributeValueListKey;
    lhsAttributeValueListKey = this.getAttributeValueListKey();
    AttributeValueListKey rhsAttributeValueListKey;
    rhsAttributeValueListKey = that.getAttributeValueListKey();
    if (!strategy.equals(LocatorUtils.property(thisLocator, "attributeValueListKey", lhsAttributeValueListKey), LocatorUtils.property(thatLocator, "attributeValueListKey", rhsAttributeValueListKey), lhsAttributeValueListKey, rhsAttributeValueListKey, (this.attributeValueListKey!= null), (that.attributeValueListKey!= null))) {
      return false;
    }
  }
  return true;
}
origin: org.finra.herd/herd-model-api

public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
  if ((object == null)||(this.getClass()!= object.getClass())) {
    return false;
  }
  if (this == object) {
    return true;
  }
  final GlobalAttributeDefinitionCreateRequest that = ((GlobalAttributeDefinitionCreateRequest) object);
  {
    GlobalAttributeDefinitionKey lhsGlobalAttributeDefinitionKey;
    lhsGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    GlobalAttributeDefinitionKey rhsGlobalAttributeDefinitionKey;
    rhsGlobalAttributeDefinitionKey = that.getGlobalAttributeDefinitionKey();
    if (!strategy.equals(LocatorUtils.property(thisLocator, "globalAttributeDefinitionKey", lhsGlobalAttributeDefinitionKey), LocatorUtils.property(thatLocator, "globalAttributeDefinitionKey", rhsGlobalAttributeDefinitionKey), lhsGlobalAttributeDefinitionKey, rhsGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null), (that.globalAttributeDefinitionKey!= null))) {
      return false;
    }
  }
  {
    AttributeValueListKey lhsAttributeValueListKey;
    lhsAttributeValueListKey = this.getAttributeValueListKey();
    AttributeValueListKey rhsAttributeValueListKey;
    rhsAttributeValueListKey = that.getAttributeValueListKey();
    if (!strategy.equals(LocatorUtils.property(thisLocator, "attributeValueListKey", lhsAttributeValueListKey), LocatorUtils.property(thatLocator, "attributeValueListKey", rhsAttributeValueListKey), lhsAttributeValueListKey, rhsAttributeValueListKey, (this.attributeValueListKey!= null), (that.attributeValueListKey!= null))) {
      return false;
    }
  }
  return true;
}
origin: FINRAOS/herd

public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
  if ((object == null)||(this.getClass()!= object.getClass())) {
    return false;
  }
  if (this == object) {
    return true;
  }
  final GlobalAttributeDefinitionCreateRequest that = ((GlobalAttributeDefinitionCreateRequest) object);
  {
    GlobalAttributeDefinitionKey lhsGlobalAttributeDefinitionKey;
    lhsGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    GlobalAttributeDefinitionKey rhsGlobalAttributeDefinitionKey;
    rhsGlobalAttributeDefinitionKey = that.getGlobalAttributeDefinitionKey();
    if (!strategy.equals(LocatorUtils.property(thisLocator, "globalAttributeDefinitionKey", lhsGlobalAttributeDefinitionKey), LocatorUtils.property(thatLocator, "globalAttributeDefinitionKey", rhsGlobalAttributeDefinitionKey), lhsGlobalAttributeDefinitionKey, rhsGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null), (that.globalAttributeDefinitionKey!= null))) {
      return false;
    }
  }
  {
    AttributeValueListKey lhsAttributeValueListKey;
    lhsAttributeValueListKey = this.getAttributeValueListKey();
    AttributeValueListKey rhsAttributeValueListKey;
    rhsAttributeValueListKey = that.getAttributeValueListKey();
    if (!strategy.equals(LocatorUtils.property(thisLocator, "attributeValueListKey", lhsAttributeValueListKey), LocatorUtils.property(thatLocator, "attributeValueListKey", rhsAttributeValueListKey), lhsAttributeValueListKey, rhsAttributeValueListKey, (this.attributeValueListKey!= null), (that.attributeValueListKey!= null))) {
      return false;
    }
  }
  return true;
}
origin: FINRAOS/herd

public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
  int currentHashCode = 1;
  {
    GlobalAttributeDefinitionKey theGlobalAttributeDefinitionKey;
    theGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "globalAttributeDefinitionKey", theGlobalAttributeDefinitionKey), currentHashCode, theGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null));
  }
  {
    AttributeValueListKey theAttributeValueListKey;
    theAttributeValueListKey = this.getAttributeValueListKey();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributeValueListKey", theAttributeValueListKey), currentHashCode, theAttributeValueListKey, (this.attributeValueListKey!= null));
  }
  return currentHashCode;
}
origin: FINRAOS/herd

public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
  int currentHashCode = 1;
  {
    GlobalAttributeDefinitionKey theGlobalAttributeDefinitionKey;
    theGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "globalAttributeDefinitionKey", theGlobalAttributeDefinitionKey), currentHashCode, theGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null));
  }
  {
    AttributeValueListKey theAttributeValueListKey;
    theAttributeValueListKey = this.getAttributeValueListKey();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributeValueListKey", theAttributeValueListKey), currentHashCode, theAttributeValueListKey, (this.attributeValueListKey!= null));
  }
  return currentHashCode;
}
origin: org.finra.herd/herd-model-api

public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
  int currentHashCode = 1;
  {
    GlobalAttributeDefinitionKey theGlobalAttributeDefinitionKey;
    theGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "globalAttributeDefinitionKey", theGlobalAttributeDefinitionKey), currentHashCode, theGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null));
  }
  {
    AttributeValueListKey theAttributeValueListKey;
    theAttributeValueListKey = this.getAttributeValueListKey();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributeValueListKey", theAttributeValueListKey), currentHashCode, theAttributeValueListKey, (this.attributeValueListKey!= null));
  }
  return currentHashCode;
}
origin: FINRAOS/herd

if (globalAttributeDefinitionKeyShouldBeCopiedAndSet == Boolean.TRUE) {
  GlobalAttributeDefinitionKey sourceGlobalAttributeDefinitionKey;
  sourceGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
  GlobalAttributeDefinitionKey copyGlobalAttributeDefinitionKey = ((GlobalAttributeDefinitionKey) strategy.copy(LocatorUtils.property(locator, "globalAttributeDefinitionKey", sourceGlobalAttributeDefinitionKey), sourceGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null)));
  copy.setGlobalAttributeDefinitionKey(copyGlobalAttributeDefinitionKey);
origin: org.finra.herd/herd-model-api

if (globalAttributeDefinitionKeyShouldBeCopiedAndSet == Boolean.TRUE) {
  GlobalAttributeDefinitionKey sourceGlobalAttributeDefinitionKey;
  sourceGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
  GlobalAttributeDefinitionKey copyGlobalAttributeDefinitionKey = ((GlobalAttributeDefinitionKey) strategy.copy(LocatorUtils.property(locator, "globalAttributeDefinitionKey", sourceGlobalAttributeDefinitionKey), sourceGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null)));
  copy.setGlobalAttributeDefinitionKey(copyGlobalAttributeDefinitionKey);
origin: FINRAOS/herd

if (globalAttributeDefinitionKeyShouldBeCopiedAndSet == Boolean.TRUE) {
  GlobalAttributeDefinitionKey sourceGlobalAttributeDefinitionKey;
  sourceGlobalAttributeDefinitionKey = this.getGlobalAttributeDefinitionKey();
  GlobalAttributeDefinitionKey copyGlobalAttributeDefinitionKey = ((GlobalAttributeDefinitionKey) strategy.copy(LocatorUtils.property(locator, "globalAttributeDefinitionKey", sourceGlobalAttributeDefinitionKey), sourceGlobalAttributeDefinitionKey, (this.globalAttributeDefinitionKey!= null)));
  copy.setGlobalAttributeDefinitionKey(copyGlobalAttributeDefinitionKey);
org.finra.herd.model.api.xmlGlobalAttributeDefinitionCreateRequestgetGlobalAttributeDefinitionKey

Javadoc

Gets the value of the globalAttributeDefinitionKey property.

Popular methods of GlobalAttributeDefinitionCreateRequest

  • <init>
    Fully-initialising value constructor
  • getAttributeValueListKey
    Gets the value of the attributeValueListKey property.
  • append
  • appendFields
  • copyTo
  • createNewInstance
  • equals
  • hashCode
  • setAttributeValueListKey
    Sets the value of the attributeValueListKey property.
  • setGlobalAttributeDefinitionKey
    Sets the value of the globalAttributeDefinitionKey property.

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now