Uses of Interface
org.opencastproject.security.api.User
Packages that use User
-
Uses of User in org.opencastproject.security.api
Classes in org.opencastproject.security.api that implement UserMethods in org.opencastproject.security.api that return UserModifier and TypeMethodDescriptionstatic UserSecurityService.getUser()Gets the current user, or the local organization's anonymous user if the user has not been authenticated.Loads a user by username, or returns null if this user is not known to the thread's current organization.Loads a user by username, or returns null if this user is not known to this provider.Methods in org.opencastproject.security.api that return types with arguments of type UserModifier and TypeMethodDescriptionReturn the found user's as an iterator.Return the found user's as an iterator.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 callsloadUseron every single user.UserDirectoryService.getUsers()Gets all known users.UserProvider.getUsers()Gets all known users.UserDirectoryService.loadUsers(Collection<String> userNames) Loads multiple users by a list of user names.Methods in org.opencastproject.security.api with parameters of type UserModifier and TypeMethodDescriptionvoidstatic JaxbUserCreates a JAXB user from a regular user object.static JaxbUserJaxbUser.fromUser(User user, Collection<? extends Role> extraRoles) Creates a JAXB user from a regular user object with an additional set of roles.static booleanAccessControlUtil.isAuthorized(AccessControlList acl, User user, Organization org, Object action) Determines whether theAccessControlListpermits a user to perform an action.static booleanAccessControlUtil.isAuthorized(AccessControlList acl, User user, Organization org, Object action, String mediaPackageId) Determines whether theAccessControlListpermits a user to perform an action.static booleanAccessControlUtil.isAuthorizedAll(AccessControlList acl, User user, Organization org, Object... actions) Returns true only if all actions are authorized.static booleanAccessControlUtil.isAuthorizedOne(AccessControlList acl, User user, Organization org, Object... actions) Returns true if at least one action is authorized.static booleanAccessControlUtil.isProhibitedAll(AccessControlList acl, User user, Organization org, Object... actions) Returns true if all actions are prohibited.static booleanAccessControlUtil.isProhibitedOne(AccessControlList acl, User user, Organization org, Object... actions) Returns true if at least one action is prohibited.voidSets the current thread's user context to another user.static StringConstructors in org.opencastproject.security.api with parameters of type UserModifierConstructorDescriptionUnauthorizedException(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. -
Uses of User in org.opencastproject.security.util
Methods in org.opencastproject.security.util that return UserModifier and TypeMethodDescriptionstatic UserSecurityUtil.createAnonymousUser(Organization org) Create the global anonymous user with the given organization.static UserSecurityUtil.createSystemUser(String systemUserName, Organization org) Create a system user for the given organization with global and organization local admin role.static UserSecurityUtil.createSystemUser(org.osgi.service.component.ComponentContext cc, Organization org) Create a system user for the given organization with global admin role.Methods in org.opencastproject.security.util that return types with arguments of type UserModifier and TypeMethodDescriptionstatic Optional<Tuple<User, Organization>> SecurityUtil.getUserAndOrganization(SecurityService sec, OrganizationDirectoryService orgDir, String orgId, UserDirectoryService userDir, String userId) Get a user and an organization.Methods in org.opencastproject.security.util with parameters of type UserModifier and TypeMethodDescriptionstatic voidSecurityUtil.runAs(SecurityService sec, Organization org, User user, Runnable fn) Run functionfin the context described by the given organization and user.Constructors in org.opencastproject.security.util with parameters of type User