|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.AbstractWabitObject
ca.sqlpower.wabit.enterprise.client.User
public class User
| Constructor Summary | |
|---|---|
User(java.lang.String username,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
protected void |
addChildImpl(WabitObject child,
int index)
This is the object specific implementation of #addChild(WabitObject). |
void |
addGrant(Grant grant)
|
void |
addGrant(Grant grant,
int index)
|
boolean |
allowsChildren()
Returns true if this object may contain children. |
int |
childPositionOffset(java.lang.Class<? extends WabitObject> childType)
Returns the position in the list that would be returned by getChildren() that the first object of type childClass is, or where it would be if there were any children of that type. |
org.springframework.security.GrantedAuthority[] |
getAuthorities()
|
java.util.List<? extends WabitObject> |
getChildren()
Returns an unmodifiable list of the children in this WabitObject. |
java.util.List<WabitObject> |
getDependencies()
Returns a list of all WabitObjects that this Wabit object is
dependent on. |
java.lang.String |
getEmail()
|
java.lang.String |
getFullName()
|
java.util.List<Grant> |
getGrants()
The returned list is mutable. |
java.lang.String |
getPassword()
|
java.lang.String |
getUsername()
|
boolean |
isAccountNonExpired()
|
boolean |
isAccountNonLocked()
|
boolean |
isCredentialsNonExpired()
|
boolean |
isEnabled()
|
protected boolean |
removeChildImpl(WabitObject child)
This is the object specific implementation of removeChild. |
void |
removeDependency(WabitObject dependency)
Removes the given object as a dependency of this object. |
boolean |
removeGrant(Grant grant)
|
void |
setAuthorities(org.springframework.security.GrantedAuthority[] authorities)
|
void |
setEmail(java.lang.String email)
|
void |
setFullName(java.lang.String fullName)
|
void |
setPassword(java.lang.String password)
|
java.lang.String |
toString()
|
| Methods inherited from class ca.sqlpower.wabit.AbstractWabitObject |
|---|
addChild, addWabitListener, begin, beginTransaction, cleanup, commit, commitTransaction, equals, fireChildAdded, fireChildRemoved, firePropertyChange, firePropertyChange, firePropertyChange, fireTransactionEnded, fireTransactionRollback, fireTransactionStarted, generateNewUUID, getChildren, getName, getParent, getSession, getUUID, isForegroundThread, removeChild, removeWabitListener, rollback, rollbackTransaction, runInBackground, runInForeground, setName, setParent, setUUID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public User(java.lang.String username,
java.lang.String password)
| Method Detail |
|---|
protected boolean removeChildImpl(WabitObject child)
AbstractWabitObject
removeChildImpl in class AbstractWabitObjectAbstractWabitObject.removeChild(WabitObject)public boolean allowsChildren()
WabitObject
allowsChildren in interface WabitObjectWabitObject.childPositionOffset(Class)public int childPositionOffset(java.lang.Class<? extends WabitObject> childType)
WabitObject
childPositionOffset in interface WabitObjectpublic java.util.List<? extends WabitObject> getChildren()
WabitObject
getChildren in interface WabitObjectpublic java.util.List<WabitObject> getDependencies()
WabitObjectWabitObjects that this Wabit object is
dependent on. Children of a WabitObject are not dependencies and will not
be returned in this list. If there are no objects this Wabit object is
dependent on an empty list should be returned. These are only the
immediate dependencies of this object. If you want to find the
dependencies of this object's dependencies as well it may be useful to
look at WorkspaceGraphModel to make a full graph of all of the
dependencies.
getDependencies in interface WabitObjectpublic void removeDependency(WabitObject dependency)
WabitObject
removeDependency in interface WabitObjectpublic java.lang.String getPassword()
getPassword in interface org.springframework.security.userdetails.UserDetailspublic void setPassword(java.lang.String password)
public void addGrant(Grant grant)
public void addGrant(Grant grant,
int index)
public boolean removeGrant(Grant grant)
protected void addChildImpl(WabitObject child,
int index)
AbstractWabitObject#addChild(WabitObject). There are checks in the
#addChild(WabitObject) method to ensure that the object given
here is a valid child type of this object.
This method should be overwritten if children are allowed.
addChildImpl in class AbstractWabitObjectchild - The child to add to this object.index - The index to add the child at.public java.lang.String getFullName()
public void setFullName(java.lang.String fullName)
public java.lang.String getEmail()
public void setEmail(java.lang.String email)
public java.util.List<Grant> getGrants()
public org.springframework.security.GrantedAuthority[] getAuthorities()
getAuthorities in interface org.springframework.security.userdetails.UserDetailspublic void setAuthorities(org.springframework.security.GrantedAuthority[] authorities)
public java.lang.String getUsername()
getUsername in interface org.springframework.security.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.userdetails.UserDetailspublic java.lang.String toString()
toString in class AbstractWabitObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||