Class SecuredAltImpl
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
org.apache.jena.permissions.model.impl.SecuredAltImpl
- All Implemented Interfaces:
FrontsNode
,SecuredAlt
,SecuredContainer
,SecuredRDFNode
,SecuredResource
,SecuredItem
,Alt
,Container
,RDFNode
,Resource
Implementation of SecuredAlt 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
char
double
float
int
long
short
static SecuredAlt
getInstance
(SecuredModel securedModel, Alt alt) Get an instance of SecuredAlt.setDefault
(boolean o) setDefault
(char o) setDefault
(double o) setDefault
(float o) setDefault
(long o) setDefault
(Object o) setDefault
(String o) setDefault
(String o, String l) Methods inherited from class org.apache.jena.permissions.model.impl.SecuredContainerImpl
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, getInstance, isAlt, isBag, isSeq, iterator, remove, 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.rdf.model.Container
add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, contains, isAlt, isBag, isSeq, iterator, size
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
Get an instance of SecuredAlt.- Parameters:
securedModel
- the Secured Model to use.alt
- The Alt to be secured.- Returns:
- The secured Alt instance.
-
getDefault
- Specified by:
getDefault
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultAlt
- Specified by:
getDefaultAlt
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultBag
- Specified by:
getDefaultBag
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultBoolean
- Specified by:
getDefaultBoolean
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultByte
- Specified by:
getDefaultByte
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultChar
- Specified by:
getDefaultChar
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultDouble
- Specified by:
getDefaultDouble
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultFloat
- Specified by:
getDefaultFloat
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultInt
- Specified by:
getDefaultInt
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultLanguage
- Specified by:
getDefaultLanguage
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultLiteral
public SecuredLiteral getDefaultLiteral() throws ReadDeniedException, AuthenticationRequiredException- Specified by:
getDefaultLiteral
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultLong
- Specified by:
getDefaultLong
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultResource
public SecuredResource getDefaultResource() throws ReadDeniedException, AuthenticationRequiredException- Specified by:
getDefaultResource
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultSeq
- Specified by:
getDefaultSeq
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultShort
- Specified by:
getDefaultShort
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
getDefaultString
- Specified by:
getDefaultString
in interfaceAlt
- 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 AltHasNoDefaultException is returned. - Required triple permissions:
- Read SecTriple(this, RDF.li(1), o )
-
setDefault
public SecuredAlt setDefault(boolean o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
- Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
public SecuredAlt setDefault(double o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
- Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
- Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
public SecuredAlt setDefault(Object o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
public SecuredAlt setDefault(RDFNode o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
public SecuredAlt setDefault(String o) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-
setDefault
public SecuredAlt setDefault(String o, String l) throws UpdateDeniedException, AuthenticationRequiredException - Specified by:
setDefault
in interfaceAlt
- Throws:
UpdateDeniedException
AddDeniedException
AuthenticationRequiredException
- if user is not authenticated and is required to be.- Required graph permissions:
- Update
- Required triple permissions:
- Update SecTriple(this, RDF.li(1), existing ), SecTriple(this, RDF.li(1), o ), Create SecTriple(this, RDF.li(1), o ) if no current default
-