| Package | Description |
|---|---|
| org.opencastproject.security.api | |
| org.opencastproject.security.util |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultOrganization
The default organization.
|
class |
JaxbOrganization
An organization that is hosted on this Opencast instance.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Organization> |
OrganizationList.organizations
The list of organizations
|
| Modifier and Type | Method and Description |
|---|---|
static Organization |
OrganizationParser.fromXml(String xml) |
Organization |
User.getOrganization()
Returns the user's organization identifier.
|
Organization |
JaxbGroup.getOrganization() |
Organization |
SecurityService.getOrganization()
Gets the organization associated with the current thread context.
|
Organization |
Group.getOrganization()
Gets the user's organization.
|
Organization |
JaxbUser.getOrganization() |
Organization |
OrganizationDirectoryService.getOrganization(String id)
Gets an organization by its identifier.
|
Organization |
OrganizationDirectoryService.getOrganization(URL url)
Gets an organization by request URL.
|
| Modifier and Type | Method and Description |
|---|---|
List<Organization> |
OrganizationList.getOrganizations() |
List<Organization> |
OrganizationDirectoryService.getOrganizations()
Gets all registered organizations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JaxbOrganizationList.add(Organization org) |
static JaxbOrganization |
JaxbOrganization.fromOrganization(Organization org)
Constructs an organization from an organization
|
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 |
OrganizationDirectoryListener.organizationRegistered(Organization organization)
This callback notifies listeners about an organization that appeared in the organization directory.
|
void |
OrganizationDirectoryListener.organizationUnregistered(Organization organization)
This callback notifies listeners about an organization that disappeared from the organization directory.
|
void |
OrganizationDirectoryListener.organizationUpdated(Organization organization)
This callback notifies listeners about an organization that was updated.
|
void |
SecurityService.setOrganization(Organization organization)
Sets the organization for the calling thread.
|
static String |
OrganizationParser.toXml(Organization organization) |
| Modifier and Type | Method and Description |
|---|---|
void |
OrganizationList.setOrganizations(List<Organization> organizations) |
| Constructor and Description |
|---|
OrganizationList(List<Organization> organizations)
Constructs a new OrganizationList wrapper from a list of organizations.
|
| Modifier and Type | Method and Description |
|---|---|
static Option<Organization> |
SecurityUtil.getOrganization(OrganizationDirectoryService orgDir,
String orgId)
Get the organization
orgId. |
static Option<Tuple<User,Organization>> |
SecurityUtil.getUserAndOrganization(SecurityService sec,
OrganizationDirectoryService orgDir,
String orgId,
UserDirectoryService userDir,
String userId)
Get a user and an organization.
|
| 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.
|
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–2021 Opencast Project. All rights reserved.