All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmdx.security.authentication1.jpa3.Credential Maven / Gradle / Ivy

// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:05:03 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
package org.openmdx.security.authentication1.jpa3;

/**
 * Abstract class Credential
 */
@SuppressWarnings("serial")
public class Credential  extends org.w3c.jpa3.AbstractObject
 implements org.openmdx.security.authentication1.cci2.Credential
{

  /**
   * Constructor
   */
  public Credential(
  ){
    // Implements Serializable
  }

  /**
   * The the object's JDO identity key
   */
   private  java.lang.String openmdxjdoIdentity;

  /**
   * Retrieve the object's JDO identity key
   * @return the value of the object's JDO identity key
   */
  @Override
  protected java.lang.String getOpenmdxjdoIdentity(
  ){
     return this.openmdxjdoIdentity;
  }

  /**
   * Set the object's JDO identity key
   */
  @Override
  protected void setOpenmdxjdoIdentity(
    String value
  ){
     this.openmdxjdoIdentity = value;
  }

  /**
   * Slice holder
   */
   private java.util.TreeMap openmdxjdoSlices = new java.util.TreeMap();

   @SuppressWarnings("unchecked")
   protected final   java.util.SortedMap openmdxjdoGetSlices(
   ){
      return (java.util.SortedMap)this.openmdxjdoSlices;
   }

// ----------------------------------------------------------------------------
// Instance/Operation
// ----------------------------------------------------------------------------
  /**
   */
  public org.openmdx.security.realm1.cci2.ValidationResult request(
      org.openmdx.security.realm1.cci2.CredentialRequestParams in
 ){
    throw new javax.jdo.JDOFatalUserException(
      "Behavioural features not handled by data object",
      new UnsupportedOperationException("Behavioural feature"),
      this
    );
  }

// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
  /**
   * Instance referenced by subject.
   */
  java.lang.String subject;

// ----------------------------------------------------------------------------
// Instance/ReferenceGetx_1NoQualifier
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the reference subject.
   * @return The non-null value for this reference.
   */
  public org.openmdx.security.realm1.cci2.Subject getSubject(
  ) {
    throw new javax.jdo.JDOFatalUserException(
      "This signature is not handled by data object",
      new UnsupportedOperationException("This signature is not handled by data object. Use getSubject_Id()."),
      this
    );
  }

  public java.lang.String getSubject_Id(
  ) {
    return this.subject;
  }

// ----------------------------------------------------------------------------
// Instance/ReferenceSetNoQualifier
// ----------------------------------------------------------------------------
  /**
   * Sets a new value for the reference subject.
   * @param subject The new non-null value for this reference.
   */
  public void setSubject(
    org.openmdx.security.realm1.cci2.Subject subject
  ){
    throw new javax.jdo.JDOFatalUserException(
      "Typed set not handled by data object",
      new UnsupportedOperationException("Use setSubject_Id() instead."),
      this
    );
  }

  public void setSubject_Id(
    java.lang.String subject
  ) {
    super.openmdxjdoMakeDirty();
    this.subject = subject;
  }

// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------

  /**
   * Attribute modifiedAt.
   */
  public java.sql.Timestamp modifiedAt;

// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the attribute modifiedAt.
   * @return The non-null value for attribute modifiedAt.
   */
  public final java.util.Date getModifiedAt(
  ){
    return org.w3c.jpa3.DateTime.toCCI(this.modifiedAt);
  }

// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------

  /**
   * Attribute createdAt.
   */
  public java.sql.Timestamp createdAt;

// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the attribute createdAt.
   * @return The non-null value for attribute createdAt.
   */
  public final java.util.Date getCreatedAt(
  ){
    return org.w3c.jpa3.DateTime.toCCI(this.createdAt);
  }


// ----------------------------------------------------------------------------
// Instance/AttributeGetList
// ----------------------------------------------------------------------------
  /**
   * Retrieves a list containing all the elements for the attribute createdBy.
   * @return A list containing all elements for this attribute.
   */
  public java.util.List getCreatedBy(
  ){
    java.util.SortedMap slices = openmdxjdoGetSlices();
    return new org.w3c.jpa3.AbstractObject.SlicedList(slices) {
      @Override
      protected java.lang.String getValue(Credential$Slice slice) {
       return slice.getCreatedBy();
      }
      @Override
      protected void setValue(Credential$Slice slice, java.lang.String value) {
        openmdxjdoMakeDirty();
        slice.setCreatedBy(value);
      }
      @Override
      protected Credential$Slice newSlice(int index) {
        return new Credential$Slice(Credential.this, index);
      }
      @Override
      protected void setSize(int size) {
        openmdxjdoMakeDirty();
        createdBy_size = size;
      }
      @Override
      public int size() {
        return createdBy_size;
      }
    };
  }

// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------

  /**
   * Attribute identity.
   */
  public java.lang.String identity;

// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the attribute identity.
   * @return The non-null value for attribute identity.
   */
  public java.lang.String getIdentity(
  ){
    return this.identity;
  }

// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nNoQuery
// ----------------------------------------------------------------------------
  /**
   * Retrieves the Collection of objects referenced by resetCredential.
   * @return The Collection of referenced objects.
   */
  public  java.util.List getResetCredential(
  ){
    throw new javax.jdo.JDOFatalUserException(
      "This signature is not handled by data object",
      new UnsupportedOperationException("This signature is not handled by data object. Use getResetCredential_Id()."),
      this
    );
  }

  public java.util.List getResetCredential_Id(
  ){
    java.util.SortedMap slices = openmdxjdoGetSlices();
    return new org.w3c.jpa3.AbstractObject.SlicedList(slices) {
      @Override
      protected java.lang.String getValue(Credential$Slice slice) {
       return slice.getResetCredential();
      }
      @Override
      protected void setValue(Credential$Slice slice, java.lang.String value) {
        openmdxjdoMakeDirty();
        slice.setResetCredential(value);
      }
      @Override
      protected Credential$Slice newSlice(int index) {
        return new Credential$Slice(Credential.this, index);
      }
      @Override
      protected void setSize(int size) {
        openmdxjdoMakeDirty();
        resetCredential_size = size;
      }
      @Override
      public int size() {
        return resetCredential_size;
      }
    };
  }

// ----------------------------------------------------------------------------
// Instance/Operation
// ----------------------------------------------------------------------------
  /**
   */
  public org.openmdx.base.cci2.Void reset(
      org.openmdx.security.authentication1.cci2.CredentialResetParams in
 ){
    throw new javax.jdo.JDOFatalUserException(
      "Behavioural features not handled by data object",
      new UnsupportedOperationException("Behavioural feature"),
      this
    );
  }


// ----------------------------------------------------------------------------
// Instance/AttributeGetList
// ----------------------------------------------------------------------------
  /**
   * Retrieves a list containing all the elements for the attribute modifiedBy.
   * @return A list containing all elements for this attribute.
   */
  public java.util.List getModifiedBy(
  ){
    java.util.SortedMap slices = openmdxjdoGetSlices();
    return new org.w3c.jpa3.AbstractObject.SlicedList(slices) {
      @Override
      protected java.lang.String getValue(Credential$Slice slice) {
       return slice.getModifiedBy();
      }
      @Override
      protected void setValue(Credential$Slice slice, java.lang.String value) {
        openmdxjdoMakeDirty();
        slice.setModifiedBy(value);
      }
      @Override
      protected Credential$Slice newSlice(int index) {
        return new Credential$Slice(Credential.this, index);
      }
      @Override
      protected void setSize(int size) {
        openmdxjdoMakeDirty();
        modifiedBy_size = size;
      }
      @Override
      public int size() {
        return modifiedBy_size;
      }
    };
  }

// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------

  /**
   * Attribute id.
   */
  public java.lang.String id;

// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the attribute id.
   * @return The non-null value for attribute id.
   */
  public final java.lang.String getId(
  ){
    return this.id;
  }

// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------

  /**
   * Attribute locked.
   */
  boolean locked;

// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the attribute locked.
   * @return The non-null value for attribute locked.
   */
  public final boolean isLocked(
  ){
    return this.locked;
  }

// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
  /**
   * Sets a new value for the attribute locked.
   * @param locked The non-null new value for attribute locked.
   */
  public void setLocked(
    boolean locked
  ){
    super.openmdxjdoMakeDirty();
    this.locked = locked;
  }

// ----------------------------------------------------------------------------
// Instance/Operation
// ----------------------------------------------------------------------------
  /**
   */
  public org.openmdx.security.realm1.cci2.ValidationResult validate(
      org.openmdx.security.realm1.cci2.CredentialValidateParams in
 ){
    throw new javax.jdo.JDOFatalUserException(
      "Behavioural features not handled by data object",
      new UnsupportedOperationException("Behavioural feature"),
      this
    );
  }

// ----------------------------------------------------------------------------
// Instance/End
// ----------------------------------------------------------------------------

// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------

    /**
     * Number of elements of attribute createdBy
     */
    int createdBy_size;

// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------

    /**
     * Number of elements of attribute resetCredential
     */
    int resetCredential_size;

// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------

    /**
     * Number of elements of attribute modifiedBy
     */
    int modifiedBy_size;


// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:05:03 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
  /**
   * Instance referenced by segment.
   */
  java.lang.String segment;

// ----------------------------------------------------------------------------
// Instance/ReferenceSetNoQualifier
// ----------------------------------------------------------------------------
  /**
   * Sets a new value for the reference segment.
   * @param segment The new non-null value for this reference.
   */
  public void setSegment(
    org.openmdx.security.authentication1.jpa3.Segment segment
  ){
    throw new javax.jdo.JDOFatalUserException(
      "Typed set not handled by data object",
      new UnsupportedOperationException("Use setSegment_Id() instead."),
      this
    );
  }

  public void setSegment_Id(
    java.lang.String segment
  ) {
    super.openmdxjdoMakeDirty();
    this.segment = segment;
  }

// ----------------------------------------------------------------------------
// Instance/Containment
// ----------------------------------------------------------------------------

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy