@groovy.util.logging.Slf4j @groovy.lang.Singleton class ExtensionService extends java.lang.Object
Provides access to the extensions that allow user to customize the GUI and application.
| Constructor and description |
|---|
ExtensionService
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
canBeAvailable(java.lang.Class domainClass, java.lang.String fieldName)Returns true if the given field can be in the available list. |
|
int |
deleteField(java.lang.String id)Deletes a custom field and it use in the field order for the domain. |
|
java.lang.String |
determineFieldType(java.lang.String fieldName, FieldFormatInterface format)Determines the field type for the Configuration GUI use. |
|
groovy.lang.Tuple2<java.util.List<java.util.Map>, java.util.List<java.util.Map>> |
getExtensionConfiguration(java.lang.Class domainClass)Finds the current extension configuration for a given domain. |
|
void |
saveFieldOrder(java.lang.Class domainClass, java.util.List<java.lang.String> newFieldOrder)Saves the new field order as configured by the user in the Configuration GUI for a definition page. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns true if the given field can be in the available list. Also helps filter out field that start with '_'.
domainClass - The domain Class.fieldName - The field in the domain class.Deletes a custom field and it use in the field order for the domain.
id - The ID of the FieldExtension record.Determines the field type for the Configuration GUI use. Gives a hint on the appearance of the field.
fieldName - The field name.format - The field format.Finds the current extension configuration for a given domain. This returns the available and configured list of fields in two lists.
domainClass - The domain class to return the current config for.Saves the new field order as configured by the user in the Configuration GUI for a definition page.
domainClass - The domain class to return the current config for.