Class SecuredLiteralImpl
java.lang.Object
org.apache.jena.permissions.impl.SecuredItemImpl
org.apache.jena.permissions.model.impl.SecuredRDFNodeImpl
org.apache.jena.permissions.model.impl.SecuredLiteralImpl
- All Implemented Interfaces:
FrontsNode
,SecuredLiteral
,SecuredRDFNode
,SecuredItem
,Literal
,RDFNode
Implementation of SecuredLiteral 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 TypeMethodDescriptionboolean
byte
getByte()
char
getChar()
double
float
getFloat()
static SecuredLiteral
getInstance
(SecuredModel securedModel, Literal literal) Get an instance of SecuredLiteralint
getInt()
long
getLong()
short
getShort()
getValue()
Return the value of the literal.boolean
boolean
sameValueAs
(Literal other) visitWith
(RDFVisitor rv) 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, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, 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 an instance of SecuredLiteral- Parameters:
securedModel
- the item providing the security context.literal
- the literal to secure- Returns:
- SecuredLiteral
-
asLiteral
-
asResource
- Specified by:
asResource
in interfaceRDFNode
-
getBoolean
- Specified by:
getBoolean
in interfaceLiteral
- Throws:
ReadDeniedException
DatatypeFormatException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getByte
- Specified by:
getByte
in interfaceLiteral
- Throws:
ReadDeniedException
DatatypeFormatException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getChar
- Specified by:
getChar
in interfaceLiteral
- Throws:
ReadDeniedException
DatatypeFormatException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getDatatype
- Specified by:
getDatatype
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getDatatypeURI
- Specified by:
getDatatypeURI
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getDouble
- Specified by:
getDouble
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getFloat
- Specified by:
getFloat
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getInt
- Specified by:
getInt
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getLanguage
- Specified by:
getLanguage
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getLexicalForm
- Specified by:
getLexicalForm
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getLong
- Specified by:
getLong
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getShort
- Specified by:
getShort
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getString
- Specified by:
getString
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
getValue
Return the value of the literal. In the case of plain literals this will return the literal string. In the case of typed literals it will return a java object representing the value. In the case of typed literals representing a java primitive then the appropriate java wrapper class (Integer etc) will be returned.- Specified by:
getValue
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
-
inModel
- Specified by:
inModel
in interfaceLiteral
- Specified by:
inModel
in interfaceRDFNode
- Overrides:
inModel
in classSecuredRDFNodeImpl
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
isWellFormedXML
- Specified by:
isWellFormedXML
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
sameValueAs
public boolean sameValueAs(Literal other) throws ReadDeniedException, AuthenticationRequiredException - Specified by:
sameValueAs
in interfaceLiteral
- Throws:
ReadDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Read
-
visitWith
-