public abstract class SecuredRDFNodeImpl extends SecuredItemImpl implements SecuredRDFNode
SecuredItem.Util
CACHE, COUNT, MAX_CACHE
Modifier and Type | Method and Description |
---|---|
<T extends RDFNode> |
as(Class<T> view) |
Node |
asNode() |
<T extends RDFNode> |
canAs(Class<T> view) |
boolean |
equals(Object o)
An RDFNode is equal to another enhanced node n iff the underlying nodes
are equal.
|
static SecuredRDFNode |
getInstance(SecuredModel securedModel,
RDFNode rdfNode) |
SecuredModel |
getModel() |
int |
hashCode()
The hash code of an RDFnode is defined to be the same as the underlying
node.
|
RDFNode |
inModel(Model m) |
boolean |
isAnon() |
boolean |
isLiteral() |
boolean |
isResource() |
boolean |
isStmtResource() |
boolean |
isURIResource() |
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, decrementUse, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, incrementUse, isEquivalent, toString
getClass, notify, notifyAll, toString, wait, wait, wait
asLiteral, asResource, toString, visitWith
canCreate, canCreate, canCreate, canDelete, canDelete, canDelete, canRead, canRead, canRead, canUpdate, canUpdate, canUpdate, getBaseItem, getModelIRI, getModelNode, getSecurityEvaluator, isEquivalent
public static SecuredRDFNode getInstance(SecuredModel securedModel, RDFNode rdfNode)
securedModel
- the Secured Model to use.rdfNode
- the node to secure.public <T extends RDFNode> T as(Class<T> view) throws ReadDeniedException, AuthenticationRequiredException, SecuredUnsupportedPolymorphismException
as
in interface RDFNode
ReadDeniedException
AuthenticationRequiredException
SecuredUnsupportedPolymorphismException
public Node asNode() throws ReadDeniedException, AuthenticationRequiredException
asNode
in interface FrontsNode
asNode
in interface SecuredRDFNode
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
public <T extends RDFNode> boolean canAs(Class<T> view) throws ReadDeniedException, AuthenticationRequiredException
canAs
in interface SecuredRDFNode
canAs
in interface RDFNode
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
public SecuredModel getModel()
getModel
in interface SecuredRDFNode
getModel
in interface RDFNode
public RDFNode inModel(Model m) throws ReadDeniedException, AuthenticationRequiredException
inModel
in interface SecuredRDFNode
inModel
in interface RDFNode
AuthenticationRequiredException
- if user is not authenticated and is required to be.ReadDeniedException
public boolean isResource()
isResource
in interface RDFNode
public boolean isURIResource()
isURIResource
in interface RDFNode
public boolean isStmtResource()
isStmtResource
in interface RDFNode
public final boolean equals(Object o) throws ReadDeniedException, AuthenticationRequiredException
equals
in interface SecuredItem
equals
in class SecuredItemImpl
o
- An object to test for equality with this nodeReadDeniedException
AuthenticationRequiredException
public final int hashCode()
hashCode
in class SecuredItemImpl
Licensed under the Apache License, Version 2.0