public interface ConfigurationServiceLocal extends ConfigurationService, org.cyclos.impl.CRUDServiceLocal<Configuration,ConfigurationDTO,ConfigurationData,java.lang.Long>
| Modifier and Type | Method and Description |
|---|---|
void |
clearAccessorCache()
It schedules a clear to the accessor cache.
|
Configuration |
createDefaultForNetwork(Network network)
Creates the default configuration for the given network
|
java.util.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.
|
boolean |
isPasswordTypeInUse(PasswordType passwordType)
Returns whether the given password type is used as access password or confirmation password by any channel configuration
|
java.util.List<Configuration> |
listAll()
Returns all configurations
|
java.util.List<Configuration> |
listByThemeUsage(Theme theme,
ThemeUsage usage)
Lists the configurations which uses the given theme under the given usage type
|
java.util.List<Configuration> |
listVisible()
Returns the configurations which are visible by the logged administrator
|
void |
removeGroup(Group group)
Removes a group from any configuration; usually done when the group is disabled, and not supposed to show up anymore.
|
<T> void |
setConfiguration(Configuration configuration,
com.mysema.query.types.Path<T> path,
T value)
Sets a configuration property and add it on the defined collection
|
void |
setLocalization(Configuration configuration,
Language language,
java.lang.String country,
java.lang.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.
|
java.util.List<Configuration> |
sortByHierarchy(java.util.Collection<Configuration> configurations)
Sort the given configurations according to the hierarchy
|
<T extends ActiveConfigurationData> |
toActiveConfiguration(java.lang.Class<T> dataType,
ConfigurationAccessor accessor)
Converts the given
ConfigurationAccessor into an ActiveConfigurationData |
AddressConfigurationData |
toAddressConfiguration(ConfigurationAccessor accessor)
Converts the given
ConfigurationAccessor into an AddressConfigurationData |
PhoneConfigurationData |
toPhoneConfiguration(ConfigurationAccessor accessor)
Converts the given
ConfigurationAccessor into a PhoneConfigurationData |
void |
updateSitemapLastModified(Configuration configuration)
Marks the configuration's sitemap as modified
|
getActiveConfiguration, getDefault, listfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, savevoid clearAccessorCache()
throws FrameworkException
FrameworkExceptionConfiguration createDefaultForNetwork(Network network) throws FrameworkException
FrameworkExceptionjava.util.List<Configuration> getConfigurationTreePath(Configuration configuration) throws FrameworkException
FrameworkExceptionboolean isPasswordTypeInUse(PasswordType passwordType) throws FrameworkException
FrameworkExceptionjava.util.List<Configuration> listAll() throws FrameworkException
FrameworkExceptionjava.util.List<Configuration> listByThemeUsage(Theme theme, ThemeUsage usage) throws FrameworkException
FrameworkExceptionjava.util.List<Configuration> listVisible() throws FrameworkException
FrameworkExceptionvoid removeGroup(Group group) throws FrameworkException
FrameworkException<T> void setConfiguration(Configuration configuration, com.mysema.query.types.Path<T> path, T value) throws FrameworkException
FrameworkExceptionvoid setLocalization(Configuration configuration, Language language, java.lang.String country, java.lang.String timeZoneId) throws FrameworkException
FrameworkExceptionjava.util.List<Configuration> sortByHierarchy(java.util.Collection<Configuration> configurations) throws FrameworkException
FrameworkException<T extends ActiveConfigurationData> T toActiveConfiguration(java.lang.Class<T> dataType, ConfigurationAccessor accessor) throws FrameworkException
ConfigurationAccessor into an ActiveConfigurationDataFrameworkExceptionAddressConfigurationData toAddressConfiguration(ConfigurationAccessor accessor) throws FrameworkException
ConfigurationAccessor into an AddressConfigurationDataFrameworkExceptionPhoneConfigurationData toPhoneConfiguration(ConfigurationAccessor accessor) throws FrameworkException
ConfigurationAccessor into a PhoneConfigurationDataFrameworkExceptionvoid updateSitemapLastModified(Configuration configuration) throws FrameworkException
FrameworkException