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

Field Summary
static RaplaType TYPE
           
 
Fields inherited from interface org.rapla.entities.Entity
ENTITY_ARRAY
 
Method Summary
 Object getEntry(String role)
           
 boolean getEntryAsBoolean(String role, boolean defaultValue)
           
 int getEntryAsInteger(String role, int defaultValue)
           
 String getEntryAsString(String role)
           
 String getEntryAsString(String role, String defaultValue)
           
 boolean hasEntry(String role)
           
 boolean isEmpty()
          returns if there are any preference-entries
 void putEntry(String role, RaplaObject entry)
          puts a new configuration entry to the role.
 void putEntry(String role, String entry)
           
 
Methods inherited from interface org.rapla.entities.Entity
isIdentical, isPersistant
 
Methods inherited from interface org.rapla.entities.RaplaObject
getRaplaType
 
Methods inherited from interface org.rapla.entities.Ownable
getOwner, setOwner
 
Methods inherited from interface org.rapla.entities.Named
getName
 

Field Detail

TYPE

static final RaplaType TYPE
Method Detail

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.