Package org.cyclos.impl.system
Interface ConfigurationServiceLocal
-
- All Superinterfaces:
ConfigurationService,CRUDService<ConfigurationDTO,ConfigurationData,ConfigurationVO>,CRUDServiceLocal<Configuration,ConfigurationDTO,ConfigurationData,ConfigurationVO>,Service
public interface ConfigurationServiceLocal extends ConfigurationService, CRUDServiceLocal<Configuration,ConfigurationDTO,ConfigurationData,ConfigurationVO>
Local interface for configuration
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationcreateDefaultForNetwork(Network network)Creates the default configuration for the given networkstatic ConfigurationgetConfiguration(Bean bean)List<Configuration>getConfigurationTreePath(Configuration configuration)Returns the configuration tree path for the given configuration If the logged user is global then the global configurations will also be returned.List<Configuration>listAll()Returns all configurationsList<Configuration>listByThemeUsage(Theme theme, ThemeUsage usage)Lists the configurations which uses the given theme under the given usage typeList<Configuration>listVisible()Returns the configurations which are visible by the logged administratorvoidremoveGroup(Group group)Removes a group from any configuration; usually done when the group is disabled, and not supposed to show up anymore.<T> voidsetConfiguration(Configuration configuration, com.querydsl.core.types.Path<T> path, T value)Sets a configuration property and add it on the defined collectionstatic voidsetConfiguration(Bean bean, Configuration configuration)voidsetLocalization(Configuration configuration, Language language, String country, String timeZoneId)Sets the localization options in the given configuration, defining the language, country and time zone, as well as fields derived from the language and coutry, like date and number format.List<Configuration>sortByHierarchy(Collection<Configuration> configurations)Sort the given configurations according to the hierarchy<T extends ActiveConfigurationData>
TtoActiveConfiguration(Class<T> dataType, ConfigurationAccessor accessor)Converts the givenConfigurationAccessorinto anActiveConfigurationDataAddressConfigurationDatatoAddressConfiguration(ConfigurationAccessor accessor)Converts the givenConfigurationAccessorinto anAddressConfigurationDataPhoneConfigurationDatatoPhoneConfiguration(ConfigurationAccessor accessor)Converts the givenConfigurationAccessorinto aPhoneConfigurationDatavoidupdateSitemapLastModified(Configuration configuration)Marks the configuration's sitemap as modified-
Methods inherited from interface org.cyclos.services.system.ConfigurationService
getActiveConfiguration, getDefault, getSearchData, list, search
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Field Detail
-
UNACCENT
static final String UNACCENT
Name of the default dictionary- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfiguration
static Configuration getConfiguration(Bean bean)
-
setConfiguration
static void setConfiguration(Bean bean, Configuration configuration)
-
createDefaultForNetwork
Configuration createDefaultForNetwork(Network network)
Creates the default configuration for the given network
-
getConfigurationTreePath
List<Configuration> getConfigurationTreePath(Configuration configuration)
Returns the configuration tree path for the given configuration If the logged user is global then the global configurations will also be returned.
-
listAll
List<Configuration> listAll()
Returns all configurations
-
listByThemeUsage
List<Configuration> listByThemeUsage(Theme theme, ThemeUsage usage)
Lists the configurations which uses the given theme under the given usage type
-
listVisible
List<Configuration> listVisible()
Returns the configurations which are visible by the logged administrator
-
removeGroup
void removeGroup(Group group)
Removes a group from any configuration; usually done when the group is disabled, and not supposed to show up anymore. The group is removed from possibleInitialGroups and from visibleGroups.
-
setConfiguration
<T> void setConfiguration(Configuration configuration, com.querydsl.core.types.Path<T> path, T value)
Sets a configuration property and add it on the defined collection
-
setLocalization
void setLocalization(Configuration configuration, Language language, String country, String timeZoneId)
Sets the localization options in the given configuration, defining the language, country and time zone, as well as fields derived from the language and coutry, like date and number format.
-
sortByHierarchy
List<Configuration> sortByHierarchy(Collection<Configuration> configurations)
Sort the given configurations according to the hierarchy
-
toActiveConfiguration
<T extends ActiveConfigurationData> T toActiveConfiguration(Class<T> dataType, ConfigurationAccessor accessor)
Converts the givenConfigurationAccessorinto anActiveConfigurationData
-
toAddressConfiguration
AddressConfigurationData toAddressConfiguration(ConfigurationAccessor accessor)
Converts the givenConfigurationAccessorinto anAddressConfigurationData
-
toPhoneConfiguration
PhoneConfigurationData toPhoneConfiguration(ConfigurationAccessor accessor)
Converts the givenConfigurationAccessorinto aPhoneConfigurationData
-
updateSitemapLastModified
void updateSitemapLastModified(Configuration configuration)
Marks the configuration's sitemap as modified
-
-