org.rapla.entities.configuration
Interface Preferences
- All Superinterfaces:
- Entity, Named, Ownable, RaplaObject
public interface Preferences
- extends Entity, RaplaObject, Ownable, Named
Preferences store user-specific Information.
You can store arbitrary configuration objects under unique role names.
Each role can contain 1-n configuration entries.
- See Also:
User
Methods inherited from interface org.rapla.entities.Named |
getName |
TYPE
static final RaplaType TYPE
putEntry
void putEntry(String role,
RaplaObject entry)
- puts a new configuration entry to the role.
putEntry
void putEntry(String role,
String entry)
getEntry
Object getEntry(String role)
throws EntityNotFoundException
- Throws:
EntityNotFoundException
hasEntry
boolean hasEntry(String role)
getEntryAsString
String getEntryAsString(String role)
getEntryAsString
String getEntryAsString(String role,
String defaultValue)
getEntryAsBoolean
boolean getEntryAsBoolean(String role,
boolean defaultValue)
getEntryAsInteger
int getEntryAsInteger(String role,
int defaultValue)
isEmpty
boolean isEmpty()
- returns if there are any preference-entries
Copyright © 2000-2006 Rapla Team. All Rights Reseserved.