| Package | Description |
|---|---|
| org.opencastproject.security.api | |
| org.opencastproject.security.util | |
| 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<String,Either<Exception,AccessControlList>> |
AccessControlParser.parseAcl
Functional version of
AccessControlParser.parseAcl(String). |
| 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.
|
static Either<AccessControlEntry,List<AccessControlEntry>> |
AccessControlUtil.entry(String role,
String action,
boolean allow)
Create a single access control entry.
|
Either<Exception,A> |
TrustedHttpClient.RequestRunner.run(Function<org.apache.http.HttpResponse,A> f)
Run the request and apply function
f to its response. |
| Modifier and Type | Method and Description |
|---|---|
<A> Function<Function<org.apache.http.HttpResponse,A>,Either<Exception,A>> |
TrustedHttpClient.run(org.apache.http.client.methods.HttpUriRequest httpUriRequest)
|
| Modifier and Type | Method and Description |
|---|---|
static AccessControlList |
AccessControlUtil.acl(Either<AccessControlEntry,List<AccessControlEntry>>... entries)
Constructor function for ACLs.
|
| Modifier and Type | Method and Description |
|---|---|
<A> Function<Function<org.apache.http.HttpResponse,A>,Either<Exception,A>> |
StandAloneTrustedHttpClientImpl.run(org.apache.http.client.methods.HttpUriRequest httpUriRequest) |
static <A> Function<Function<org.apache.http.HttpResponse,A>,Either<Exception,A>> |
StandAloneTrustedHttpClientImpl.run(TrustedHttpClient client,
org.apache.http.client.methods.HttpUriRequest httpUriRequest) |
| Modifier and Type | Method and Description |
|---|---|
static Either<Exception,Document> |
XmlUtil.parse(InputSource src)
Parsing of
src without namespaces. |
static Either<Exception,Document> |
XmlUtil.parseNs(InputSource src)
Namespace aware parsing of
src. |
static Either<Exception,Document> |
XmlUtil.parseNs(String xml)
Namespace aware parsing of
xml. |
static Either<Exception,Integer> |
HttpUtil.waitForResource(TrustedHttpClient http,
URI resourceUri,
int expectedStatus,
long timeout,
long pollingInterval)
Wait for a certain status of a resource.
|
static <A,Err,B extends Closeable> |
IoSupport.withResource(Function0<B> r,
Function<Exception,Err> toErr,
Function<B,A> f)
Handle a closeable resource inside
f and ensure that r gets closed properly. |
static <A,Err> Either<Err,A> |
IoSupport.withStream(Function0<InputStream> s,
Function<Exception,Err> toErr,
Function<InputStream,A> f)
|
| Modifier and Type | Method and Description |
|---|---|
static <A> A |
HttpUtil.getOrError(Either<Exception,A> response)
Get the value or throw the exception.
|
| Modifier and Type | Method and Description |
|---|---|
Either<Err,B> |
Function.Xe.apply(A a) |
abstract <X> Either<X,B> |
Either.LeftProjection.bind(Function<A,Either<X,B>> f) |
abstract <X> Either<A,X> |
Either.RightProjection.bind(Function<B,Either<A,X>> f) |
abstract Either<A,B> |
Either.LeftProjection.either() |
abstract Either<A,B> |
Either.RightProjection.either() |
<X> Either<X,B> |
Either.LeftProjection.flatMap(Function<A,Either<X,B>> f) |
<X> Either<A,X> |
Either.RightProjection.flatMap(Function<B,Either<A,X>> f) |
static <A,B> Either<A,B> |
Either.left(A left)
Create a left.
|
abstract <B> Either<A,B> |
Option.left(B right)
Left projection of this option.
|
abstract <X> Either<X,B> |
Either.LeftProjection.map(Function<A,X> f) |
abstract <X> Either<A,X> |
Either.RightProjection.map(Function<B,X> f) |
static <A,B> Either<A,B> |
Either.right(B right)
Create a right.
|
abstract <B> Either<B,A> |
Option.right(B left)
Right projection of this optio.
|
| Modifier and Type | Method and Description |
|---|---|
Function<A,Either<Exception,B>> |
Function.X.either() |
<X> Function<A,Either<X,B>> |
Function.either(Function<Exception,X> handler) |
| Modifier and Type | Method and Description |
|---|---|
abstract <X> Either<X,B> |
Either.LeftProjection.bind(Function<A,Either<X,B>> f) |
abstract <X> Either<A,X> |
Either.RightProjection.bind(Function<B,Either<A,X>> f) |
<X> Either<X,B> |
Either.LeftProjection.flatMap(Function<A,Either<X,B>> f) |
<X> Either<A,X> |
Either.RightProjection.flatMap(Function<B,Either<A,X>> f) |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Either<A,B> |
Eithers.flatten(Either<A,Either<A,B>> e)
Flatten nested Eithers.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B,C> Function<A,Either<C,B>> |
Functions.either(Function<? super A,? extends B> f,
Function<? super Exception,? extends C> handler)
Create a new function from
f decorated with an exception handler. |
static <A,B> Function<Either<A,B>,Option<B>> |
Eithers.toOption()
Like
Either#right()#toOption(). |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Either<A,B> |
Eithers.flatten(Either<A,Either<A,B>> e)
Flatten nested Eithers.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Either<A,B> |
Eithers.flatten(Either<A,Either<A,B>> e)
Flatten nested Eithers.
|
| Modifier and Type | Method and Description |
|---|---|
<A> Either<F,A> |
PersistenceEnv2.tx(Function<javax.persistence.EntityManager,A> transactional)
Run code inside a transaction.
|
Copyright © 2009–2020 Opencast Project. All rights reserved.