Package com.avoka.fc.core.entity
Class AuthProviderParameter
- java.lang.Object
-
- org.apache.cayenne.PersistentObject
-
- org.apache.cayenne.CayenneDataObject
-
- com.avoka.core.entity.BaseEntity
-
- com.avoka.fc.core.entity.auto._AuthProviderParameter
-
- com.avoka.fc.core.entity.AuthProviderParameter
-
- All Implemented Interfaces:
IEntity
,Auditable
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
@CacheGroups("CONFIG") public class AuthProviderParameter extends _AuthProviderParameter implements Auditable
Provides an security Authentication Provider configuration Parameter entity.- Since:
- 3.5.0
- See Also:
AuthenticationProvider
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_BOOLEAN
Indicates that the parameter can accept the values "true" and "false"static String
TYPE_DATE
Indicates that the parameter can accept date valuesstatic String
TYPE_EMAIL
Indicates that the parameter can accept a valid email addressstatic String
TYPE_LIST
Indicates that the parameter can accept a value from a pre-defined liststatic String
TYPE_NUMBER
Indicates that the parameter can accept numeric valuesstatic String
TYPE_PASSWORD
Indicates that the parameter can accept password valuesstatic String
TYPE_STRING
Indicates that the parameter can accept string valuesstatic String[]
TYPES
The full set of possible data types-
Fields inherited from class com.avoka.fc.core.entity.auto._AuthProviderParameter
AUTH_PROVIDER_PARAMETER_OID_PK_COLUMN, AUTHENTICATION_PROVIDER, AUTHENTICATION_PROVIDER_PROPERTY, DESCRIPTION, DESCRIPTION_PROPERTY, LIST_VALUES, LIST_VALUES_PROPERTY, NAME, NAME_PROPERTY, TYPE, TYPE_PROPERTY, VALUE, VALUE_PROPERTY
-
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description AuthProviderParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getListValuesMap()
Return the values for a list parameter.String
getValue()
Gets the value.void
setValue(String value)
Sets the value.boolean
validateListValues()
Validate the list values defined for a parameter of type List.-
Methods inherited from class com.avoka.fc.core.entity.auto._AuthProviderParameter
getAuthenticationProvider, getDescription, getListValues, getName, getType, setAuthenticationProvider, setDescription, setListValues, setName, setType
-
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toString
-
Methods inherited from class org.apache.cayenne.CayenneDataObject
addToManyTarget, getSnapshotVersion, makePath, readNestedProperty, readProperty, readPropertyDirectly, removeToManyTarget, setObjectContext, setPersistenceState, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writePropertyDirectly
-
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.avoka.fc.core.entity.Auditable
getId, getValuesMap
-
-
-
-
Field Detail
-
TYPE_BOOLEAN
public static final String TYPE_BOOLEAN
Indicates that the parameter can accept the values "true" and "false"- See Also:
- Constant Field Values
-
TYPE_DATE
public static final String TYPE_DATE
Indicates that the parameter can accept date values- See Also:
- Constant Field Values
-
TYPE_EMAIL
public static final String TYPE_EMAIL
Indicates that the parameter can accept a valid email address- See Also:
- Constant Field Values
-
TYPE_LIST
public static final String TYPE_LIST
Indicates that the parameter can accept a value from a pre-defined list- See Also:
- Constant Field Values
-
TYPE_NUMBER
public static final String TYPE_NUMBER
Indicates that the parameter can accept numeric values- See Also:
- Constant Field Values
-
TYPE_STRING
public static final String TYPE_STRING
Indicates that the parameter can accept string values- See Also:
- Constant Field Values
-
TYPE_PASSWORD
public static final String TYPE_PASSWORD
Indicates that the parameter can accept password values- See Also:
- Constant Field Values
-
TYPES
public static final String[] TYPES
The full set of possible data types
-
-
Method Detail
-
getListValuesMap
public Map<String,String> getListValuesMap()
Return the values for a list parameter. Each entry has a value and a display string.- Returns:
- the map containing all list values
- Throws:
RuntimeException
- if the parameter is not of typeServiceParameter.TYPE_LIST
-
validateListValues
public boolean validateListValues()
Validate the list values defined for a parameter of type List.- Returns:
- true if the list values are valid
- Throws:
RuntimeException
- if the parameter is not of typeServiceParameter.TYPE_LIST
-
getValue
public String getValue()
Gets the value.- Overrides:
getValue
in class_AuthProviderParameter
- Returns:
- the value
- See Also:
_ServiceParameter.getValue()
-
setValue
public void setValue(String value)
Sets the value.- Overrides:
setValue
in class_AuthProviderParameter
- Parameters:
value
- the new value- See Also:
_ServiceParameter.setValue(java.lang.String)
-
-