Class AttributeKey
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.attribute.AttributeKey
-
- All Implemented Interfaces:
Serializable
public class AttributeKey extends Object implements Serializable
This is the business class for the object AttributeKey- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributeKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AttributeValue>getAttributeValues()Get the possible values for the attributebooleangetCertifiable()Returns the CertifiableStringgetCommonSearchKeyName()StringgetDescription()Returns the DescriptionintgetId()Returns the IdStringgetKeyName()Returns the KeyNameKeyTypegetKeyType()Returns the KeyTypeintgetKeyWeight()Returns the weight of the attribute for scoring computationStringgetName()Returns the NamebooleangetPivot()Returns the PivotStringgetValidationErrorMessage()Gets the validation error message to display if the attribute value doesn't match the validation regex.StringgetValidationErrorMessageKey()Gets the validation error message key to display if the attribute value doesn't match the validation regex.StringgetValidationRegex()Gets the validation regex.booleanisMandatoryForCreation()Is this attribute mandatory for creating a new identityvoidsetAttributeValues(List<AttributeValue> _listAttributeValues)Set the possible values for the attributevoidsetCertifiable(boolean bCertifiable)Sets the CertifiablevoidsetCommonSearchKeyName(String _strCommonSearchKeyName)voidsetDescription(String strDescription)Sets the DescriptionvoidsetId(int nId)Sets the IdvoidsetKeyName(String strKeyName)Sets the KeyNamevoidsetKeyType(KeyType keyType)Sets the KeyTypevoidsetKeyWeight(int _nKeyWeight)Sets the weight of the attribute for scoring computationvoidsetMandatoryForCreation(boolean _bMandatoryForCreation)Sets if this attribute is mandatory for creating a new identityvoidsetName(String strName)Sets the NamevoidsetPivot(boolean bPivot)Sets the PivotvoidsetValidationErrorMessage(String _strValidationErrorMessage)Sets the validation error message to display if the attribute value doesn't match the validation regex.voidsetValidationErrorMessageKey(String _strValidationErrorMessageKey)Sets the validation error message key to display if the attribute value doesn't match the validation regex.voidsetValidationRegex(String _strValidationRegex)Sets the validation regex.
-
-
-
Method Detail
-
getId
public int getId()
Returns the Id- Returns:
- The Id
-
setId
public void setId(int nId)
Sets the Id- Parameters:
nId- The Id
-
getName
public String getName()
Returns the Name- Returns:
- The Name
-
setName
public void setName(String strName)
Sets the Name- Parameters:
strName- The Name
-
getKeyName
public String getKeyName()
Returns the KeyName- Returns:
- The KeyName
-
setKeyName
public void setKeyName(String strKeyName)
Sets the KeyName- Parameters:
strKeyName- The KeyName
-
getCommonSearchKeyName
public String getCommonSearchKeyName()
-
setCommonSearchKeyName
public void setCommonSearchKeyName(String _strCommonSearchKeyName)
-
getDescription
public String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(String strDescription)
Sets the Description- Parameters:
strDescription- The Description
-
getKeyType
public KeyType getKeyType()
Returns the KeyType- Returns:
- The KeyType
-
setKeyType
public void setKeyType(KeyType keyType)
Sets the KeyType- Parameters:
keyType- The KeyType
-
getCertifiable
public boolean getCertifiable()
Returns the Certifiable- Returns:
- The Certifiable
-
setCertifiable
public void setCertifiable(boolean bCertifiable)
Sets the Certifiable- Parameters:
bCertifiable- The Certifiable
-
getPivot
public boolean getPivot()
Returns the Pivot- Returns:
- The Pivot
-
setPivot
public void setPivot(boolean bPivot)
Sets the Pivot- Parameters:
bPivot- The Pivot
-
getKeyWeight
public int getKeyWeight()
Returns the weight of the attribute for scoring computation- Returns:
- the weight
-
setKeyWeight
public void setKeyWeight(int _nKeyWeight)
Sets the weight of the attribute for scoring computation- Parameters:
_nKeyWeight-
-
isMandatoryForCreation
public boolean isMandatoryForCreation()
Is this attribute mandatory for creating a new identity- Returns:
- true or false
-
setMandatoryForCreation
public void setMandatoryForCreation(boolean _bMandatoryForCreation)
Sets if this attribute is mandatory for creating a new identity- Parameters:
_bMandatoryForCreation- true or false
-
getValidationRegex
public String getValidationRegex()
Gets the validation regex.- Returns:
- the regex
-
setValidationRegex
public void setValidationRegex(String _strValidationRegex)
Sets the validation regex.- Parameters:
_strValidationRegex- the regex
-
getValidationErrorMessage
public String getValidationErrorMessage()
Gets the validation error message to display if the attribute value doesn't match the validation regex.- Returns:
- the validation error message
-
setValidationErrorMessage
public void setValidationErrorMessage(String _strValidationErrorMessage)
Sets the validation error message to display if the attribute value doesn't match the validation regex.- Parameters:
_strValidationErrorMessage- the validation error message
-
getValidationErrorMessageKey
public String getValidationErrorMessageKey()
Gets the validation error message key to display if the attribute value doesn't match the validation regex.- Returns:
- the validation error message key
-
setValidationErrorMessageKey
public void setValidationErrorMessageKey(String _strValidationErrorMessageKey)
Sets the validation error message key to display if the attribute value doesn't match the validation regex.
-
getAttributeValues
public List<AttributeValue> getAttributeValues()
Get the possible values for the attribute- Returns:
- a list of values and labels
-
setAttributeValues
public void setAttributeValues(List<AttributeValue> _listAttributeValues)
Set the possible values for the attribute
-
-