|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opentox.pol.mysql.MySQL
public class MySQL
Constructor Summary | |
---|---|
MySQL()
|
Method Summary | |
---|---|
void |
add(String pol,
String user,
String res)
|
void |
close()
|
void |
delete_pol(String pol)
|
protected Connection |
getConnection(String user,
String pw)
|
String |
getDbUser(String id)
|
String |
getPoliciesByUser(String token_user)
get all policies owned by token user |
String |
getUriOwner(String uri,
String polnames)
|
void |
open()
|
boolean |
search_pol_name(String pol)
|
List<String> |
search_pol(String pol)
Retrieve policyid, user, and resource , given a policy id |
String[] |
search_res_pol(String res)
get user who created res and all policy names associated with it |
String[] |
search_res(String res)
Retrieves resource owner (user name), given by resource URI |
String |
search_user_by_pol(String pol)
|
String |
search_users_pols(String user)
Retrieves policy ids, given user name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MySQL()
Method Detail |
---|
public void open() throws DbException, RestException
DbException
RestException
protected Connection getConnection(String user, String pw) throws Exception
Exception
public void close()
public void add(String pol, String user, String res) throws DbException
DbException
public void delete_pol(String pol) throws DbException
DbException
public String search_user_by_pol(String pol) throws DbException
DbException
public boolean search_pol_name(String pol) throws DbException
DbException
public List<String> search_pol(String pol) throws Exception
pol
-
Exception
public String search_users_pols(String user) throws DbException
user
-
DbException
public String[] search_res(String res) throws DbException
res
-
DbException
public String[] search_res_pol(String res) throws DbException
DbException
public String getDbUser(String id) throws DbException
id
- policy id
Exception
DbException
public String getUriOwner(String uri, String polnames) throws DbException
DbException
public String getPoliciesByUser(String token_user) throws DbException
token_user
-
DbException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |