public class RestUser
extends java.lang.Object
User
object.Constructor and Description |
---|
RestUser() |
Modifier and Type | Method and Description |
---|---|
int |
getArtShowDelay()
How many seconds to delay between flips when running the ArtShow
|
int |
getArtShowFit() |
int |
getBackgroundDelay() |
int |
getBackgroundFit()
Get the User's preferred background fit as defined in
ImageController |
int |
getFindMaxResults()
Maximum number of results returned in a Find
|
java.lang.String |
getUsername()
Get the name of this User
|
boolean |
isAdmin()
Does this User have admin privileges?
|
boolean |
isHideRestricted()
Even though this user has access to the Restricted Sections, does he wish to avert his eyes?
|
boolean |
isUnrestricted()
Can this User browse the restricted sections of the Library? (Nicholas Flamel is not in there)
|
void |
setAdmin(boolean admin) |
void |
setArtShowDelay(int artShowDelay) |
void |
setArtShowFit(int artShowFit) |
void |
setBackgroundDelay(int backgroundDelay) |
void |
setBackgroundFit(int backgroundFit) |
void |
setFindMaxResults(int findMaxResults) |
void |
setHideRestricted(boolean hideRestricted) |
void |
setUnrestricted(boolean unrestricted) |
void |
setUsername(java.lang.String username)
Set the name of this User
|
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- the username to setpublic boolean isAdmin()
public void setAdmin(boolean admin)
admin
- the admin to setpublic boolean isUnrestricted()
public void setUnrestricted(boolean unrestricted)
unrestricted
- the unrestricted to setpublic boolean isHideRestricted()
public void setHideRestricted(boolean hideRestricted)
hideRestricted
- the hideRestricted to setpublic int getBackgroundFit()
ImageController
public void setBackgroundFit(int backgroundFit)
backgroundFit
- the backgroundFit to setpublic int getArtShowFit()
public void setArtShowFit(int artShowFit)
artShowFit
- the artShowFit to setpublic int getBackgroundDelay()
public void setBackgroundDelay(int backgroundDelay)
backgroundDelay
- the backgroundDelay to setpublic int getArtShowDelay()
public void setArtShowDelay(int artShowDelay)
artShowDelay
- the artShowDelay to setpublic int getFindMaxResults()
public void setFindMaxResults(int findMaxResults)
findMaxResults
- the findMaxResults to set