Class SecuredSeqImpl
java.lang.Object
org.apache.jena.permissions.impl.SecuredItemImpl
org.apache.jena.permissions.model.impl.SecuredRDFNodeImpl
org.apache.jena.permissions.model.impl.SecuredResourceImpl
org.apache.jena.permissions.model.impl.SecuredContainerImpl
org.apache.jena.permissions.model.impl.SecuredSeqImpl
- All Implemented Interfaces:
FrontsNode
,SecuredContainer
,SecuredRDFNode
,SecuredResource
,SecuredSeq
,SecuredItem
,Container
,RDFNode
,Resource
,Seq
Implementation of SecuredSeq to be used by a SecuredItemInvoker proxy.
Sequence may have breaks in the order.
http://www.w3.org/TR/2004/REC-rdf-mt-20040210/#Containers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.permissions.SecuredItem
SecuredItem.Util
-
Field Summary
Fields inherited from class org.apache.jena.permissions.impl.SecuredItemImpl
CACHE, COUNT, MAX_CACHE
-
Method Summary
Modifier and TypeMethodDescriptionadd
(int index, boolean o) add
(int index, char o) add
(int index, double o) add
(int index, float o) add
(int index, long o) getAlt
(int index) getBag
(int index) boolean
getBoolean
(int index) byte
getByte
(int index) char
getChar
(int index) double
getDouble
(int index) float
getFloat
(int index) static SecuredSeq
getInstance
(SecuredModel securedModel, Seq seq) get a SecuredSeq.int
getInt
(int index) getLanguage
(int index) getLiteral
(int index) long
getLong
(int index) getObject
(int index) getResource
(int index) getResource
(int index, ResourceF f) Deprecated.getSeq
(int index) short
getShort
(int index) getString
(int index) int
indexOf
(boolean o) int
indexOf
(char o) int
indexOf
(double o) int
indexOf
(float o) int
indexOf
(long o) int
int
int
int
remove
(int index) set
(int index, boolean o) set
(int index, char o) set
(int index, double o) set
(int index, float o) set
(int index, long o) Methods inherited from class org.apache.jena.permissions.model.impl.SecuredContainerImpl
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, getInstance, isAlt, isBag, isSeq, iterator, remove, size
Methods inherited from class org.apache.jena.permissions.model.impl.SecuredResourceImpl
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, canReadProperty, commit, getId, getInstance, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, visitWith
Methods inherited from class org.apache.jena.permissions.model.impl.SecuredRDFNodeImpl
as, asNode, canAs, equals, getInstance, getModel, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource
Methods inherited from class org.apache.jena.permissions.impl.SecuredItemImpl
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, decrementUse, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, incrementUse, isEquivalent, toString
Methods inherited from interface org.apache.jena.rdf.model.Container
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, isAlt, isBag, isSeq, iterator, remove, size
Methods inherited from interface org.apache.jena.graph.FrontsNode
asNode
Methods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith
Methods inherited from interface org.apache.jena.rdf.model.Resource
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
Methods inherited from interface org.apache.jena.permissions.SecuredItem
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, equals, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, isEquivalent
-
Method Details
-
getInstance
get a SecuredSeq.- Parameters:
securedModel
- The secured model that provides the security contextseq
- The Seq to secure.- Returns:
- the SecuredSeq
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
- Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
public Seq add(int index, RDFNode o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
add
public Seq add(int index, String o, String l) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li(1), o )
-
getAlt
- Specified by:
getAlt
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getBag
- Specified by:
getBag
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getBoolean
- Specified by:
getBoolean
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getByte
- Specified by:
getByte
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getChar
- Specified by:
getChar
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getDouble
- Specified by:
getDouble
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getFloat
- Specified by:
getFloat
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getInt
- Specified by:
getInt
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getLanguage
- Specified by:
getLanguage
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getLiteral
public SecuredLiteral getLiteral(int index) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
getLiteral
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getLong
- Specified by:
getLong
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getObject
public SecuredRDFNode getObject(int index) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
getObject
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getResource
public SecuredResource getResource(int index) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
getResource
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getResource
@Deprecated public SecuredResource getResource(int index, ResourceF f) throws ReadDeniedException, AuthenticationRequiredException Deprecated.- Specified by:
getResource
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getSeq
- Specified by:
getSeq
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getShort
- Specified by:
getShort
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
getString
- Specified by:
getString
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then SeqIndexBoundsException is thrown - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
indexOf
- Specified by:
indexOf
in interfaceSeq
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then 0 is returned - Required triple permissions:
- Read SecTriple( this, RDF.li(1), o )
-
remove
public SecuredSeq remove(int index) throws UpdateDeniedException, DeleteDeniedException, AuthenticationRequiredException - Specified by:
remove
in interfaceSeq
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Delete SecTriple( this, RDF.li(1), o ), Update Triples after index
-
set
public SecuredSeq set(int index, boolean o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, char o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, double o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, float o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, long o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, Object o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, RDFNode o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, String o) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-
set
public SecuredSeq set(int index, String o, String l) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
set
in interfaceSeq
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.AddDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple( this, RDF.li(index), old ) SecTriple( this, RDF.li(index), o )
-