org.openmdx.security.realm1.jpa3.Principal$Slice Maven / Gradle / Ivy
package org.openmdx.security.realm1.jpa3;
/**
* Principal$Slice
object hold the Principal
's multivalued attributes
*/
@SuppressWarnings("serial")
public class Principal$Slice implements java.io.Serializable {
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute createdBy
.
*/
java.lang.String createdBy;
public java.lang.String getCreatedBy(
){
return this.createdBy;
}
public void setCreatedBy(
java.lang.String value
){
this.createdBy = value;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Instance referenced by authCredential
.
*/
java.lang.String authCredential;
public java.lang.String getAuthCredential(
){
return this.authCredential;
}
public void setAuthCredential(
java.lang.String value
){
this.authCredential = value;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Instance referenced by isMemberOf
.
*/
java.lang.String isMemberOf;
public java.lang.String getIsMemberOf(
){
return this.isMemberOf;
}
public void setIsMemberOf(
java.lang.String value
){
this.isMemberOf = value;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute modifiedBy
.
*/
java.lang.String modifiedBy;
public java.lang.String getModifiedBy(
){
return this.modifiedBy;
}
public void setModifiedBy(
java.lang.String value
){
this.modifiedBy = value;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute localizedDescription
.
*/
java.lang.String localizedDescription;
public java.lang.String getLocalizedDescription(
){
return this.localizedDescription;
}
public void setLocalizedDescription(
java.lang.String value
){
this.localizedDescription = value;
}
/**
* Constructor
*/
public Principal$Slice(
){
// Implements Serializable
}
/**
* Constructor
*/
protected Principal$Slice(
Principal object,
int index
){
this.openmdxjdoIdentity = object;
this.openmdxjdoIndex = index;
}
/**
* The slice's index
*/
@SuppressWarnings("unused")
private int openmdxjdoIndex;
/**
* The slice's owner
*/
@SuppressWarnings("unused")
private Principal openmdxjdoIdentity;
// ----------------------------------------------------------------------------
// Instance/SliceId
// ----------------------------------------------------------------------------
/**
* The slices' compound identity class
*/
public static class SliceId implements java.io.Serializable {
/**
* The parent's object id
*/
public java.lang.String openmdxjdoIdentity;
/**
* The slice's index
*/
public int openmdxjdoIndex;
/**
* Test for equality.
*
* This method is required by JPA.
* @param that the object to be compared
* @return true
if the two ids refer to the same slice object
*/
@Override
public boolean equals(java.lang.Object that) {
return this == that || (
that instanceof SliceId &&
this.openmdxjdoIndex == ((SliceId)that).openmdxjdoIndex &&
(this.openmdxjdoIdentity == null ? ((SliceId)that).openmdxjdoIdentity == null : this.openmdxjdoIdentity.equals(((SliceId)that).openmdxjdoIdentity))
);
}
/**
* Calculate the slice id's hash code.
*
* This method is should be overridden together with {@link #equals(java.lang.Object)}.
* @return the slice id's hash code
*/
@Override
public int hashCode() {
return this.openmdxjdoIndex + (this.openmdxjdoIdentity == null ? 0 : this.openmdxjdoIdentity.hashCode());
}
/**
* Provide the slice id's string representation
* @return the slice id's string representation
*/
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder().append(this.openmdxjdoIdentity).append('#').append(this.openmdxjdoIndex).toString();
}
}
}