|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.omm.security.Restriction
org.openrdf.sesame.sailimpl.omm.security.PatternRestriction
PatternRestriction.java
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| Field Summary | |
static int |
SPO_OBJECT
|
static int |
SPO_OBJECT_LITERAL
|
static int |
SPO_PREDICATE
|
static int |
SPO_SUBJECT
subject restriction |
| Fields inherited from class org.openrdf.sesame.sailimpl.omm.security.Restriction |
CLASSES, CLASSES_OVER_SCHEMA, CLASSES_OVER_SCHEMA_RESTRICTION, CLASSES_RESTRICTION, INSTANCES, INSTANCES_RESTRICTION, PATTERN, PATTERN_RESTRICTION, PROPERTIES, PROPERTIES_RESTRICTION, QUERY, QUERY_RESTRICTION, REPOSITORY, REPOSITORY_RESTRICTION, SCHEMA, SCHEMA_RESTRICTION |
| Constructor Summary | |
PatternRestriction(int id,
String name,
String description)
Create a Pattern Restriction. |
|
| Method Summary | |
void |
addObjectRestriction(Literal literal)
Adds an object restriction. |
void |
addObjectRestriction(ResourceRestriction objRestr)
Adds an object restriction. |
void |
addPredicateRestriction(PropertiesRestriction propRestr)
Adds a predicate restriction. |
void |
addSubjectRestriction(ResourceRestriction subjRestr)
Adds a subject restriction. |
Set |
getObjectRestrictions()
Gets the set of object restrictions. |
Set |
getPredicateRestrictions()
Gets the set of predicate restrictions |
Set |
getSubjectRestrictions()
Gets the set of subject restrictions. |
ArrayList |
toSql(Map idByLiteral,
Map idByRes)
Creates update queries over the restrictions, res_prop_restrs, query_restrs, pattern_restrs tables. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SPO_SUBJECT
public static final int SPO_PREDICATE
public static final int SPO_OBJECT
public static final int SPO_OBJECT_LITERAL
| Constructor Detail |
public PatternRestriction(int id,
String name,
String description)
id - id of the restriction.name - name of the restriction.description - description of the restriction.| Method Detail |
public void addSubjectRestriction(ResourceRestriction subjRestr)
subjRestr - subject restriction to be addedpublic void addPredicateRestriction(PropertiesRestriction propRestr)
propRestr - predicate restriction to be addedpublic void addObjectRestriction(ResourceRestriction objRestr)
objRestr - the object restriction to be set
public void addObjectRestriction(Literal literal)
throws NullParameterException
literal - the literal to be added as object restriction
NullParameterException - if the parameter is null.public Set getSubjectRestrictions()
public Set getPredicateRestrictions()
public Set getObjectRestrictions()
public ArrayList toSql(Map idByLiteral,
Map idByRes)
throws NullParameterException,
SecurityException
Restriction
toSql in class RestrictionidByLiteral - ids by literals mapidByRes - ids by resources map
NullParameterException
SecurityException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||