| Package | Description |
|---|---|
| org.opencastproject.job.api | |
| org.opencastproject.security.api | |
| org.opencastproject.security.util | |
| org.opencastproject.serviceregistry.api |
Service implementation classes
|
| org.opencastproject.util |
Utility classes for dealing with media packages, collections, URLs, files, and streams.
|
| org.opencastproject.util.data | |
| org.opencastproject.util.data.functions | |
| org.opencastproject.util.persistence |
| Modifier and Type | Field and Description |
|---|---|
static Function<Tuple<String,String>,JaxbIncidentDetail> |
JaxbIncidentDetail.mkFn |
static Function<JaxbIncidentDetail,Tuple<String,String>> |
JaxbIncidentDetail.toDetailFn |
| Modifier and Type | Method and Description |
|---|---|
Tuple<String,String> |
JaxbIncidentDetail.toDetail() |
| Modifier and Type | Method and Description |
|---|---|
List<Tuple<String,String>> |
IncidentImpl.getDetails() |
List<Tuple<String,String>> |
Incident.getDetails()
List of additional technical information having a name and a text
[(name, text)]. |
| Constructor and Description |
|---|
JaxbIncidentDetail(Tuple<String,String> detail) |
| Constructor and Description |
|---|
IncidentImpl(long id,
long jobId,
String serviceType,
String processingHost,
Date timestamp,
Incident.Severity severity,
String code,
List<Tuple<String,String>> details,
Map<String,String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
Tuple<AccessControlList,AclScope> |
AuthorizationService.getAcl(MediaPackage mp,
AclScope scope)
Gets the access control list for a given scope associated with the given media package, as specified by its XACML
attachments.
|
Tuple<AccessControlList,AclScope> |
AuthorizationService.getActiveAcl(MediaPackage mp)
Gets the active access control list associated with the given media package, as specified by its XACML
attachments.
|
Tuple<MediaPackage,Attachment> |
AuthorizationService.setAcl(MediaPackage mp,
AclScope scope,
AccessControlList acl)
Attaches the provided policies to a media package as a XACML attachment, replacing any previous policy element of
the same scope.
|
| Modifier and Type | Method and Description |
|---|---|
static Either<AccessControlEntry,List<AccessControlEntry>> |
AccessControlUtil.entries(String role,
Tuple<String,Boolean>... actions)
Create a list of access control entries for a given role.
|
| Modifier and Type | Method and Description |
|---|---|
static Tuple<String,Integer> |
SecurityUtil.hostAndPort(URL url)
Extract hostname and port number from a URL.
|
| 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.
|
| Modifier and Type | Field and Description |
|---|---|
static List<Tuple<String,String>> |
Incidents.NO_DETAILS |
| Modifier and Type | Method and Description |
|---|---|
void |
Incidents.record(Job job,
Incident.Severity severity,
int code,
Map<String,String> params,
List<Tuple<String,String>> details)
Record an incident for a given job.
|
void |
Incidents.recordFailure(Job job,
int code,
List<Tuple<String,String>> details)
Record a failure incident for a given job.
|
void |
Incidents.recordFailure(Job job,
int code,
Map<String,String> params,
List<Tuple<String,String>> details)
Record a failure incident for a given job.
|
void |
Incidents.recordFailure(Job job,
int code,
Throwable t,
List<Tuple<String,String>> details)
Record a failure incident for a given job.
|
void |
Incidents.recordFailure(Job job,
int code,
Throwable t,
Map<String,String> params,
List<Tuple<String,String>> details)
Record a failure incident for a given job.
|
Incident |
IncidentService.storeIncident(Job job,
Date timestamp,
String code,
Incident.Severity severity,
Map<String,String> descriptionParameters,
List<Tuple<String,String>> details)
Stores a new job incident.
|
| Modifier and Type | Field and Description |
|---|---|
static Function<Tuple<String,String>,org.apache.http.NameValuePair> |
HttpUtil.param_ |
| Modifier and Type | Method and Description |
|---|---|
static Tuple<String,String> |
RestUtil.getEndpointUrl(org.osgi.service.component.ComponentContext cc)
Return the endpoint's server URL and the service path by extracting the relevant parameters from the
ComponentContext.
|
static Tuple<String,String> |
RestUtil.getEndpointUrl(org.osgi.service.component.ComponentContext cc,
String serverUrlKey,
String servicePathKey)
Return the endpoint's server URL and the service path by extracting the relevant parameters from the
ComponentContext.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.client.methods.HttpGet |
HttpUtil.get(String path,
Tuple<String,String>... queryParams) |
static org.apache.http.NameValuePair |
HttpUtil.param(Tuple<String,String> p) |
static String |
OsgiUtil.showConfig(Tuple<String,?>... cfg)
Create a config info string suitable for logging purposes.
|
| Modifier and Type | Method and Description |
|---|---|
protected Tuple<A,Object> |
VCell.change() |
protected abstract Tuple<A,Object> |
Cell.change() |
static <A,B> Tuple<A,B> |
Tuple.tuple(A a,
B b)
Create a new tuple with two elements
a and b. |
| Modifier and Type | Method and Description |
|---|---|
<B> Option<Tuple<A,B>> |
Option.and(Option<B> b) |
static <K,V> List<Tuple<K,V>> |
Collections.toList(Map<K,V> map)
Create a list of tuples (K, V) from a map.
|
Function<Tuple<A,B>,C> |
Function2.tupled() |
abstract <B> Monadics.ListMonadic<Tuple<A,B>> |
Monadics.ListMonadic.zip(B[] bs) |
abstract <B> Monadics.ListMonadic<Tuple<A,B>> |
Monadics.ListMonadic.zip(Iterator<B> bs) |
abstract <B,M extends Iterable<B>> |
Monadics.ListMonadic.zip(M bs) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Dictionary<K,V> |
Collections.dict(Tuple<? extends K,? extends V>... ts)
Create a dictionary from a list of tuples (K, V).
|
static <K,V> Map<K,V> |
Collections.map(Tuple<? extends K,? extends V>... ts)
Create a map from a list of tuples (K, V).
|
static Properties |
Collections.properties(Tuple<String,String>... ts)
Create properties from a list of tuples (K, V).
|
static <K,V> SortedMap<K,V> |
Collections.smap(Tuple<? extends K,? extends V>... ts)
Create a sorted map from a list of tuples (K, V) based on the natural ordering of K.
|
static <K,V> Map<K,V> |
Collections.toList(Tuple<? extends K,? extends V>... ts) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V,X> com.google.common.collect.Multimap<K,V> |
Collections.makeMap(com.google.common.collect.Multimap<K,V> map,
Iterable<? extends X> values,
Function<? super X,Tuple<K,V>> group)
Partition a list after some predicate
group into map. |
| Modifier and Type | Method and Description |
|---|---|
static <A> Function<A[],Tuple<A,A>> |
Tuples.fromArray() |
static <A> Function<List<A>,Tuple<A,A>> |
Tuples.fromList() |
static <A,B> Function<A,Tuple<A,B>> |
Tuples.tupleA(B b) |
static <A,B> Function<B,Tuple<A,B>> |
Tuples.tupleB(A a) |
static <A,B,C> Function<Tuple<A,B>,C> |
Functions.tupled(Function2<? super A,? super B,? extends C> f)
Create a tupled version of a function of arity 2.
|
| Modifier and Type | Field and Description |
|---|---|
static Queries.TypedQueriesBase<Tuple<String,?>> |
Queries.jpql
JPQL queries with support for named parameters.
|
static Queries.TypedQueriesBase<Tuple<String,?>> |
Queries.named
Named queries with support for named parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static javax.persistence.Query |
PersistenceUtil.createNamedQuery(javax.persistence.EntityManager em,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named query(EntityManager, String, Class, Object[]) |
static <A,B> Option<A> |
PersistenceUtil.find(javax.persistence.EntityManager em,
Function<B,A> toA,
String queryName,
Tuple<String,?>... params)
Deprecated.
|
static <A,B> List<A> |
PersistenceUtil.findAll(javax.persistence.EntityManager em,
Function<B,A> toA,
Option<Integer> offset,
Option<Integer> limit,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named findAll(EntityManager, String, Option, Option, Object[]) instead |
static <A,B> List<A> |
PersistenceUtil.findAll(javax.persistence.EntityManager em,
Function<B,A> toA,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named findAll(EntityManager, String, Object[]) instead |
<A> List<A> |
Queries.TypedQueriesBase.findAll(javax.persistence.EntityManager em,
String q,
Class<A> type,
Tuple<String,?>... params)
Find multiple entities.
|
static <A> List<A> |
PersistenceUtil.findAll(javax.persistence.EntityManager em,
String queryName,
Option<Integer> offset,
Option<Integer> limit,
Tuple<String,?>... params)
Deprecated.
use
Queries.named findAll(EntityManager, String, Option, Option, Object[]) |
static <A> List<A> |
PersistenceUtil.findAll(javax.persistence.EntityManager em,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named findAll(EntityManager, String, Object[]) |
<A> Function<javax.persistence.EntityManager,List<A>> |
Queries.TypedQueriesBase.findAll(String q,
Class<A> type,
Tuple<String,?>... params)
|
abstract <A> javax.persistence.TypedQuery<A> |
Queries.TypedQueriesBase.query(javax.persistence.EntityManager em,
String queryName,
Class<A> type,
Tuple<String,?>... params)
Create a typed query from
q with a list of parameters. |
static long |
PersistenceUtil.runCountQuery(javax.persistence.EntityManager em,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named count(EntityManager, String, Object[]) |
static <A> Option<A> |
PersistenceUtil.runFirstResultQuery(javax.persistence.EntityManager em,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named findFirst(EntityManager, String, Object[]) |
static <A> Option<A> |
PersistenceUtil.runSingleResultQuery(javax.persistence.EntityManager em,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named #findSingle(EntityManager, String, Object[]) |
static boolean |
PersistenceUtil.runUpdate(javax.persistence.EntityManager em,
String queryName,
Tuple<String,?>... params)
Deprecated.
use
Queries.named #update(EntityManager, String, Object[]) |
static <A extends javax.persistence.Query> |
Queries.setParams(A q,
Tuple<String,?>... params)
Set a list of named parameters on a query.
|
Copyright © 2009–2021 Opencast Project. All rights reserved.