Class SecuredPrefixMappingImpl
java.lang.Object
org.apache.jena.permissions.impl.SecuredItemImpl
org.apache.jena.permissions.graph.impl.SecuredPrefixMappingImpl
- All Implemented Interfaces:
SecuredPrefixMapping
,SecuredItem
,PrefixMapping
Implementation of SecuredPrefixMapping to be used by a SecuredItemInvoker
proxy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.shared.PrefixMapping
PrefixMapping.Factory, PrefixMapping.IllegalPrefixException, PrefixMapping.JenaLockedException
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.shared.PrefixMapping
Extended, Standard
-
Method Summary
Modifier and TypeMethodDescriptionexpandPrefix
(String prefixed) getNsPrefixURI
(String prefix) getNsURIPrefix
(String uri) boolean
lock()
int
removeNsPrefix
(String prefix) boolean
samePrefixMappingAs
(PrefixMapping other) setNsPrefix
(String prefix, String uri) setNsPrefixes
(Map<String, String> map) setNsPrefixes
(PrefixMapping other) 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
-
expandPrefix
public String expandPrefix(String prefixed) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
expandPrefix
in interfacePrefixMapping
- Specified by:
expandPrefix
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
-
getNsPrefixMap
public Map<String,String> getNsPrefixMap() throws ReadDeniedException, AuthenticationRequiredException- Specified by:
getNsPrefixMap
in interfacePrefixMapping
- Specified by:
getNsPrefixMap
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
-
getNsPrefixURI
public String getNsPrefixURI(String prefix) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
getNsPrefixURI
in interfacePrefixMapping
- Specified by:
getNsPrefixURI
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
-
getNsURIPrefix
public String getNsURIPrefix(String uri) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
getNsURIPrefix
in interfacePrefixMapping
- Specified by:
getNsURIPrefix
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
-
lock
- Specified by:
lock
in interfacePrefixMapping
- Specified by:
lock
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.UpdateDeniedException
-
qnameFor
- Specified by:
qnameFor
in interfacePrefixMapping
- Specified by:
qnameFor
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
-
removeNsPrefix
public SecuredPrefixMapping removeNsPrefix(String prefix) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
removeNsPrefix
in interfacePrefixMapping
- Specified by:
removeNsPrefix
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.UpdateDeniedException
-
clearNsPrefixMap
- Specified by:
clearNsPrefixMap
in interfacePrefixMapping
-
setNsPrefix
public SecuredPrefixMapping setNsPrefix(String prefix, String uri) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setNsPrefix
in interfacePrefixMapping
- Specified by:
setNsPrefix
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.UpdateDeniedException
-
setNsPrefixes
public SecuredPrefixMapping setNsPrefixes(Map<String, String> map) throws UpdateDeniedException, AuthenticationRequiredException- Specified by:
setNsPrefixes
in interfacePrefixMapping
- Specified by:
setNsPrefixes
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.UpdateDeniedException
-
shortForm
- Specified by:
shortForm
in interfacePrefixMapping
- Specified by:
shortForm
in interfaceSecuredPrefixMapping
- Throws:
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
-
hasNoMappings
public boolean hasNoMappings()- Specified by:
hasNoMappings
in interfacePrefixMapping
-
numPrefixes
public int numPrefixes()- Specified by:
numPrefixes
in interfacePrefixMapping
-