| Package | Description |
|---|---|
| org.opencastproject.security.api | |
| org.opencastproject.security.util |
| Modifier and Type | Class and Description |
|---|---|
class |
JaxbUser
A simple user model.
|
| Modifier and Type | Method and Description |
|---|---|
static User |
UserParser.fromXml(String xml) |
User |
SecurityService.getUser()
Gets the current user, or the local organization's anonymous user if the user has not been authenticated.
|
User |
UserDirectoryService.loadUser(String userName)
Loads a user by username, or returns null if this user is not known to the thread's current organization.
|
User |
UserProvider.loadUser(String userName)
Loads a user by username, or returns null if this user is not known to this provider.
|
| Modifier and Type | Method and Description |
|---|---|
default Iterator<User> |
UserProvider.findUsers(Collection<String> userNames)
Find a list of users by their user names
Note that the default implementation of this might be slow, as it calls
loadUser on every single user. |
Iterator<User> |
UserDirectoryService.findUsers(String query,
int offset,
int limit)
Return the found user's as an iterator.
|
Iterator<User> |
UserProvider.findUsers(String query,
int offset,
int limit)
Return the found user's as an iterator.
|
Iterator<User> |
UserDirectoryService.getUsers()
Gets all known users.
|
Iterator<User> |
UserProvider.getUsers()
Gets all known users.
|
default Iterator<User> |
UserDirectoryService.loadUsers(Collection<String> userNames)
Loads multiple users by a list of user names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JaxbUserList.add(User user) |
static JaxbUser |
JaxbUser.fromUser(User user)
Creates a JAXB user from a regular user object.
|
static JaxbUser |
JaxbUser.fromUser(User user,
Collection<? extends Role> extraRoles)
Creates a JAXB user from a regular user object with an additional set of roles.
|
static boolean |
AccessControlUtil.isAuthorized(AccessControlList acl,
User user,
Organization org,
Object action)
Determines whether the
AccessControlList permits a user to perform an action. |
static boolean |
AccessControlUtil.isAuthorizedAll(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true only if all actions are authorized.
|
static boolean |
AccessControlUtil.isAuthorizedOne(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true if at least one action is authorized.
|
static boolean |
AccessControlUtil.isProhibitedAll(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true if all actions are prohibited.
|
static boolean |
AccessControlUtil.isProhibitedOne(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true if at least one action is prohibited.
|
void |
SecurityService.setUser(User user)
Sets the current thread's user context to another user.
|
static String |
UserParser.toXml(User user) |
| Constructor and Description |
|---|
UnauthorizedException(User user,
String action)
Constructs an UnauthorizedException for the specified user's attempt to take a specified action.
|
UnauthorizedException(User user,
String action,
AccessControlList acl)
Constructs an UnauthorizedException for the specified user's attempt to take a specified action.
|
| Modifier and Type | Method and Description |
|---|---|
static User |
SecurityUtil.createAnonymousUser(Organization org)
Create the global anonymous user with the given organization.
|
static User |
SecurityUtil.createSystemUser(org.osgi.service.component.ComponentContext cc,
Organization org)
Create a system user for the given organization with global admin role.
|
static User |
SecurityUtil.createSystemUser(String systemUserName,
Organization org)
Create a system user for the given organization with global and organization local admin role.
|
| Modifier and Type | Method and Description |
|---|---|
static Option<Tuple<User,Organization>> |
SecurityUtil.getUserAndOrganization(SecurityService sec,
OrganizationDirectoryService orgDir,
String orgId,
UserDirectoryService userDir,
String userId)
Get a user and an organization.
|
static Option<User> |
SecurityUtil.getUserOfOrganization(SecurityService sec,
OrganizationDirectoryService orgDir,
String orgId,
UserDirectoryService userDir,
String userId)
Get a user of a certain organization by its ID.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SecurityUtil.runAs(SecurityService sec,
Organization org,
User user,
Runnable fn)
Run function
f in the context described by the given organization and user. |
| Constructor and Description |
|---|
SecurityContext(SecurityService sec,
Organization org,
User user) |
Copyright © 2009–2020 Opencast Project. All rights reserved.