public class User
extends BSAccountUser
Constructor and Description |
---|
User(BSAccount account) |
Modifier and Type | Method and Description |
---|---|
int |
getArtShowDelay() |
int |
getArtShowFit() |
int |
getBackgroundDelay() |
int |
getBackgroundFit()
Get the User's preference for background type
0 = fit the image to the screen
1 = fill the screen with the image (default)
2 = no background image
|
int |
getFindMaxResults() |
java.util.List<UserAttribute> |
getUserAttributes()
Get the attributes as a List of UserAttribute.
|
boolean |
isAdmin()
Is this user an admin?
|
boolean |
isHideRestricted()
Perhaps the User wants to hide the restricted sections, even though he's authorized.
|
boolean |
isUnrestricted()
Is this user allowed access to the restricted areas of the library?
|
void |
setAdmin(boolean admin)
Declare this user to be an admin
|
void |
setArtShowDelay(int artShowDelay) |
void |
setArtShowFit(int artShowFit)
User's preference for the ArtShow background type.
|
void |
setBackgroundDelay(int backgroundDelay) |
void |
setBackgroundFit(int backgroundFit) |
void |
setFindMaxResults(int findMaxResults) |
void |
setHideRestricted(boolean hideRestricted) |
void |
setUnrestricted(boolean unrestricted)
Declare this user's access to the restricted areas.
|
void |
setUserAttributes(java.util.List<UserAttribute> userAttributes) |
public 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()
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 setpublic java.util.List<UserAttribute> getUserAttributes()
public void setUserAttributes(java.util.List<UserAttribute> userAttributes)
attributes
- the attributes to set