|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.BasicItem<D> net.sf.basedb.core.Setting<GlobalDefaultSettingData> net.sf.basedb.core.GlobalDefaultSetting
public class GlobalDefaultSetting
This class is used to represent a global default setting.
Field Summary | |
---|---|
static Item |
TYPE
The type of item represented by this class. |
Fields inherited from class net.sf.basedb.core.Setting |
---|
MAX_NAME_LENGTH, MAX_VALUE_LENGTH |
Constructor Summary | |
---|---|
GlobalDefaultSetting(GlobalDefaultSettingData data)
|
Method Summary | |
---|---|
static GlobalDefaultSetting |
getById(DbControl dc,
int id)
Get a ClientDefaultSetting item when you know the ID. |
static GlobalDefaultSetting |
getNew(DbControl dc,
String name,
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. |
Methods inherited from class net.sf.basedb.core.Setting |
---|
getName, getValue, setName, setValue |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, toTransferable, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Item TYPE
Item.GLOBALDEFAULTSETTING
,
getType()
Constructor Detail |
---|
GlobalDefaultSetting(GlobalDefaultSettingData data)
Method Detail |
---|
public static GlobalDefaultSetting getNew(DbControl dc, String name, 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 setting
ClientDefaultSetting
item
BaseException
- 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 load
ClientDefaultSetting
item
ItemNotFoundException
- If an item with the specified
ID is not found
PermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission to the item
BaseException
- If there is another errorpublic static ItemQuery<GlobalDefaultSetting> getQuery()
ItemQuery
objectpublic Item getType()
Identifiable
Item
enumeration.
void initPermissions(int granted, int denied) throws BaseException
initPermissions
in class Setting<GlobalDefaultSettingData>
granted
- Permissions that have been granted by the subclassdenied
- Permissions that have been denied by the subclass
BaseException
- If the permissions couldn't be initialised
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |