Class SecuredStatementImpl
java.lang.Object
org.apache.jena.permissions.impl.SecuredItemImpl
org.apache.jena.permissions.model.impl.SecuredStatementImpl
- All Implemented Interfaces:
FrontsTriple
,SecuredStatement
,SecuredItem
,Statement
Implementation of SecuredStatement 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 TypeMethodDescriptionasTriple()
boolean
boolean
boolean
canRead()
changeLiteralObject
(boolean o) changeLiteralObject
(char o) changeLiteralObject
(double o) changeLiteralObject
(float o) changeLiteralObject
(int o) changeLiteralObject
(long o) changeObject
(String o, boolean wellFormed) changeObject
(String o, String l) changeObject
(String o, String l, boolean wellFormed) getAlt()
getBag()
boolean
byte
getByte()
char
getChar()
double
float
getFloat()
static SecuredStatement
getInstance
(SecuredModel securedModel, Statement stmt) get a SecuredStatementint
getInt()
getList()
long
getLong()
getModel()
Deprecated.getSeq()
short
getShort()
boolean
boolean
remove()
void
Methods inherited from class org.apache.jena.permissions.impl.SecuredItemImpl
canCreate, canCreate, canDelete, canDelete, canRead, canRead, canUpdate, canUpdate, canUpdate, decrementUse, equals, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, hashCode, incrementUse, isEquivalent, toString
Methods inherited from interface org.apache.jena.permissions.SecuredItem
canCreate, canCreate, canDelete, canDelete, canRead, canRead, canUpdate, canUpdate, canUpdate, equals, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, isEquivalent
-
Method Details
-
getInstance
get a SecuredStatement- Parameters:
securedModel
- The secured model that provides the security contextstmt
- The statement to secure.- Returns:
- the SecuredStatement
-
asTriple
- Specified by:
asTriple
in interfaceFrontsTriple
- Throws:
ReadDeniedException
AuthenticationRequiredException
-
canCreate
- Specified by:
canCreate
in interfaceSecuredItem
- Overrides:
canCreate
in classSecuredItemImpl
- Returns:
- true if the securedModel allows items to be created.
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.
-
canDelete
- Specified by:
canDelete
in interfaceSecuredItem
- Overrides:
canDelete
in classSecuredItemImpl
- Returns:
- true if the securedModel allows items to be deleted.
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.
-
canRead
- Specified by:
canRead
in interfaceSecuredItem
- Overrides:
canRead
in classSecuredItemImpl
- Returns:
- true if the securedModel allows items to be read.
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.
-
changeLiteralObject
public SecuredStatement changeLiteralObject(boolean o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeLiteralObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeLiteralObject
public SecuredStatement changeLiteralObject(char o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeLiteralObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeLiteralObject
public SecuredStatement changeLiteralObject(double o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeLiteralObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeLiteralObject
public SecuredStatement changeLiteralObject(float o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeLiteralObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeLiteralObject
public SecuredStatement changeLiteralObject(int o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeLiteralObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeLiteralObject
public SecuredStatement changeLiteralObject(long o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeLiteralObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeObject
public SecuredStatement changeObject(RDFNode o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeObject
public SecuredStatement changeObject(String o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeObject
public SecuredStatement changeObject(String o, boolean wellFormed) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeObject
public SecuredStatement changeObject(String o, String l) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
changeObject
public SecuredStatement changeObject(String o, String l, boolean wellFormed) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
changeObject
in interfaceStatement
- Throws:
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update
-
createReifiedStatement
public SecuredReifiedStatement createReifiedStatement() throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException- Specified by:
createReifiedStatement
in interfaceStatement
- Throws:
ReadDeniedException
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read, Update
- Required triple permissions:
- Create
-
createReifiedStatement
public SecuredReifiedStatement createReifiedStatement(String uri) throws UpdateDeniedException, AddDeniedException, AuthenticationRequiredException - Specified by:
createReifiedStatement
in interfaceStatement
- Throws:
ReadDeniedException
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read, Update
- Required triple permissions:
- Create
-
getAlt
- Specified by:
getAlt
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getBag
- Specified by:
getBag
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getSeq
- Specified by:
getSeq
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getList
- Specified by:
getList
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getBoolean
- Specified by:
getBoolean
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getByte
- Specified by:
getByte
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getChar
- Specified by:
getChar
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getDouble
- Specified by:
getDouble
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getFloat
- Specified by:
getFloat
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getInt
- Specified by:
getInt
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getLanguage
- Specified by:
getLanguage
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getLiteral
- Specified by:
getLiteral
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getLong
- Specified by:
getLong
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getModel
- Specified by:
getModel
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getObject
- Specified by:
getObject
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getPredicate
- Specified by:
getPredicate
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getProperty
- Specified by:
getProperty
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read
-
getResource
- Specified by:
getResource
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getResource
Deprecated.- Specified by:
getResource
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getShort
- Specified by:
getShort
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getStatementProperty
- Specified by:
getStatementProperty
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getString
- Specified by:
getString
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getSubject
- Specified by:
getSubject
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
hasWellFormedXML
- Specified by:
hasWellFormedXML
in interfaceStatement
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read
-
isReified
- Specified by:
isReified
in interfaceStatement
- 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 false is returned - Required triple permissions:
- Read
-
listReifiedStatements
public RSIterator listReifiedStatements() throws ReadDeniedException, AuthenticationRequiredException- Specified by:
listReifiedStatements
in interfaceStatement
- 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 an empty iterator is returned - Required triple permissions:
- Read
-
remove
public SecuredStatement remove() throws UpdateDeniedException, DeleteDeniedException, AuthenticationRequiredException- Specified by:
remove
in interfaceStatement
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Delete
-
removeReification
public void removeReification() throws UpdateDeniedException, DeleteDeniedException, AuthenticationRequiredException- Specified by:
removeReification
in interfaceStatement
- Throws:
UpdateDeniedException
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Delete
-