public class SecuredRDFListImpl extends SecuredResourceImpl implements SecuredRDFList
org.apache.jena.rdf.model.RDFList.ApplyFn, org.apache.jena.rdf.model.RDFList.ReduceFn
SecuredItem.Util
CACHE, COUNT, MAX_CACHE
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.jena.rdf.model.RDFNode value) |
SecuredRDFList |
append(Iterator<? extends org.apache.jena.rdf.model.RDFNode> nodes)
Resulting list will contain the readable nodes from this list
concatenated with nodes
|
org.apache.jena.rdf.model.RDFList |
append(org.apache.jena.rdf.model.RDFList list)
Resulting list will contain the readable nodes from this list
concatenated with the list argument
|
void |
apply(org.apache.jena.rdf.model.RDFList.ApplyFn fn)
Uses the security settings for the application of the function calls.
|
void |
apply(Set<SecurityEvaluator.Action> perms,
org.apache.jena.rdf.model.RDFList.ApplyFn fn)
This method is intended to provide the capabilities to apply functions
that need to do more than read the graph.
|
List<org.apache.jena.rdf.model.RDFNode> |
asJavaList() |
void |
concatenate(Iterator<? extends org.apache.jena.rdf.model.RDFNode> nodes) |
void |
concatenate(org.apache.jena.rdf.model.RDFList list) |
SecuredRDFList |
cons(org.apache.jena.rdf.model.RDFNode value) |
boolean |
contains(org.apache.jena.rdf.model.RDFNode value) |
SecuredRDFList |
copy()
Creates a copy of this list comprising the readable elements of this
list.
|
SecuredRDFNode |
get(int i)
Answer the node that is the i'th element of the list, assuming that the
head is item zero.
|
SecuredRDFNode |
getHead()
The value that is at the head of the list.
|
static <T extends org.apache.jena.rdf.model.RDFList> |
getInstance(SecuredModel securedModel,
T rdfList)
Get an instance of SecuredProperty
|
boolean |
getStrict() |
SecuredRDFList |
getTail()
The value that is at the tail of the list.
|
String |
getValidityErrorMessage() |
int |
indexOf(org.apache.jena.rdf.model.RDFNode value) |
int |
indexOf(org.apache.jena.rdf.model.RDFNode value,
int start) |
boolean |
isEmpty() |
boolean |
isValid() |
org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> |
iterator() |
org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> |
iterator(Set<SecurityEvaluator.Action> constraints) |
Class<? extends org.apache.jena.rdf.model.RDFList> |
listAbstractionClass() |
org.apache.jena.rdf.model.Property |
listFirst() |
org.apache.jena.rdf.model.Resource |
listNil() |
org.apache.jena.rdf.model.Property |
listRest() |
org.apache.jena.rdf.model.Resource |
listType() |
<T> org.apache.jena.util.iterator.ExtendedIterator<T> |
mapWith(Function<org.apache.jena.rdf.model.RDFNode,T> fn) |
Object |
reduce(org.apache.jena.rdf.model.RDFList.ReduceFn fn,
Object initial)
Only readable triples will be passed to the function.
|
Object |
reduce(Set<SecurityEvaluator.Action> requiredActions,
org.apache.jena.rdf.model.RDFList.ReduceFn fn,
Object initial)
Only readable triples will be passed to the function.
|
org.apache.jena.rdf.model.RDFList |
remove(org.apache.jena.rdf.model.RDFNode val) |
void |
removeAll()
Deprecated.
|
SecuredRDFList |
removeHead() |
void |
removeList() |
SecuredRDFNode |
replace(int i,
org.apache.jena.rdf.model.RDFNode value) |
boolean |
sameListAs(org.apache.jena.rdf.model.RDFList list) |
SecuredRDFNode |
setHead(org.apache.jena.rdf.model.RDFNode value) |
void |
setStrict(boolean strict) |
SecuredRDFList |
setTail(org.apache.jena.rdf.model.RDFList tail) |
int |
size()
Size may be modified by security constraionts.
|
SecuredRDFList |
with(org.apache.jena.rdf.model.RDFNode value) |
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, canReadProperty, commit, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString, visitWith
as, asNode, canAs, equals, getModel, hashCode, isAnon, isLiteral, isResource, isURIResource
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, decrementUse, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, incrementUse, isEquivalent
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, asResource, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties
asNode, canAs, getModel, inModel
as, asLiteral, isAnon, isLiteral, isResource, isURIResource, visitWith
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, isEquivalent
public static <T extends org.apache.jena.rdf.model.RDFList> SecuredRDFList getInstance(SecuredModel securedModel, T rdfList)
securedModel
- the Secured Model to use.rdfList
- The rdfList to securepublic void add(org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AddDeniedException, org.apache.jena.shared.AuthenticationRequiredException
add
in interface SecuredRDFList
add
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.AddDeniedException
public SecuredRDFList append(Iterator<? extends org.apache.jena.rdf.model.RDFNode> nodes) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
append
in interface SecuredRDFList
append
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public org.apache.jena.rdf.model.RDFList append(org.apache.jena.rdf.model.RDFList list) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
append
in interface SecuredRDFList
append
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public void apply(org.apache.jena.rdf.model.RDFList.ApplyFn fn) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
apply
in interface SecuredRDFList
apply
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.ReadDeniedException
- graph Read or other permissions are not metorg.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.public void apply(Set<SecurityEvaluator.Action> perms, org.apache.jena.rdf.model.RDFList.ApplyFn fn) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
apply
in interface SecuredRDFList
perms
- The permissions the user must have on the items in the list.fn
- The function to apply.org.apache.jena.shared.ReadDeniedException
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.public List<org.apache.jena.rdf.model.RDFNode> asJavaList() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
asJavaList
in interface SecuredRDFList
asJavaList
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public void concatenate(Iterator<? extends org.apache.jena.rdf.model.RDFNode> nodes) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AddDeniedException, org.apache.jena.shared.AuthenticationRequiredException
concatenate
in interface SecuredRDFList
concatenate
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.AddDeniedException
public void concatenate(org.apache.jena.rdf.model.RDFList list) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AddDeniedException, org.apache.jena.shared.AuthenticationRequiredException
concatenate
in interface SecuredRDFList
concatenate
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.AddDeniedException
public SecuredRDFList cons(org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AddDeniedException, org.apache.jena.shared.AuthenticationRequiredException
cons
in interface SecuredRDFList
cons
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.AddDeniedException
public boolean contains(org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
contains
in interface SecuredRDFList
contains
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public SecuredRDFList copy() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
copy
in interface SecuredRDFList
copy
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public SecuredRDFNode get(int i) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
get
in interface SecuredRDFList
get
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public SecuredRDFNode getHead() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
getHead
in interface SecuredRDFList
getHead
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public boolean getStrict()
getStrict
in interface org.apache.jena.rdf.model.RDFList
public SecuredRDFList getTail() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
getTail
in interface SecuredRDFList
getTail
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public String getValidityErrorMessage() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
getValidityErrorMessage
in interface SecuredRDFList
getValidityErrorMessage
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public int indexOf(org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
indexOf
in interface SecuredRDFList
indexOf
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public int indexOf(org.apache.jena.rdf.model.RDFNode value, int start) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
indexOf
in interface SecuredRDFList
indexOf
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public boolean isEmpty() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
isEmpty
in interface SecuredRDFList
isEmpty
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public boolean isValid() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
isValid
in interface SecuredRDFList
isValid
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> iterator() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
iterator
in interface SecuredRDFList
iterator
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> iterator(Set<SecurityEvaluator.Action> constraints) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
iterator
in interface SecuredRDFList
org.apache.jena.shared.ReadDeniedException
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.public Class<? extends org.apache.jena.rdf.model.RDFList> listAbstractionClass()
public org.apache.jena.rdf.model.Property listFirst()
public org.apache.jena.rdf.model.Resource listNil()
public org.apache.jena.rdf.model.Property listRest()
public org.apache.jena.rdf.model.Resource listType()
public <T> org.apache.jena.util.iterator.ExtendedIterator<T> mapWith(Function<org.apache.jena.rdf.model.RDFNode,T> fn) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
mapWith
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.ReadDeniedException
org.apache.jena.shared.AuthenticationRequiredException
public Object reduce(org.apache.jena.rdf.model.RDFList.ReduceFn fn, Object initial) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
reduce
in interface SecuredRDFList
reduce
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public Object reduce(Set<SecurityEvaluator.Action> requiredActions, org.apache.jena.rdf.model.RDFList.ReduceFn fn, Object initial) throws org.apache.jena.rdf.model.EmptyListException, org.apache.jena.rdf.model.ListIndexException, org.apache.jena.rdf.model.InvalidListException, org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
reduce
in interface SecuredRDFList
requiredActions
- The set of permission (in addition to Read) that the user must
havefn
- The reduction functioninitial
- The initial state for the ruduce value.org.apache.jena.rdf.model.EmptyListException
org.apache.jena.rdf.model.ListIndexException
org.apache.jena.rdf.model.InvalidListException
org.apache.jena.shared.ReadDeniedException
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.public org.apache.jena.rdf.model.RDFList remove(org.apache.jena.rdf.model.RDFNode val) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.DeleteDeniedException, org.apache.jena.shared.AuthenticationRequiredException
remove
in interface SecuredRDFList
remove
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.DeleteDeniedException
@Deprecated public void removeAll() throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AuthenticationRequiredException
removeAll
in interface SecuredRDFList
removeAll
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
public SecuredRDFList removeHead() throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.DeleteDeniedException, org.apache.jena.shared.AuthenticationRequiredException
removeHead
in interface SecuredRDFList
removeHead
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.DeleteDeniedException
public void removeList() throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AuthenticationRequiredException
removeList
in interface SecuredRDFList
removeList
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
public SecuredRDFNode replace(int i, org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AuthenticationRequiredException, org.apache.jena.rdf.model.ListIndexException
replace
in interface SecuredRDFList
replace
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.rdf.model.ListIndexException
public boolean sameListAs(org.apache.jena.rdf.model.RDFList list) throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
sameListAs
in interface SecuredRDFList
sameListAs
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public SecuredRDFNode setHead(org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.rdf.model.EmptyListException, org.apache.jena.shared.AuthenticationRequiredException
setHead
in interface SecuredRDFList
setHead
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.rdf.model.EmptyListException
public void setStrict(boolean strict) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AuthenticationRequiredException
setStrict
in interface SecuredRDFList
setStrict
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
public SecuredRDFList setTail(org.apache.jena.rdf.model.RDFList tail) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AuthenticationRequiredException
setTail
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.AuthenticationRequiredException
public int size() throws org.apache.jena.shared.ReadDeniedException, org.apache.jena.shared.AuthenticationRequiredException
SecuredRDFList
size
in interface SecuredRDFList
size
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.ReadDeniedException
public SecuredRDFList with(org.apache.jena.rdf.model.RDFNode value) throws org.apache.jena.shared.UpdateDeniedException, org.apache.jena.shared.AddDeniedException, org.apache.jena.shared.AuthenticationRequiredException
with
in interface SecuredRDFList
with
in interface org.apache.jena.rdf.model.RDFList
org.apache.jena.shared.AuthenticationRequiredException
- if user is not authenticated and is required to be.org.apache.jena.shared.UpdateDeniedException
org.apache.jena.shared.AddDeniedException
Licensed under the Apache License, Version 2.0