|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Security Services inteface. That inteface holds all external methods to manage users and groups for the repository. This includes user authenication, basic users management, and basic group managemenet methods. Manipulation of a patricular user or group is made via more specific interfaces that can be retrieved through this one. This interface also provides import and export of the security setup from/to RDF.
| Method Summary | |
void |
addUser(int id,
String login,
String password,
String name)
Adds an new user. |
Restriction |
createRestriction(int id,
int type,
String name,
String description)
Creates a new restriction. |
Role |
createRole(int id,
String name,
String desctiption,
Set parentRoles)
Creates a new Role in the repository. |
void |
exportPolicy(RdfRepository repos)
Exports the Security Policy to a Sail. |
Resource |
getResource(int id)
Gets a resource given its id |
int |
getResourceId(Resource res)
Gets the id associated with a resource. |
Restriction |
getRestriction(int id)
Gets restriction by id. |
Role |
getRole(int id)
Gets the role given its id. |
Role |
getRole(String name)
Gets the role given its name. |
Set |
getRoles()
Retrive a set of the roles' ids. |
User |
getUser(int id)
Gets a user, given it's id |
User |
getUser(String login)
Retrieves a interface to an object that supports the User interface. |
Set |
getUsers()
Retrieves a set of the users in the repository. |
void |
importPolicy(Graph graph)
Imports the security policy given an RDF Graph. |
boolean |
isRepositoryAccessible(Right right)
Checks the accessibility of a repository for a specified right. |
boolean |
isResourceAccessible(Resource res)
Checks the accessibility of a resource according the security policy and the existence of a Read right over the resource. |
boolean |
isSchemaAccessible(Right right)
Checks the accessibility of a tracking for a specified right. |
boolean |
isStatementAccessible(Resource subj,
URI pred,
Value obj,
Right right)
Checks the accessibility of a statement according the security policy and a given right. |
boolean |
isStatementAccessible(Statement st,
Right right)
Checks the accessibility of a statement according the security policy and a given right. |
boolean |
isValueAccessible(Value val)
Checks the accessibility of a value according to the security policy. |
boolean |
isVersionTrackingAccessible()
Checks if the user has access to the versioning and tracking sail. |
void |
removeRole(int id)
Removes user role from the repository. |
void |
removeRole(String name)
Remove user role from the repository. |
void |
removeUser(String login)
Removes a user given its login. |
| Method Detail |
public void addUser(int id,
String login,
String password,
String name)
id - user's idlogin - user's loginpassword - user's passwordname - user's namepublic void removeUser(String login)
login - the login of the user to be removed.public Set getUsers()
public User getUser(String login)
login - the user's login
public User getUser(int id)
id - the user's id
public Role createRole(int id,
String name,
String desctiption,
Set parentRoles)
id - the id of the rolename - the name of the role to be createddesctiption - the desctiption of the role to be createdparentRoles - Set of parent roles to inherit permissions from.
public void removeRole(String name)
name - the name of the role to be removedpublic void removeRole(int id)
id - the id of the role to be removedpublic Set getRoles()
public Role getRole(String name)
name - the name of the role.
public Role getRole(int id)
id - the id of the role.
public Restriction createRestriction(int id,
int type,
String name,
String description)
throws NullParameterException
id - type - type of the restrictionname - description -
NullParameterException - if a parameter is null.public Restriction getRestriction(int id)
id -
public boolean isResourceAccessible(Resource res)
res - the resource
public boolean isStatementAccessible(Statement st,
Right right)
st - The statement.right - the right which is being checked for this statement
public boolean isStatementAccessible(Resource subj,
URI pred,
Value obj,
Right right)
subj - the subject of the statementpred - the predicate of the statementobj - the object of the statementright - the right which is being checked for this statement
public boolean isValueAccessible(Value val)
val - the value to be checked
public boolean isRepositoryAccessible(Right right)
right - the right to be checked
public boolean isSchemaAccessible(Right right)
right - the right to be checked
public boolean isVersionTrackingAccessible()
public int getResourceId(Resource res)
throws SecurityException
res - a resource
SecurityException - if something goes wrong with the execution of the methodpublic Resource getResource(int id)
id - the id of the resource
public void exportPolicy(RdfRepository repos)
repos - the RdfRepository to export topublic void importPolicy(Graph graph)
graph - the Graph to read the security policy from
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||