com.arsdigita.formbuilder
Class PersistentPassword
java.lang.Object
com.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.auditing.AuditedACSObject
com.arsdigita.formbuilder.PersistentComponent
com.arsdigita.formbuilder.PersistentWidget
com.arsdigita.formbuilder.PersistentPassword
- All Implemented Interfaces:
- AttributeMetaDataProvider, Audited, PersistentComponentFactory
- public class PersistentPassword
- extends PersistentWidget
This class is responsible for persisting Bebop Passwords. The Password
is saved with the save() method. To resurrect the Password, use the constructor
taking the id of the saved Password and then invoke createComponent().
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/formbuilder/PersistentPassword.java#8 $
- Author:
- Peter Marklund
Methods inherited from class com.arsdigita.formbuilder.PersistentWidget |
addValidationListener, clearValidationListeners, copyValuesToWidget, delete, deserializeDefaultValue, getDefaultValue, getParameterModel, getParameterName, getValidationListeners, getValueClass, instantiateParameterModel, setDefaultValue, setParameterModel, setParameterName, setup |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
BASE_DATA_OBJECT_TYPE
public static final String BASE_DATA_OBJECT_TYPE
- The fully qualified name of the underlying DataObject of this class.
- See Also:
- Constant Field Values
PersistentPassword
public PersistentPassword()
- Constructor that creates a new Password domain object that
can be saved to the database later on.
PersistentPassword
public PersistentPassword(String typeName)
- Constructor that creates a new Password domain object that
can be saved to the database later on.
PersistentPassword
public PersistentPassword(ObjectType type)
PersistentPassword
public PersistentPassword(DataObject obj)
PersistentPassword
public PersistentPassword(BigDecimal id)
throws DataObjectNotFoundException
- Constructor that retrieves an existing Password domain object
from the database.
- Parameters:
id
- The object id of the Password domain object to retrieve
PersistentPassword
public PersistentPassword(OID oID)
throws DataObjectNotFoundException
- Extending classes can use this constructor to set the sub class
id and object type.
create
public static PersistentPassword create(String parameterName)
createComponent
public Component createComponent()
- Create the Password whose persistence is managed
by this domain object.
- Specified by:
createComponent
in interface PersistentComponentFactory
- Specified by:
createComponent
in class PersistentComponent
setMaxLength
public void setMaxLength(int maxLength)
getMaxLength
public int getMaxLength()
- Defaults to 50 if no value has been set.
setSize
public void setSize(int size)
getSize
public int getSize()
- Defaults to 12 if no value is set.
getAttributeMetaData
public AttributeMetaDataList getAttributeMetaData()
- Specified by:
getAttributeMetaData
in interface AttributeMetaDataProvider
- Overrides:
getAttributeMetaData
in class PersistentWidget
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC