|
|||||||||||
| 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
Restriction.java
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| Field Summary | |
static int |
CLASSES
CLASSES Restriction Type |
static int |
CLASSES_OVER_SCHEMA
CLASSES Over Schema Restriction Type |
static String |
CLASSES_OVER_SCHEMA_RESTRICTION
CLASSES Over Schema Restriction name |
static String |
CLASSES_RESTRICTION
CLASSES Restriction name |
static int |
INSTANCES
INSTANCES Restriction Type |
static String |
INSTANCES_RESTRICTION
INSTANCES Restriction name |
static int |
PATTERN
PATTERN Restriction Type |
static String |
PATTERN_RESTRICTION
PATTERN Restriction name |
static int |
PROPERTIES
PROPERTIES Restriction Type |
static String |
PROPERTIES_RESTRICTION
PROPERTIES Restriction name |
static int |
QUERY
QUERY Restriction Type |
static String |
QUERY_RESTRICTION
QUERY Restriction name |
static int |
REPOSITORY
REPOSITORY Restriction Type |
static String |
REPOSITORY_RESTRICTION
REPOSITORY Restriction name |
static int |
SCHEMA
SCHEMA Restriction Type |
static String |
SCHEMA_RESTRICTION
SCHEMA Restriction name |
| Method Summary | |
static Restriction |
createClassesOverSchemaRestriction(int id,
String name,
String descr)
Create a Classes Over Schema Restriction. |
static Restriction |
createClassesOverSchemaRestriction(String name,
String descr)
Create a Classes Over Schema Restriction. |
static Restriction |
createClassesRestriction(int id,
String name,
String descr)
Create a Classes Restriction. |
static Restriction |
createClassesRestriction(String name,
String descr)
Create a Classes Restriction. |
static Restriction |
createInstancesRestriction(int id,
String name,
String descr)
Create an Instances Restriction. |
static Restriction |
createInstancesRestriction(String name,
String descr)
Create an Instances Restriction. |
static Restriction |
createPatternRestriction(int id,
String name,
String descr)
Create a Pattern Restriction. |
static Restriction |
createPatternRestriction(String name,
String descr)
Create a Pattern Restriction. |
static Restriction |
createPropertiesRestriction(int id,
String name,
String descr)
Create a Properties Restriction. |
static Restriction |
createPropertiesRestriction(String name,
String descr)
Create a Properties Restriction. |
static Restriction |
createQueryRestriction(int id,
String name,
String descr)
Create a Query Restriction. |
static Restriction |
createQueryRestriction(String name,
String descr)
Create a Query Restriction. |
static Restriction |
createRepositoryRestriction(int id,
String name,
String descr)
Create a Repository Restriction. |
static Restriction |
createRepositoryRestriction(String name,
String descr)
Create a Repository Restriction. |
static Restriction |
createRestriction(int type)
Creates a restriction given only its type. |
static Restriction |
createRestriction(int type,
int id)
Creates a restriction given its type and id. |
static Restriction |
createSchemaRestriction(int id,
String name,
String descr)
Create a Schema Restriction. |
static Restriction |
createSchemaRestriction(String name,
String descr)
Create a Schema Restriction. |
String |
getDescription()
Gets the restriction's description. |
int |
getId()
Gets the restriction id. |
String |
getName()
Gets the restriciton's name. |
static Set |
getRestrictions()
Retrieve the set of all restrictions. |
int |
getType()
Gets restriction type. |
String |
getUri()
|
void |
setDescription(String descr)
Sets the restriction's description. |
void |
setId(int id)
Sets restriction's id. |
void |
setName(String name)
Sets the restriciton's name. |
void |
setType(int type)
Sets the type of the restriction. |
void |
setUri(String uri)
|
ArrayList |
toSql(Map idByLiteral,
Map idByRes)
Creates update queries over the restrictions, res_prop_restrs, query_restrs, pattern_restrs tables. |
static int |
type2Int(String type)
Converts the type to its integer value. |
static String |
type2String(int type)
Gets the string representation of the type of the restriction. e.g. 1 is Repository. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int REPOSITORY
public static final int SCHEMA
public static final int CLASSES
public static final int INSTANCES
public static final int PROPERTIES
public static final int PATTERN
public static final int QUERY
public static final int CLASSES_OVER_SCHEMA
public static final String REPOSITORY_RESTRICTION
public static final String SCHEMA_RESTRICTION
public static final String CLASSES_RESTRICTION
public static final String INSTANCES_RESTRICTION
public static final String PROPERTIES_RESTRICTION
public static final String PATTERN_RESTRICTION
public static final String QUERY_RESTRICTION
public static final String CLASSES_OVER_SCHEMA_RESTRICTION
| Method Detail |
public static Restriction createRestriction(int type)
type - the type of the restriction
public static Restriction createRestriction(int type,
int id)
type - the type of the restrictionid - the id of the restriction
public static Restriction createRepositoryRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createRepositoryRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createSchemaRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createSchemaRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createClassesRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createClassesRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createClassesOverSchemaRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createClassesOverSchemaRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createInstancesRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createInstancesRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createPropertiesRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createPropertiesRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createPatternRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createPatternRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Restriction createQueryRestriction(int id,
String name,
String descr)
id - id of the restriction.name - name of the restriction.descr - description of the restriction.
public static Restriction createQueryRestriction(String name,
String descr)
name - name of the restriction.descr - description of the restriction.
public static Set getRestrictions()
public static String type2String(int type)
type - the type to be converted
public static int type2Int(String type)
type - the String representation of the Restriction type
public int getId()
public void setId(int id)
id - the id to be set.public String getDescription()
public void setDescription(String descr)
descr - the restriction's descriptionpublic String getName()
public void setName(String name)
name - the name to be setpublic int getType()
public void setType(int type)
type - restriction type
public ArrayList toSql(Map idByLiteral,
Map idByRes)
throws NullParameterException,
SecurityException
NullParameterException
SecurityExceptionpublic void setUri(String uri)
public String getUri()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||