| Package | Description |
|---|---|
| org.hawkular.accounts.api |
Provides the main API for Hawkular components intending to perform permission checking and authorization procedures.
|
| org.hawkular.accounts.api.internal.impl | |
| org.hawkular.accounts.api.model |
Entities related to the API.
|
| Modifier and Type | Method and Description |
|---|---|
HawkularUser |
UserService.getById(String id)
Retrieves an
HawkularUser based in its ID. |
HawkularUser |
UserService.getCurrent()
Retrieves the current user for the request.
|
HawkularUser |
UserService.getOrCreateById(String id)
Retrieves an
HawkularUser based on its ID. |
HawkularUser |
UserService.getOrCreateByIdAndName(String id,
String name)
Retrieves an
HawkularUser based on its ID. |
| Modifier and Type | Method and Description |
|---|---|
Invitation |
InvitationService.accept(Invitation invitation,
HawkularUser user)
Marks an invitation as accepted, converting the data from
Invitation into an
OrganizationMembership |
Invitation |
InvitationService.create(String email,
HawkularUser invitedBy,
Organization organization,
Role role)
Stores an invitation with the given parameters.
|
UserSettings |
UserSettingsService.getByUser(HawkularUser user)
Retrieves a UserSettings object for the given user or null if none exist.
|
UserSettings |
UserSettingsService.getOrCreateByUser(HawkularUser user)
Retrieves a UserSettings object for the given user or a new one if none exists.
|
String |
UserSettingsService.getSettingByKey(HawkularUser user,
String key)
Retrieves a setting with the given key for the specified user.
|
String |
UserSettingsService.getSettingByKey(HawkularUser user,
String key,
String defaultValue)
Retrieves a setting with the given key for the specified user, returning the value specified in 'default' if
no setting is available for the key.
|
boolean |
PersonaService.isAllowedToImpersonate(HawkularUser actual,
Persona toImpersonate)
Checks if the current user is allowed to impersonate the given persona.
|
UserSettings |
UserSettingsService.remove(HawkularUser user,
String key)
Removes the specified setting value under the given key, for the specified user.
|
UserSettings |
UserSettingsService.store(HawkularUser user,
String key,
String value)
Stores the specified setting value under the given key, for the specified user.
|
| Modifier and Type | Method and Description |
|---|---|
HawkularUser |
UserServiceImpl.getById(String id) |
HawkularUser |
UserServiceImpl.getCurrent() |
HawkularUser |
UserServiceImpl.getOrCreateById(String id) |
HawkularUser |
UserServiceImpl.getOrCreateByIdAndName(String id,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Invitation |
InvitationServiceImpl.accept(Invitation invitation,
HawkularUser user) |
Invitation |
InvitationServiceImpl.create(String email,
HawkularUser invitedBy,
Organization organization,
Role role) |
UserSettings |
UserSettingsServiceImpl.getByUser(HawkularUser user) |
UserSettings |
UserSettingsServiceImpl.getOrCreateByUser(HawkularUser user) |
String |
UserSettingsServiceImpl.getSettingByKey(HawkularUser user,
String key) |
String |
UserSettingsServiceImpl.getSettingByKey(HawkularUser user,
String key,
String defaultValue) |
boolean |
PersonaServiceImpl.isAllowedToImpersonate(HawkularUser actual,
Persona toImpersonate) |
UserSettings |
UserSettingsServiceImpl.remove(HawkularUser user,
String key) |
UserSettings |
UserSettingsServiceImpl.store(HawkularUser user,
String key,
String value) |
| Modifier and Type | Field and Description |
|---|---|
static javax.persistence.metamodel.SingularAttribute<Invitation,HawkularUser> |
Invitation_.acceptedBy |
static javax.persistence.metamodel.SingularAttribute<Invitation,HawkularUser> |
Invitation_.invitedBy |
static javax.persistence.metamodel.SingularAttribute<HawkularUser,String> |
HawkularUser_.name |
static javax.persistence.metamodel.SingularAttribute<UserSettings,HawkularUser> |
UserSettings_.user |
| Modifier and Type | Method and Description |
|---|---|
HawkularUser |
Invitation.getAcceptedBy() |
HawkularUser |
Invitation.getInvitedBy() |
HawkularUser |
UserSettings.getUser() |
| Modifier and Type | Method and Description |
|---|---|
void |
Invitation.setAcceptedBy(HawkularUser acceptedBy) |
| Constructor and Description |
|---|
Invitation(String email,
HawkularUser invitedBy,
Organization organization,
Role role) |
Invitation(String id,
String email,
HawkularUser invitedBy,
Organization organization,
Role role) |
UserSettings(HawkularUser user) |
UserSettings(HawkularUser user,
Map<String,String> properties) |
Copyright © 2015 Red Hat, Inc.. All rights reserved.