com.mizar.credentials
Interface User

All Known Implementing Classes:
UserBean, UserRow

public interface User

Represents a user's credentials to the system but does not represent their identity.


Method Summary
 java.lang.String getAddress1()
           
 java.lang.String getAddress2()
           
 java.lang.String getAdminNote()
           
 java.lang.String getCity()
           
 java.lang.String getCompany()
           
 java.lang.String getCounty()
           
 java.util.Date getCreated()
           
 java.lang.String getEmail()
           
 java.lang.String getFirstName()
           
 java.lang.String getFullName()
           
 java.lang.String getFullNameLF()
           
 java.util.List<Group> getGroups()
           
 java.lang.String getLastName()
           
 java.util.Date getLockedOut()
           
 java.util.List<Permission> getPermissions()
           
 java.lang.String getPhoneNumber()
           
 java.util.List<UserProperties> getProperties()
           
 java.util.List<Role> getRoles()
           
 java.lang.String getSalutation()
           
 char[] getSettings()
           
 java.lang.String getState()
           
 java.lang.String getStatus()
           
 java.lang.String getTitle()
           
 java.lang.Long getUserId()
           
 java.lang.String getUserName()
           
 java.lang.String getZip()
           
 boolean hasPermission(java.lang.String permissionName)
          Determines if the user has the specified permission.
 boolean hasRole(java.lang.String roleName)
          Determines if the user has the specified role.
 boolean isUserInGroup(java.lang.String groupName)
          Determines if the user is in the specified group.
 void setAddress1(java.lang.String address1)
           
 void setAddress2(java.lang.String address2)
           
 void setAdminNote(java.lang.String adminNote)
           
 void setCity(java.lang.String city)
           
 void setCompany(java.lang.String company)
           
 void setCounty(java.lang.String county)
           
 void setCreated(java.util.Date created)
           
 void setEmail(java.lang.String email)
           
 void setFirstName(java.lang.String firstName)
           
 void setGroups(java.util.List<Group> groups)
           
 void setLastName(java.lang.String lastName)
           
 void setLockedOut(java.util.Date lockedOut)
           
 void setPermissions(java.util.List<Permission> permissions)
           
 void setPhoneNumber(java.lang.String phoneNumber)
           
 void setProperties(java.util.List<UserProperties> properties)
           
 void setRoles(java.util.List<Role> roles)
           
 void setSalutation(java.lang.String salutation)
           
 void setSettings(char[] settings)
           
 void setState(java.lang.String state)
           
 void setStatus(java.lang.String status)
           
 void setTitle(java.lang.String title)
           
 void setUserId(java.lang.Long userId)
           
 void setUserName(java.lang.String userName)
           
 void setZip(java.lang.String zip)
           
 

Method Detail

setUserId

void setUserId(java.lang.Long userId)

getUserId

java.lang.Long getUserId()

setUserName

void setUserName(java.lang.String userName)

getUserName

java.lang.String getUserName()

setEmail

void setEmail(java.lang.String email)

getEmail

java.lang.String getEmail()

setSalutation

void setSalutation(java.lang.String salutation)

getSalutation

java.lang.String getSalutation()

setFirstName

void setFirstName(java.lang.String firstName)

getFirstName

java.lang.String getFirstName()

setLastName

void setLastName(java.lang.String lastName)

getLastName

java.lang.String getLastName()

setTitle

void setTitle(java.lang.String title)

getTitle

java.lang.String getTitle()

setCompany

void setCompany(java.lang.String company)

getCompany

java.lang.String getCompany()

setAddress1

void setAddress1(java.lang.String address1)

getAddress1

java.lang.String getAddress1()

setAddress2

void setAddress2(java.lang.String address2)

getAddress2

java.lang.String getAddress2()

setCity

void setCity(java.lang.String city)

getCity

java.lang.String getCity()

setState

void setState(java.lang.String state)

getState

java.lang.String getState()

setZip

void setZip(java.lang.String zip)

getZip

java.lang.String getZip()

setCounty

void setCounty(java.lang.String county)

getCounty

java.lang.String getCounty()

setPhoneNumber

void setPhoneNumber(java.lang.String phoneNumber)

getPhoneNumber

java.lang.String getPhoneNumber()

setCreated

void setCreated(java.util.Date created)

getCreated

java.util.Date getCreated()

setLockedOut

void setLockedOut(java.util.Date lockedOut)

getLockedOut

java.util.Date getLockedOut()

setStatus

void setStatus(java.lang.String status)

getStatus

java.lang.String getStatus()

setAdminNote

void setAdminNote(java.lang.String adminNote)

getAdminNote

java.lang.String getAdminNote()

setSettings

void setSettings(char[] settings)

getSettings

char[] getSettings()

setProperties

void setProperties(java.util.List<UserProperties> properties)

getProperties

java.util.List<UserProperties> getProperties()

setGroups

void setGroups(java.util.List<Group> groups)

getGroups

java.util.List<Group> getGroups()

setRoles

void setRoles(java.util.List<Role> roles)

getRoles

java.util.List<Role> getRoles()

setPermissions

void setPermissions(java.util.List<Permission> permissions)

getPermissions

java.util.List<Permission> getPermissions()

getFullName

java.lang.String getFullName()

getFullNameLF

java.lang.String getFullNameLF()

isUserInGroup

boolean isUserInGroup(java.lang.String groupName)
Determines if the user is in the specified group.

Example:

if(user.isUserInRole("Sumerset County") {
//Do something permission-y
}

Parameters:
groupName - Group name to check against. Case-sensitive.
Returns:
true if the user is part of the specified group.

hasRole

boolean hasRole(java.lang.String roleName)
Determines if the user has the specified role.


Example:
if(user.hasRole("Updater") {
//Do something permission-y
}

Parameters:
roleName - Role name to check against. Case-sensitive.
Returns:
true if the user has the specified permission.

hasPermission

boolean hasPermission(java.lang.String permissionName)
Determines if the user has the specified permission.


Example:
if(user.hasPermission("Updater") {
//Do something permission-y
}

Parameters:
permissionName - permission name to check against. Case-sensitive.
Returns:
true if the user has the specified permission.