public class GlobalDefaultSetting extends Setting
Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
MAX_NAME_LENGTH, MAX_VALUE_LENGTH
Constructor and Description |
---|
GlobalDefaultSetting(GlobalDefaultSettingData data) |
Modifier and Type | Method and Description |
---|---|
static GlobalDefaultSetting |
getById(DbControl dc,
int id)
Get a
ClientDefaultSetting item when you know the ID. |
(package private) GlobalDefaultSettingData |
getData()
Get the
BasicData object that holds all data for this item. |
static GlobalDefaultSetting |
getNew(DbControl dc,
java.lang.String name,
java.lang.String value)
Create a new
GlobalDefaultSetting item. |
static ItemQuery<GlobalDefaultSetting> |
getQuery()
Get a query configured to retrieve global default settings.
|
Item |
getType()
Get the type of item represented by the object.
|
(package private) void |
initPermissions(int granted,
int denied)
READ permission is always granted.
|
addAnnotatableParents, addUsingItems, addUsingItems, breakCircularReferences, checkBatchAnnotatableUsage, checkPermission, equals, getBasicData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, validate
public static final Item TYPE
Item.GLOBALDEFAULTSETTING
,
getType()
GlobalDefaultSetting(GlobalDefaultSettingData data)
public static GlobalDefaultSetting getNew(DbControl dc, java.lang.String name, java.lang.String value) throws BaseException
GlobalDefaultSetting
item.dc
- The DbControl
which will be used for
permission checking and database accessname
- The name of the settingvalue
- The value of the settingClientDefaultSetting
itemBaseException
- If there is an errorpublic static GlobalDefaultSetting getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
ClientDefaultSetting
item when you know the ID.dc
- The DbControl
which will be used for
permission checking and database access.id
- The ID of the item to loadClientDefaultSetting
itemItemNotFoundException
- If an item with the specified
ID is not foundPermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission to the itemBaseException
- If there is another errorpublic static ItemQuery<GlobalDefaultSetting> getQuery()
ItemQuery
objectGlobalDefaultSettingData getData()
BasicItem
BasicData
object that holds all data for this item.public Item getType()
Identifiable
Item
enumeration.void initPermissions(int granted, int denied) throws BaseException
initPermissions
in class Setting
granted
- Permissions that have been granted by the subclassdenied
- Permissions that have been denied by the subclassBaseException
- If the permissions couldn't be initialised