public class CertificateComposite extends AppUserComposite<AppUser,CertificateComposite> implements AnonymisingComposite<AppUser>, SummaryContributer<AppUser>, MetaDataContributer<AppUser>, TemplateContributor<AppUser>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PERSONAL_CERTIFICATE |
| Constructor and Description |
|---|
CertificateComposite(AppUserFactory fac) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes,
AppUser target)
Add to the set of attributes.
|
java.util.Map<java.lang.String,java.lang.String> |
addFieldHelp(java.util.Map<java.lang.String,java.lang.String> help)
return a default set of tooltip help text for form fields.
|
void |
addMetaData(java.util.Map<java.lang.String,java.lang.Object> attributes,
AppUser person)
Add to the set of meta-data.
|
java.util.Set<java.lang.String> |
addOptional(java.util.Set<java.lang.String> optional)
generate the set of optional fields to be used to provide class specific defaults
in form creation/update.
|
java.util.Map<java.lang.String,Selector> |
addSelectors(java.util.Map<java.lang.String,Selector> selectors)
Get a Map of selectors to use for forms of this type.
|
void |
anonymise(AppUser target) |
java.lang.String |
getPersonalCertificateDn(AppUser person) |
protected java.lang.Class<? super CertificateComposite> |
getType()
Returns the type the composite should be registered under.
|
boolean |
hasPersonalCertificate(AppUser person) |
TableSpecification |
modifyDefaultTableSpecification(TableSpecification spec,
java.lang.String table)
Modify the
TableSpecification of the target factory. |
void |
postUpdate(AppUser o,
Form f,
java.util.Map<java.lang.String,java.lang.Object> orig,
boolean changed)
perform side effects after a formupdate
|
void |
setPersonalCertificateDn(AppUser person,
java.lang.String dn) |
void |
setTemplateContent(TemplateFile template,
java.lang.String prefix,
AppUser target)
Set parameters in a template.
|
addDefaults, addSuppress, addTranslations, customiseForm, customiseUpdateForm, getContext, getFactory, getLogger, getRecord, getRepository, preRegister, release, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEraseFieldsaddFieldConstraints, addFormFieldspublic static final java.lang.String PERSONAL_CERTIFICATE
public CertificateComposite(AppUserFactory fac)
public java.util.Set<java.lang.String> addOptional(java.util.Set<java.lang.String> optional)
TableStructureContributeraddOptional in interface TableStructureContributer<AppUser>addOptional in class Composite<AppUser,CertificateComposite>Setpublic TableSpecification modifyDefaultTableSpecification(TableSpecification spec, java.lang.String table)
TableStructureContributerTableSpecification of the target factory.modifyDefaultTableSpecification in interface TableStructureContributer<AppUser>modifyDefaultTableSpecification in class Composite<AppUser,CertificateComposite>public java.util.Map<java.lang.String,Selector> addSelectors(java.util.Map<java.lang.String,Selector> selectors)
TableStructureContributeraddSelectors in interface TableStructureContributer<AppUser>addSelectors in class Composite<AppUser,CertificateComposite>Map of modified selectors/inputspublic void postUpdate(AppUser o, Form f, java.util.Map<java.lang.String,java.lang.Object> orig, boolean changed) throws DataException
TableStructureContributerpostUpdate in interface TableStructureContributer<AppUser>postUpdate in class Composite<AppUser,CertificateComposite>DataExceptionpublic java.lang.String getPersonalCertificateDn(AppUser person)
public void setPersonalCertificateDn(AppUser person, java.lang.String dn)
public boolean hasPersonalCertificate(AppUser person)
protected java.lang.Class<? super CertificateComposite> getType()
CompositegetType in class Composite<AppUser,CertificateComposite>public void anonymise(AppUser target)
anonymise in interface AnonymisingComposite<AppUser>public void addAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes,
AppUser target)
SummaryContributerTable so the data should be of a
type that can be displayed by Tables
The keys should be display text.addAttributes in interface SummaryContributer<AppUser>public void addMetaData(java.util.Map<java.lang.String,java.lang.Object> attributes,
AppUser person)
DataContributoraddMetaData in interface DataContributor<AppUser>public void setTemplateContent(TemplateFile template, java.lang.String prefix, AppUser target)
TemplateContributorsetTemplateContent in interface TemplateContributor<AppUser>template - TemplateFile to add content to.prefix - String prefix to be pre-pended to property/region namestarget - Object to take data frompublic java.util.Map<java.lang.String,java.lang.String> addFieldHelp(java.util.Map<java.lang.String,java.lang.String> help)
TableStructureContributeraddFieldHelp in interface TableStructureContributer<AppUser>addFieldHelp in class Composite<AppUser,CertificateComposite>Map