Class SecuredContainerImpl
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
- All Implemented Interfaces:
FrontsNode
,SecuredContainer
,SecuredRDFNode
,SecuredResource
,SecuredItem
,Container
,RDFNode
,Resource
- Direct Known Subclasses:
SecuredAltImpl
,SecuredBagImpl
,SecuredSeqImpl
Implementation of SecuredContainer to be used by a SecuredItemInvoker proxy.
-
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
(boolean o) add
(char o) add
(double o) add
(float o) add
(long o) boolean
contains
(boolean o) boolean
contains
(char o) boolean
contains
(double o) boolean
contains
(float o) boolean
contains
(long o) boolean
boolean
boolean
boolean
static SecuredContainer
getInstance
(SecuredModel securedModel, Container container) Constructorboolean
isAlt()
boolean
isBag()
boolean
isSeq()
iterator()
int
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.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
Constructor- Parameters:
securedModel
- the Secured Model to use.container
- The container to secure.- Returns:
- The SecuredResource
-
add
public SecuredContainer add(boolean o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(char o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(double o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(float o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(long o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(Object o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(RDFNode o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(String o) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
add
public SecuredContainer add(String o, String l) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceContainer
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create SecTriple( this, RDF.li, o );
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
- Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
contains
public boolean contains(String o, String l) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
contains
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read SecTriple( this, RDF.li, o );
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then @{code false} is returned.
-
isAlt
public boolean isAlt() -
isBag
public boolean isBag() -
isSeq
public boolean isSeq() -
iterator
- Specified by:
iterator
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read on each triple ( this, rdf:li_? node ) returned by iterator;
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then an empty iterator is returned.
-
remove
public SecuredContainer remove(Statement s) throws UpdateDeniedException, DeleteDeniedException, AuthenticationRequiredException - Specified by:
remove
in interfaceContainer
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Delete s as triple;
-
size
- Specified by:
size
in interfaceContainer
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-