public class OwncloudModificationUser extends Object
OwncloudUserModificationService.saveUser(OwncloudModificationUser)| Modifier and Type | Class and Description |
|---|---|
static class |
OwncloudModificationUser.OwncloudModificationUserBuilder |
| Constructor and Description |
|---|
OwncloudModificationUser(String username) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String group)
Add a Group to the User
|
static OwncloudModificationUser.OwncloudModificationUserBuilder |
builder() |
boolean |
equals(Object o) |
String |
getDisplayname()
Display Name of the User to be modified.
|
String |
getEmail()
Email of the User to be modified.
|
List<String> |
getGroups() |
String |
getPassword()
Password of the new User.
|
Long |
getQuota()
Quota of the User to be modified (in Bytes).
|
String |
getUsername()
Username of the User to be saved
|
int |
hashCode() |
boolean |
isEnabled()
State of the User to be modified.
|
static OwncloudModificationUser |
of(OwncloudUserDetails userDetails)
Creates a new Instance by copying the Values of an existing
OwncloudUserDetails Object. |
void |
removeGroup(String group)
Remove a Group from the User
|
void |
setDisplayname(String displayname)
Display Name of the User to be modified.
|
void |
setEmail(String email)
Email of the User to be modified.
|
void |
setEnabled(boolean enabled)
State of the User to be modified.
|
void |
setPassword(String password)
Password of the new User.
|
void |
setQuota(Long quota)
Quota of the User to be modified (in Bytes).
|
String |
toString() |
public OwncloudModificationUser(String username)
public static OwncloudModificationUser of(OwncloudUserDetails userDetails)
OwncloudUserDetails Object.
A OwncloudUserDetails Object will be returned by the
OwncloudUserDetailsService.loadUserByUsername(String) during
the Authentication Process of the
OwncloudAuthenticationProvider.authenticate(org.springframework.security.core.Authentication)
and resist as a Principal within the
Authentication Object (returned by
Authentication.getPrincipal()userDetails - existing OwncloudUserDetails Objectpublic void addGroup(String group)
group - Group to be addedpublic void removeGroup(String group)
group - Group to be removedpublic static OwncloudModificationUser.OwncloudModificationUserBuilder builder()
public String getUsername()
public String getPassword()
public boolean isEnabled()
true) or disabled
(false)true) or disabled
(false)public String getDisplayname()
public String getEmail()
public Long getQuota()
public void setPassword(String password)
password - Password of the new Userpublic void setEnabled(boolean enabled)
enabled - set the User to be enabled (true) or disabled
(false)
(false)public void setDisplayname(String displayname)
displayname - Display Name of the User to be modifiedpublic void setEmail(String email)
email - Email of the User to be modifiedpublic void setQuota(Long quota)
quota - Quota of the User to be modified (in Bytes)Copyright © 2016–2020 coolstuff.software. All rights reserved.