@ApplicationScoped public class UserResourceImpl extends Object implements IUserResource
| Constructor and Description |
|---|
UserResourceImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UserBean |
get(String userId) |
SearchResultsBean<AuditEntryBean> |
getActivity(String userId,
int page,
int pageSize) |
List<OrganizationSummaryBean> |
getApiOrganizations(String userId) |
List<ApiSummaryBean> |
getApis(String userId) |
List<OrganizationSummaryBean> |
getClientOrganizations(String userId) |
List<ClientSummaryBean> |
getClients(String userId) |
List<ClientSummaryBean> |
getEditableClients(String userId) |
CurrentUserBean |
getInfo() |
List<OrganizationSummaryBean> |
getOrganizations(String userId) |
UserPermissionsBean |
getPermissionsForUser(String userId) |
List<OrganizationSummaryBean> |
getPlanOrganizations(String userId) |
IStorageQuery |
getQuery() |
ISecurityContext |
getSecurityContext() |
IStorage |
getStorage() |
void |
setQuery(IStorageQuery query) |
void |
setSecurityContext(ISecurityContext securityContext) |
void |
setStorage(IStorage storage) |
void |
update(String userId,
UpdateUserBean user) |
public UserBean get(String userId) throws UserNotFoundException
get in interface IUserResourceUserNotFoundExceptionIUserResource.get(java.lang.String)public CurrentUserBean getInfo()
getInfo in interface IUserResourceIUserResource.getInfo()public void update(String userId, UpdateUserBean user) throws UserNotFoundException, NotAuthorizedException
update in interface IUserResourceUserNotFoundExceptionNotAuthorizedExceptionIUserResource.update(java.lang.String, io.apiman.manager.api.beans.idm.UpdateUserBean)public List<OrganizationSummaryBean> getOrganizations(String userId) throws NotAuthorizedException
getOrganizations in interface IUserResourceNotAuthorizedExceptionIUserResource.getOrganizations(java.lang.String)public List<ClientSummaryBean> getClients(String userId) throws NotAuthorizedException, SystemErrorException
getClients in interface IUserResourceNotAuthorizedExceptionSystemErrorExceptionIUserResource.getClients(java.lang.String)public List<ClientSummaryBean> getEditableClients(String userId) throws NotAuthorizedException, SystemErrorException
getEditableClients in interface IUserResourceNotAuthorizedExceptionSystemErrorExceptionIUserResource.getEditableClients(String)public List<ApiSummaryBean> getApis(String userId) throws NotAuthorizedException
getApis in interface IUserResourceNotAuthorizedExceptionIUserResource.getApis(java.lang.String)public SearchResultsBean<AuditEntryBean> getActivity(String userId, int page, int pageSize) throws NotAuthorizedException
getActivity in interface IUserResourceNotAuthorizedExceptionIUserResource.getActivity(java.lang.String, int, int)public UserPermissionsBean getPermissionsForUser(String userId) throws UserNotFoundException, NotAuthorizedException
getPermissionsForUser in interface IUserResourceUserNotFoundExceptionNotAuthorizedExceptionIUserResource.getPermissionsForUser(java.lang.String)public List<OrganizationSummaryBean> getClientOrganizations(String userId) throws SystemErrorException
getClientOrganizations in interface IUserResourceSystemErrorExceptionIUserResource.getClientOrganizations(String)public List<OrganizationSummaryBean> getApiOrganizations(String userId) throws SystemErrorException
getApiOrganizations in interface IUserResourceSystemErrorExceptionIUserResource.getApiOrganizations(String)public List<OrganizationSummaryBean> getPlanOrganizations(String userId) throws SystemErrorException
getPlanOrganizations in interface IUserResourceSystemErrorExceptionIUserResource.getPlanOrganizations(String)public ISecurityContext getSecurityContext()
public void setSecurityContext(ISecurityContext securityContext)
securityContext - the securityContext to setpublic IStorageQuery getQuery()
public void setQuery(IStorageQuery query)
query - the query to setpublic IStorage getStorage()
public void setStorage(IStorage storage)
storage - the storage to setCopyright © 2021 Apiman. All rights reserved.