Class SecuredGraphImpl
java.lang.Object
org.apache.jena.permissions.impl.SecuredItemImpl
org.apache.jena.permissions.graph.impl.SecuredGraphImpl
- All Implemented Interfaces:
Graph
,SecuredGraph
,SecuredItem
Implementation of SecuredGraph 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
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
Method Summary
Methods inherited from class org.apache.jena.permissions.impl.SecuredItemImpl
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, 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, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, equals, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, isEquivalent
-
Method Details
-
add
public void add(Triple t) throws AddDeniedException, UpdateDeniedException, AuthenticationRequiredException - Specified by:
add
in interfaceGraph
- Throws:
AddDeniedException
UpdateDeniedException
- if the graph can not be updated.AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Create
-
clear
- Specified by:
clear
in interfaceGraph
- Throws:
DeleteDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.UpdateDeniedException
- Required graph permissions:
- Update
- Required triple permissions:
- Delete for every triple
-
close
public void close() -
contains
public boolean contains(Node s, Node p, Node o) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
contains
in interfaceGraph
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read
-
contains
- Specified by:
contains
in interfaceGraph
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read
-
delete
- Specified by:
delete
in interfaceGraph
- Throws:
DeleteDeniedException
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Delete
-
dependsOn
- Specified by:
dependsOn
in interfaceGraph
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
if
SecurityEvaluator.isHardReadError()
is true then this method returns false.
-
find
- Specified by:
find
in interfaceGraph
- Throws:
ReadDeniedException
- on read not allowedAuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read, otherwise filtered from iterator.
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then an empty iterator will be returned.
-
find
public ExtendedIterator<Triple> find(Node s, Node p, Node o) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
find
in interfaceGraph
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read, otherwise filtered from iterator.
if
SecurityEvaluator.isHardReadError()
is true and the user does not have read access then an empty iterator will be returned.
-
find
public ExtendedIterator<Triple> find(Triple t) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
find
in interfaceGraph
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
- Required triple permissions:
- Read, otherwise filtered from iterator.
if
SecurityEvaluator.isHardReadError()
is true then an empty iterator will be returned.
-
getCapabilities
- Specified by:
getCapabilities
in interfaceGraph
-
getEventManager
- Specified by:
getEventManager
in interfaceGraph
-
getPrefixMapping
- Specified by:
getPrefixMapping
in interfaceGraph
-
getTransactionHandler
- Specified by:
getTransactionHandler
in interfaceGraph
-
isClosed
public boolean isClosed() -
isEmpty
- Specified by:
isEmpty
in interfaceGraph
- Throws:
ReadDeniedException
- if graph can not be read.AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
If
SecurityEvaluator.isHardReadError()
is false then this method will return 0.
-
isIsomorphicWith
public boolean isIsomorphicWith(Graph g) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
isIsomorphicWith
in interfaceGraph
- Throws:
ReadDeniedException
- if graph can not be read.AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
If
SecurityEvaluator.isHardReadError()
is false then this method will return false unlessg
is empty.
-
remove
public void remove(Node s, Node p, Node o) throws UpdateDeniedException, DeleteDeniedException, AuthenticationRequiredException - Specified by:
remove
in interfaceGraph
- Throws:
DeleteDeniedException
UpdateDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Delete (s, p, o )
-
size
- Specified by:
size
in interfaceGraph
- Throws:
ReadDeniedException
- if graph can not be read.AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
If
SecurityEvaluator.isHardReadError()
is false then this method will return 0.
-