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

org.openmdx.security.realm1.jpa3.Principal 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.realm1.jpa3;

/**
 * Class Principal
 */
@SuppressWarnings("serial")
public class Principal  extends org.w3c.jpa3.AbstractObject
 implements org.openmdx.security.realm1.cci2.Principal
{

  /**
   * Constructor
   */
  public Principal(
  ){
    // 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/ReferenceDeclaration
// ----------------------------------------------------------------------------
  /**
   * Instance referenced by subject.
   */
  java.lang.String subject;

// ----------------------------------------------------------------------------
// Instance/ReferenceGetx_1NoQualifier
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the reference subject.
   * @return The – possibly 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 – possibly 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 description.
   */
  java.lang.String description;

// ----------------------------------------------------------------------------
// Instance/AttributeGet0_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the possibly null value for the optional attribute description.
   * @return The possibly null value for attribute description.
   */
  public final java.lang.String getDescription(
  ){
    return this.description;
  }

// ----------------------------------------------------------------------------
// Instance/AttributeSet0_1
// ----------------------------------------------------------------------------

  /**
   * Sets a new value for the attribute description.
   * @param description The possibly null new value for attribute description.
   */
  public void setDescription(
    java.lang.String description
  ){
    super.openmdxjdoMakeDirty();
    this.description = 
description;
  }

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

  /**
   * Attribute type.
   */
  java.lang.Short type;

// ----------------------------------------------------------------------------
// Instance/AttributeGet0_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the possibly null value for the optional attribute type.
   * @return The possibly null value for attribute type.
   */
  public final java.lang.Short getType(
  ){
    return this.type;
  }

// ----------------------------------------------------------------------------
// Instance/AttributeSet0_1
// ----------------------------------------------------------------------------

  /**
   * Sets a new value for the attribute type.
   * @param type The possibly null new value for attribute type.
   */
  public void setType(
    java.lang.Short type
  ){
    super.openmdxjdoMakeDirty();
    this.type = 
type;
  }

// ----------------------------------------------------------------------------
// 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/ReferenceDeclaration
// ----------------------------------------------------------------------------
  /**
   * Instance referenced by credential.
   */
  java.lang.String credential;

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

  public java.lang.String getCredential_Id(
  ) {
    return this.credential;
  }

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

  public void setCredential_Id(
    java.lang.String credential
  ) {
    super.openmdxjdoMakeDirty();
    this.credential = credential;
  }


// ----------------------------------------------------------------------------
// 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(Principal$Slice slice) {
       return slice.getCreatedBy();
      }
      @Override
      protected void setValue(Principal$Slice slice, java.lang.String value) {
        openmdxjdoMakeDirty();
        slice.setCreatedBy(value);
      }
      @Override
      protected Principal$Slice newSlice(int index) {
        return new Principal$Slice(Principal.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 authCredential.
   * @return The Collection of referenced objects.
   */
  public  java.util.List getAuthCredential(
  ){
    throw new javax.jdo.JDOFatalUserException(
      "This signature is not handled by data object",
      new UnsupportedOperationException("This signature is not handled by data object. Use getAuthCredential_Id()."),
      this
    );
  }

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

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

  /**
   * Attribute name.
   */
  java.lang.String name;

// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
  /**
   * Retrieves the value for the attribute name.
   * 

* This attribute is usually derived from the Principal's ObjectId. * @return The non-null value for attribute name. */ public final java.lang.String getName( ){ return this.name; } // ---------------------------------------------------------------------------- // Instance/AttributeSet1_1 // ---------------------------------------------------------------------------- /** * Sets a new value for the attribute name. *

* This attribute is usually derived from the Principal's ObjectId. * @param name The non-null new value for attribute name. */ public void setName( java.lang.String name ){ super.openmdxjdoMakeDirty(); this.name = name; } // ---------------------------------------------------------------------------- // Instance/DeclareValue // ---------------------------------------------------------------------------- /** * Attribute disabled. */ java.lang.Boolean disabled; // ---------------------------------------------------------------------------- // Instance/AttributeGet0_1 // ---------------------------------------------------------------------------- /** * Retrieves the possibly null value for the optional attribute disabled. * @return The possibly null value for attribute disabled. */ public final java.lang.Boolean isDisabled( ){ return this.disabled; } // ---------------------------------------------------------------------------- // Instance/AttributeSet0_1 // ---------------------------------------------------------------------------- /** * Sets a new value for the attribute disabled. * @param disabled The possibly null new value for attribute disabled. */ public void setDisabled( java.lang.Boolean disabled ){ super.openmdxjdoMakeDirty(); this.disabled = disabled; } // ---------------------------------------------------------------------------- // Instance/ReferenceDeclaration // ---------------------------------------------------------------------------- /** * Instance referenced by realm. */ java.lang.String realm; // ---------------------------------------------------------------------------- // Instance/ReferenceGetx_1NoQualifier // ---------------------------------------------------------------------------- /** * Retrieves the value for the reference realm. * @return The non-null value for this reference. */ public org.openmdx.security.realm1.cci2.Realm getRealm( ) { throw new javax.jdo.JDOFatalUserException( "This signature is not handled by data object", new UnsupportedOperationException("This signature is not handled by data object. Use getRealm_Id()."), this ); } public java.lang.String getRealm_Id( ) { return this.realm; } // ---------------------------------------------------------------------------- // Instance/ReferenceGet0_nNoQuery // ---------------------------------------------------------------------------- /** * Retrieves the Collection of objects referenced by isMemberOf. * @return The Collection of referenced objects. */ public java.util.List getIsMemberOf( ){ throw new javax.jdo.JDOFatalUserException( "This signature is not handled by data object", new UnsupportedOperationException("This signature is not handled by data object. Use getIsMemberOf_Id()."), this ); } public java.util.List getIsMemberOf_Id( ){ java.util.SortedMap slices = openmdxjdoGetSlices(); return new org.w3c.jpa3.AbstractObject.SlicedList(slices) { @Override protected java.lang.String getValue(Principal$Slice slice) { return slice.getIsMemberOf(); } @Override protected void setValue(Principal$Slice slice, java.lang.String value) { openmdxjdoMakeDirty(); slice.setIsMemberOf(value); } @Override protected Principal$Slice newSlice(int index) { return new Principal$Slice(Principal.this, index); } @Override protected void setSize(int size) { openmdxjdoMakeDirty(); isMemberOf_size = size; } @Override public int size() { return isMemberOf_size; } }; } // ---------------------------------------------------------------------------- // 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(Principal$Slice slice) { return slice.getModifiedBy(); } @Override protected void setValue(Principal$Slice slice, java.lang.String value) { openmdxjdoMakeDirty(); slice.setModifiedBy(value); } @Override protected Principal$Slice newSlice(int index) { return new Principal$Slice(Principal.this, index); } @Override protected void setSize(int size) { openmdxjdoMakeDirty(); modifiedBy_size = size; } @Override public int size() { return modifiedBy_size; } }; } // ---------------------------------------------------------------------------- // Instance/AttributeGetList // ---------------------------------------------------------------------------- /** * Retrieves a list containing all the elements for the attribute localizedDescription. * @return A list containing all elements for this attribute. */ public java.util.List getLocalizedDescription( ){ java.util.SortedMap slices = openmdxjdoGetSlices(); return new org.w3c.jpa3.AbstractObject.SlicedList(slices) { @Override protected java.lang.String getValue(Principal$Slice slice) { return slice.getLocalizedDescription(); } @Override protected void setValue(Principal$Slice slice, java.lang.String value) { openmdxjdoMakeDirty(); slice.setLocalizedDescription(value); } @Override protected Principal$Slice newSlice(int index) { return new Principal$Slice(Principal.this, index); } @Override protected void setSize(int size) { openmdxjdoMakeDirty(); localizedDescription_size = size; } @Override public int size() { return localizedDescription_size; } }; } // ---------------------------------------------------------------------------- // Instance/AttributeSetList // ---------------------------------------------------------------------------- /** * Clears localizedDescription and adds the given value(s). *

* This method is equivalent to

   *   list.clear();
   *   for(java.lang.String e : localizedDescription){
   *     list.add(e);
   *   }
   * 
* @param localizedDescription value(s) to be added to localizedDescription */ public void setLocalizedDescription( java.lang.String... localizedDescription ){ openmdxjdoSetCollection( getLocalizedDescription(), localizedDescription ); } // ---------------------------------------------------------------------------- // Instance/End // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute createdBy */ int createdBy_size; // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute authCredential */ int authCredential_size; // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute isMemberOf */ int isMemberOf_size; // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute modifiedBy */ int modifiedBy_size; // ---------------------------------------------------------------------------- // Instance/DeclareSize // ---------------------------------------------------------------------------- /** * Number of elements of attribute localizedDescription */ int localizedDescription_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/ReferenceSetNoQualifier // ---------------------------------------------------------------------------- /** * Sets a new value for the reference realm. * @param realm The new non-null value for this reference. */ public void setRealm( org.openmdx.security.realm1.jpa3.Realm realm ){ throw new javax.jdo.JDOFatalUserException( "Typed set not handled by data object", new UnsupportedOperationException("Use setRealm_Id() instead."), this ); } public void setRealm_Id( java.lang.String realm ) { super.openmdxjdoMakeDirty(); this.realm = realm; } // ---------------------------------------------------------------------------- // Instance/Containment // ---------------------------------------------------------------------------- }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy