public class WarehouseUser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_ROLE
Deprecated.
in favour of
WarehouseUserRole.ADMIN |
static String |
DATA_ADMIN_ROLE
Deprecated.
in favour of
WarehouseUserRole.DATA_ADMIN |
static String |
READ_ONLY_ROLE
Deprecated.
in favour of
WarehouseUserRole.READ_ONLY |
static org.springframework.web.util.UriTemplate |
TEMPLATE |
static String |
URI |
| Constructor and Description |
|---|
WarehouseUser(String role,
String profile,
String login)
Creates a new instance with given parameters.
|
WarehouseUser(String role,
String profile,
String login,
Map<String,String> links) |
| Modifier and Type | Method and Description |
|---|---|
static WarehouseUser |
createWithlogin(String login,
WarehouseUserRole role)
|
static WarehouseUser |
createWithProfile(Account profile,
WarehouseUserRole role)
|
static WarehouseUser |
createWithProfileUri(String profileUri,
WarehouseUserRole role)
|
String |
getId() |
Map<String,String> |
getLinks() |
String |
getLogin() |
String |
getProfile() |
String |
getRole() |
String |
getUri() |
String |
toString() |
public static final String URI
public static final org.springframework.web.util.UriTemplate TEMPLATE
@Deprecated public static final String ADMIN_ROLE
WarehouseUserRole.ADMIN@Deprecated public static final String DATA_ADMIN_ROLE
WarehouseUserRole.DATA_ADMIN@Deprecated public static final String READ_ONLY_ROLE
WarehouseUserRole.READ_ONLYpublic WarehouseUser(String role, String profile, String login)
Only one of the parameters profile and login must be provided.
role - role of the user in ADSprofile - profileId (/gdc/account/profile/{id}) of the userlogin - login of the userpublic static WarehouseUser createWithProfileUri(String profileUri, WarehouseUserRole role)
public static WarehouseUser createWithProfile(Account profile, WarehouseUserRole role)
public static WarehouseUser createWithlogin(String login, WarehouseUserRole role)
public String getRole()
public String getProfile()
public String getLogin()
public String getId()
public String getUri()
Copyright © 2017. All rights reserved.