Package ru.bgcrm.model
Class Config
java.lang.Object
ru.bgcrm.model.Config
- All Implemented Interfaces:
LastModifySupport
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIncluded
(Config included) Adds included configuration.getData()
getDate()
Deprecated.Comma separated list of enabled plugins titles.int
getId()
Included configurations, sorted by title.getIncludes
(ConfigDAO configDao, ConfigMap data, boolean validate) Selects includes from global configuration like: include.=1. int
getTitle()
int
Deprecated.boolean
isActive()
Main active configuration.void
setActive
(boolean active) void
void
Deprecated.void
setId
(int id) void
setLastModify
(LastModify lastModify) void
setParentId
(int parentId) void
void
setUserId
(int userId) Deprecated.
-
Field Details
-
INCLUDE_PREFIX
- See Also:
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getId
public int getId() -
setId
public void setId(int id) -
getUserId
Deprecated. -
setUserId
Deprecated. -
isActive
public boolean isActive()Main active configuration.- Returns:
-
setActive
public void setActive(boolean active) -
getDate
Deprecated. -
setDate
Deprecated. -
getData
-
setData
-
getTitle
-
setTitle
-
getParentId
public int getParentId() -
setParentId
public void setParentId(int parentId) -
addIncluded
Adds included configuration.- Parameters:
included
-
-
getIncludedList
Included configurations, sorted by title.- Returns:
-
getValueMap
-
getLastModify
- Specified by:
getLastModify
in interfaceLastModifySupport
-
setLastModify
- Specified by:
setLastModify
in interfaceLastModifySupport
-
getEnabledPluginsTitles
Comma separated list of enabled plugins titles.- Returns:
-
getIncludes
public static Iterable<String> getIncludes(ConfigDAO configDao, ConfigMap data, boolean validate) throws BGMessageException, SQLException Selects includes from global configuration like: include.=1. - Parameters:
configDao
- configuration selector.data
- configuration raw data, containing includes.validate
- выброс исключения при не найденной конфигурации.- Throws:
BGMessageException
- validationSQLException
-