Package com.avoka.fc.core.entity
Class ServiceParameter
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
com.avoka.fc.core.entity.auto._ServiceParameter
com.avoka.fc.core.entity.ServiceParameter
- All Implemented Interfaces:
IEntity
,Auditable
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
Provides a typed parameter used to configure a service.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The format pattern used when storing service parameters of type datestatic final String
The 'Event Configuration' parameter name.static final String
The 'Form Property Editor Definition' parameter name.static final String
The 'groovyScript' parameter name.static final String
The 'Help Doc' parameter name.static final String
The 'jobDefinition' parameter name.static final String
The 'REST Invoke Enabled' parameter name.static final String
The 'Email Addresses' parameter name.static final String
The 'Email Notifications' parameter name.static final String
The 'Test Suite Services' parameter name.static final String
Indicates that the parameter can accept the values "true" and "false"static final String
Indicates that the parameter can accept date valuesstatic final String
Indicates that the parameter can accept a valid email addressstatic final String
Indicates that the parameter can accept Groovy scriptstatic final String
Indicates that the parameter can accept HTML valuesstatic final String
Indicates that the parameter can accept JSON valuesstatic final String
Indicates that the parameter can accept a value from a pre-defined liststatic final String
Indicates that the parameter can accept numeric valuesstatic final String
Indicates that the parameter can accept password valuesstatic final String
Indicates that the parameter can accept string valuesstatic final String[]
The full set of possible data typesstatic final String
The 'Unit Test Script' parameter name.Fields inherited from class com.avoka.fc.core.entity.auto._ServiceParameter
BIND_PARAMETER_FLAG, BIND_PARAMETER_FLAG_PROPERTY, CLEAR_ON_EXPORT_FLAG, CLEAR_ON_EXPORT_FLAG_PROPERTY, CREATED_AT, CREATED_AT_PROPERTY, CREATED_BY, CREATED_BY_PROPERTY, DESCRIPTION, DESCRIPTION_PROPERTY, LAST_MODIFIED_AT, LAST_MODIFIED_AT_PROPERTY, LAST_MODIFIED_BY, LAST_MODIFIED_BY_PROPERTY, LIST_VALUES, LIST_VALUES_PROPERTY, NAME, NAME_PROPERTY, READONLY_FLAG, READONLY_FLAG_PROPERTY, REQUIRED_FLAG, REQUIRED_FLAG_PROPERTY, SERVICE, SERVICE_PARAMETER_HISTORY, SERVICE_PARAMETER_HISTORY_PROPERTY, SERVICE_PARAMETER_OID_PK_COLUMN, SERVICE_PROPERTY, TYPE, TYPE_PROPERTY, UNIT_TEST_FLAG, UNIT_TEST_FLAG_PROPERTY, VALUE, VALUE_PROPERTY
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
Fields inherited from class org.apache.cayenne.CayenneDataObject
values
Fields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersion
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the values for a list parameter.getValue()
Gets the value.boolean
Return true if a Help Doc service parameter.void
Sets the value.boolean
Validate the list values defined for a parameter of type List.Methods inherited from class com.avoka.fc.core.entity.auto._ServiceParameter
addToServiceParameterHistory, getCreatedAt, getCreatedBy, getDescription, getLastModifiedAt, getLastModifiedBy, getListValues, getName, getService, getServiceParameterHistory, getType, isBindParameterFlag, isClearOnExportFlag, isReadonlyFlag, isRequiredFlag, isUnitTestFlag, removeFromServiceParameterHistory, setBindParameterFlag, setClearOnExportFlag, setCreatedAt, setCreatedBy, setDescription, setLastModifiedAt, setLastModifiedBy, setListValues, setName, setReadonlyFlag, setRequiredFlag, setService, setType, setUnitTestFlag
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toString
Methods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeState
Methods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerialized
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
Methods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Field Details
-
GROOVY_SCRIPT_PARAMETER
The 'groovyScript' parameter name.- See Also:
-
UNIT_TEST_SCRIPT_PARAMETER
The 'Unit Test Script' parameter name.- See Also:
-
TEST_SUITE_SERVICES
The 'Test Suite Services' parameter name.- See Also:
-
REST_INVOKE_ENABLED
The 'REST Invoke Enabled' parameter name.- See Also:
-
TEST_EMAIL_NOTIFICATIONS
The 'Email Notifications' parameter name.- See Also:
-
TEST_EMAIL_ADDRESSES
The 'Email Addresses' parameter name.- See Also:
-
EVENT_CONFIGURATION_PARAMETER
The 'Event Configuration' parameter name.- See Also:
-
HELP_DOC_PARAMETER
The 'Help Doc' parameter name.- See Also:
-
JOB_DEFINITION_PARAMETER
The 'jobDefinition' parameter name.- See Also:
-
FORM_PROPERTY_EDITOR_DEFINITION_PARAMETER
The 'Form Property Editor Definition' parameter name.- See Also:
-
TYPE_BOOLEAN
Indicates that the parameter can accept the values "true" and "false"- See Also:
-
TYPE_DATE
Indicates that the parameter can accept date values- See Also:
-
TYPE_EMAIL
Indicates that the parameter can accept a valid email address- See Also:
-
TYPE_GROOVY_SCRIPT
Indicates that the parameter can accept Groovy script- See Also:
-
TYPE_HTML
Indicates that the parameter can accept HTML values- See Also:
-
TYPE_JSON
Indicates that the parameter can accept JSON values- See Also:
-
TYPE_LIST
Indicates that the parameter can accept a value from a pre-defined list- See Also:
-
TYPE_NUMBER
Indicates that the parameter can accept numeric values- See Also:
-
TYPE_STRING
Indicates that the parameter can accept string values- See Also:
-
TYPE_PASSWORD
Indicates that the parameter can accept password values- See Also:
-
TYPES
The full set of possible data types -
DATE_FORMAT_PATTERN
The format pattern used when storing service parameters of type date- See Also:
-
-
Constructor Details
-
ServiceParameter
public ServiceParameter()
-
-
Method Details
-
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 typeTYPE_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 typeTYPE_LIST
-
getValue
Gets the value.- Overrides:
getValue
in class_ServiceParameter
- Returns:
- the value
- See Also:
-
setValue
Sets the value.- Overrides:
setValue
in class_ServiceParameter
- Parameters:
value
- the new value- See Also:
-
isHelpDoc
public boolean isHelpDoc()Return true if a Help Doc service parameter.- Returns:
- true if a Help Doc service parameter
- Since:
- 4.3.0
-