org.openmdx.security.authentication1.cci
Class PasscodeImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.openmdx.security.authentication1.cci.PasscodeImpl
All Implemented Interfaces:
Serializable, PersistenceCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, RefObject_1_1, RefObject_1_2, BasicObject, ContextCapable, ExtentCapable, ViewCapable, Passcode, Credential

public class PasscodeImpl
extends RefObject_1
implements Passcode

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
PersistenceCapable.ObjectIdFieldConsumer, PersistenceCapable.ObjectIdFieldManager, PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
PasscodeImpl(Object_1_0 object, RefClass refClass)
           
 
Method Summary
protected  void addContext(Context newValue)
           
protected  void addContext(String id, Context newValue)
           
 void addResetCredential(Credential newValue)
          Appends the specified element to the list of all the values for the reference resetCredential.
 void addResetCredential(int index, Credential newValue)
          Appends the specified element to the list of all the values for the reference resetCredential for a specified qualifier attribute value.
protected  void addView(String namespace, View newValue)
           
protected  void addView(View newValue)
           
 Collection getContext()
          Retrieves the objects referenced by context.
 Context getContext(String id)
          Retrieves the value for the reference context for the specified qualifier attribute value.
 Date getCreatedAt()
          Retrieves the value for the attribute createdAt.
protected  Date getCreatedAt(int index)
           
 Set getCreatedBy()
          Retrieves a set containing all the elements for the attribute createdBy.
 String getId()
          Retrieves the value for the attribute id.
protected  String getId(int index)
           
 String getIdentity()
          Retrieves the value for the attribute identity.
protected  String getIdentity(int index)
           
 Date getModifiedAt()
          Retrieves the value for the attribute modifiedAt.
protected  Date getModifiedAt(int index)
           
 Set getModifiedBy()
          Retrieves a set containing all the elements for the attribute modifiedBy.
 Collection getResetCredential()
          Retrieves the objects referenced by resetCredential.
 Credential getResetCredential(int index)
          Retrieves the value for the reference resetCredential for the specified qualifier attribute value.
 Subject getSubject()
          Retrieves the value for the reference subject.
 Collection getView()
          Retrieves a collection containing all the elements for the reference view.
 View getView(String namespace)
          Retrieves the value for the reference view for the specified qualifier attribute value.
 List getView(ViewFilter filter)
          Retrieves the value for the reference view for the specified filter.
 List getView(ViewQuery query)
          Retrieves the value for the reference view for the specified query.
 boolean isLocked()
          Retrieves the value for the attribute locked.
protected  boolean isLocked(int index)
           
protected  void removeContext(String id)
           
 void removeResetCredential(int index)
          Removes the qualified (by means of the specified qualifier attribute value) element from the list of all the values for the reference resetCredential.
protected  void removeView(String namespace)
           
 ValidationResult request(AuthenticationContext context)
           
 ValidationResult request(CredentialRequestParams params)
           
 Void reset(CredentialResetParams params)
           
 Void reset(List resetValue, byte[] value)
           
protected  void setContext(Context[] newValue)
           
protected  void setContext(List newValue)
           
protected  void setCreatedAt(Date newValue)
           
protected  void setCreatedAt(int index, Date newValue)
           
protected  void setCreatedBy(Set newValue)
           
protected  void setCreatedBy(String[] newValue)
           
protected  void setId(int index, String newValue)
           
protected  void setId(String newValue)
           
protected  void setIdentity(int index, String newValue)
           
protected  void setIdentity(String newValue)
           
 void setLocked(boolean newValue)
          Sets a new value for the attribute locked.
protected  void setLocked(int index, boolean newValue)
           
protected  void setModifiedAt(Date newValue)
           
protected  void setModifiedAt(int index, Date newValue)
           
protected  void setModifiedBy(Set newValue)
           
protected  void setModifiedBy(String[] newValue)
           
 void setResetCredential(Credential[] newValue)
           
 void setResetCredential(List newValue)
           
 void setSubject(Subject newValue)
          Sets a new value for the reference subject.
protected  void setView(List newValue)
           
protected  void setView(View[] newValue)
           
 ValidationResult validate(AuthenticationContext context, byte[] state, byte[] value)
           
 ValidationResult validate(CredentialValidateParams params)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, getModel, getValue, hashCode, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetOutermostPackage, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Constructor Detail

PasscodeImpl

public PasscodeImpl(Object_1_0 object,
                    RefClass refClass)
Method Detail

getCreatedAt

public Date getCreatedAt()
Description copied from interface: BasicObject
Retrieves the value for the attribute createdAt.

Specified by:
getCreatedAt in interface BasicObject
Returns:
The non-null value for attribute createdAt.

getCreatedAt

protected Date getCreatedAt(int index)

setCreatedAt

protected void setCreatedAt(Date newValue)

setCreatedAt

protected void setCreatedAt(int index,
                            Date newValue)

getCreatedBy

public Set getCreatedBy()
Description copied from interface: BasicObject
Retrieves a set containing all the elements for the attribute createdBy.

Specified by:
getCreatedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

setCreatedBy

protected void setCreatedBy(Set newValue)

setCreatedBy

protected void setCreatedBy(String[] newValue)

getModifiedAt

public Date getModifiedAt()
Description copied from interface: BasicObject
Retrieves the value for the attribute modifiedAt.

Specified by:
getModifiedAt in interface BasicObject
Returns:
The non-null value for attribute modifiedAt.

getModifiedAt

protected Date getModifiedAt(int index)

setModifiedAt

protected void setModifiedAt(Date newValue)

setModifiedAt

protected void setModifiedAt(int index,
                             Date newValue)

getModifiedBy

public Set getModifiedBy()
Description copied from interface: BasicObject
Retrieves a set containing all the elements for the attribute modifiedBy.

Specified by:
getModifiedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

setModifiedBy

protected void setModifiedBy(Set newValue)

setModifiedBy

protected void setModifiedBy(String[] newValue)

setContext

protected void setContext(List newValue)

setContext

protected void setContext(Context[] newValue)

getContext

public Context getContext(String id)
Description copied from interface: ContextCapable
Retrieves the value for the reference context for the specified qualifier attribute value.

Specified by:
getContext in interface ContextCapable
Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getContext

public Collection getContext()
Description copied from interface: ContextCapable
Retrieves the objects referenced by context.

Specified by:
getContext in interface ContextCapable
Returns:
The collection of referenced objects.

addContext

protected void addContext(String id,
                          Context newValue)

addContext

protected void addContext(Context newValue)

removeContext

protected void removeContext(String id)

getIdentity

public String getIdentity()
Description copied from interface: ExtentCapable
Retrieves the value for the attribute identity.

Specified by:
getIdentity in interface ExtentCapable
Returns:
The non-null value for attribute identity.

getIdentity

protected String getIdentity(int index)

setIdentity

protected void setIdentity(String newValue)

setIdentity

protected void setIdentity(int index,
                           String newValue)

setView

protected void setView(List newValue)

setView

protected void setView(View[] newValue)

getView

public View getView(String namespace)
Description copied from interface: ViewCapable
Retrieves the value for the reference view for the specified qualifier attribute value.

Specified by:
getView in interface ViewCapable
Parameters:
namespace - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getView

public Collection getView()
Description copied from interface: ViewCapable
Retrieves a collection containing all the elements for the reference view.

Specified by:
getView in interface ViewCapable
Returns:
A collection containing all the elements for this reference.

getView

public List getView(ViewFilter filter)
Description copied from interface: ViewCapable
Retrieves the value for the reference view for the specified filter.

Specified by:
getView in interface ViewCapable
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getView

public List getView(ViewQuery query)
Description copied from interface: ViewCapable
Retrieves the value for the reference view for the specified query.

Specified by:
getView in interface ViewCapable
Returns:
The filtered collection of referenced objects.

addView

protected void addView(String namespace,
                       View newValue)

addView

protected void addView(View newValue)

removeView

protected void removeView(String namespace)

getId

public String getId()
Description copied from interface: Credential
Retrieves the value for the attribute id.

Returns:
The non-null value for attribute id.

getId

protected String getId(int index)

setId

protected void setId(String newValue)

setId

protected void setId(int index,
                     String newValue)

reset

public Void reset(CredentialResetParams params)
           throws RefException
Throws:
RefException

reset

public Void reset(List resetValue,
                  byte[] value)
           throws RefException
Throws:
RefException

setResetCredential

public void setResetCredential(List newValue)

setResetCredential

public void setResetCredential(Credential[] newValue)

getResetCredential

public Credential getResetCredential(int index)
Description copied from interface: Credential
Retrieves the value for the reference resetCredential for the specified qualifier attribute value.

Parameters:
index - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getResetCredential

public Collection getResetCredential()
Description copied from interface: Credential
Retrieves the objects referenced by resetCredential.

Returns:
The collection of referenced objects.

addResetCredential

public void addResetCredential(int index,
                               Credential newValue)
Description copied from interface: Credential
Appends the specified element to the list of all the values for the reference resetCredential for a specified qualifier attribute value.

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addResetCredential

public void addResetCredential(Credential newValue)
Description copied from interface: Credential
Appends the specified element to the list of all the values for the reference resetCredential.

Parameters:
newValue - The element to be appended.

removeResetCredential

public void removeResetCredential(int index)
Description copied from interface: Credential
Removes the qualified (by means of the specified qualifier attribute value) element from the list of all the values for the reference resetCredential.

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be removed.

isLocked

public boolean isLocked()
Description copied from interface: Credential
Retrieves the value for the attribute locked.

Specified by:
isLocked in interface Credential
Returns:
The non-null value for attribute locked.

isLocked

protected boolean isLocked(int index)

setLocked

public void setLocked(boolean newValue)
Description copied from interface: Credential
Sets a new value for the attribute locked.

Specified by:
setLocked in interface Credential
Parameters:
newValue - The non-null new value for attribute locked.

setLocked

protected void setLocked(int index,
                         boolean newValue)

request

public ValidationResult request(CredentialRequestParams params)
                         throws RefException
Specified by:
request in interface Credential
Throws:
RefException

request

public ValidationResult request(AuthenticationContext context)
                         throws RefException
Specified by:
request in interface Credential
Throws:
RefException

getSubject

public Subject getSubject()
Description copied from interface: Credential
Retrieves the value for the reference subject.

Specified by:
getSubject in interface Credential
Returns:
The non-null value for this reference.

setSubject

public void setSubject(Subject newValue)
Description copied from interface: Credential
Sets a new value for the reference subject.

Specified by:
setSubject in interface Credential
Parameters:
newValue - The non-null new value for this reference.

validate

public ValidationResult validate(CredentialValidateParams params)
                          throws RefException
Specified by:
validate in interface Credential
Throws:
RefException

validate

public ValidationResult validate(AuthenticationContext context,
                                 byte[] state,
                                 byte[] value)
                          throws RefException
Specified by:
validate in interface Credential
Throws:
RefException


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.