asit.moa.moaid.manager
Class JDBCRoleManager
java.lang.Object
asit.moa.moaid.manager.JDBCRoleManager
- All Implemented Interfaces:
- RoleManager
- public class JDBCRoleManager
- extends Object
- implements RoleManager
|
Method Summary |
void |
addAuthorityProfile(String profileName)
|
void |
addBPK(String base64BPK,
Citizen citizen)
|
void |
addCitizen(Citizen citizen)
|
void |
addCitizenProfile(String role,
Citizen citizen)
|
void |
addCitizenRole(String role,
Citizen citizen)
|
void |
addCommon(String role,
Citizen citizen,
boolean isProfile)
|
void |
addRole(String role)
|
void |
addSingle(String role,
boolean isProfile)
|
List |
getAuthorityProfiles()
|
List |
getBPKCitizens()
|
List |
getBPKs()
|
Citizen |
getCitizen(int id)
|
int |
getCitizenId(Citizen citizen)
|
int |
getCitizenId(String bpk)
|
List |
getCitizens()
|
List |
getCitizensByCommonName(String roleName,
boolean isProfile)
|
List |
getCommonCitizensExclude(String roleName,
boolean isProfile)
|
int |
getProfileId(String roleName)
|
String |
getRoleById(int id)
|
List |
getRoleCitizensCommon(String roleName,
boolean isProfile)
|
int |
getRoleId(String roleName)
|
List |
getRoles()
|
List |
getRolesByCitizen(int citizenId)
|
List |
getSingle(boolean isProfile)
|
String |
getSingleRow(boolean isProfile)
|
String |
getSingleTable(boolean isProfile)
|
static void |
main(String[] args)
|
void |
removeAuthorityProfile(String profileName)
|
void |
removeBPK(String base64BPK)
|
void |
removeCitizen(Citizen citizen)
|
void |
removeCitizen(int citizenId)
|
void |
removeCitizenProfile(String role,
Citizen citizen)
|
void |
removeCitizenProfiles(Citizen citizen)
|
void |
removeCitizenProfiles(String role)
|
void |
removeCitizenRole(String role,
Citizen citizen)
|
void |
removeCitizenRoles(Citizen citizen)
|
void |
removeCitizenRoles(String role)
|
void |
removeCommon(Citizen citizen,
boolean isProfile)
|
void |
removeCommon(String role,
boolean isProfile)
|
void |
removeCommon(String role,
Citizen citizen,
boolean isProfile)
|
void |
removeRole(String role)
|
void |
removeSingle(String role,
boolean isProfile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection_
protected Connection connection_
JDBCRoleManager
public JDBCRoleManager(String jdbcURL)
throws RoleManagerException
getRolesByCitizen
public List getRolesByCitizen(int citizenId)
throws RoleManagerException
- Throws:
RoleManagerException
getRoleById
public String getRoleById(int id)
throws RoleManagerException
- Throws:
RoleManagerException
getRoleId
public int getRoleId(String roleName)
throws RoleManagerException
- Throws:
RoleManagerException
getRoleCitizensCommon
public List getRoleCitizensCommon(String roleName,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
getCitizensByCommonName
public List getCitizensByCommonName(String roleName,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
getCommonCitizensExclude
public List getCommonCitizensExclude(String roleName,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
getProfileId
public int getProfileId(String roleName)
throws RoleManagerException
- Throws:
RoleManagerException
getCitizenId
public int getCitizenId(Citizen citizen)
throws RoleManagerException
- Throws:
RoleManagerException
getCitizenId
public int getCitizenId(String bpk)
throws RoleManagerException
- Throws:
RoleManagerException
addCommon
public void addCommon(String role,
Citizen citizen,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
removeCommon
public void removeCommon(String role,
Citizen citizen,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
removeCommon
public void removeCommon(String role,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
removeCommon
public void removeCommon(Citizen citizen,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
addCitizenProfile
public void addCitizenProfile(String role,
Citizen citizen)
throws RoleManagerException
- Specified by:
addCitizenProfile in interface RoleManager
- Throws:
RoleManagerException
removeCitizenProfile
public void removeCitizenProfile(String role,
Citizen citizen)
throws RoleManagerException
- Specified by:
removeCitizenProfile in interface RoleManager
- Throws:
RoleManagerException
removeCitizenProfiles
public void removeCitizenProfiles(String role)
throws RoleManagerException
- Specified by:
removeCitizenProfiles in interface RoleManager
- Throws:
RoleManagerException
removeCitizenProfiles
public void removeCitizenProfiles(Citizen citizen)
throws RoleManagerException
- Specified by:
removeCitizenProfiles in interface RoleManager
- Throws:
RoleManagerException
addBPK
public void addBPK(String base64BPK,
Citizen citizen)
throws RoleManagerException
- Specified by:
addBPK in interface RoleManager
- Throws:
RoleManagerException
removeBPK
public void removeBPK(String base64BPK)
throws RoleManagerException
- Specified by:
removeBPK in interface RoleManager
- Throws:
RoleManagerException
addCitizen
public void addCitizen(Citizen citizen)
throws RoleManagerException
- Specified by:
addCitizen in interface RoleManager
- Throws:
RoleManagerException
removeCitizen
public void removeCitizen(Citizen citizen)
throws RoleManagerException
- Specified by:
removeCitizen in interface RoleManager
- Throws:
RoleManagerException
removeCitizen
public void removeCitizen(int citizenId)
throws RoleManagerException
- Throws:
RoleManagerException
getCitizens
public List getCitizens()
throws RoleManagerException
- Specified by:
getCitizens in interface RoleManager
- Throws:
RoleManagerException
addSingle
public void addSingle(String role,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
removeSingle
public void removeSingle(String role,
boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
getSingleTable
public String getSingleTable(boolean isProfile)
getSingleRow
public String getSingleRow(boolean isProfile)
getSingle
public List getSingle(boolean isProfile)
throws RoleManagerException
- Throws:
RoleManagerException
getBPKs
public List getBPKs()
throws RoleManagerException
- Throws:
RoleManagerException
getCitizen
public Citizen getCitizen(int id)
throws RoleManagerException
- Throws:
RoleManagerException
getBPKCitizens
public List getBPKCitizens()
throws RoleManagerException
- Throws:
RoleManagerException
addAuthorityProfile
public void addAuthorityProfile(String profileName)
throws RoleManagerException
- Specified by:
addAuthorityProfile in interface RoleManager
- Throws:
RoleManagerException
removeAuthorityProfile
public void removeAuthorityProfile(String profileName)
throws RoleManagerException
- Specified by:
removeAuthorityProfile in interface RoleManager
- Throws:
RoleManagerException
getAuthorityProfiles
public List getAuthorityProfiles()
throws RoleManagerException
- Specified by:
getAuthorityProfiles in interface RoleManager
- Throws:
RoleManagerException
addCitizenRole
public void addCitizenRole(String role,
Citizen citizen)
throws RoleManagerException
- Specified by:
addCitizenRole in interface RoleManager
- Throws:
RoleManagerException
removeCitizenRole
public void removeCitizenRole(String role,
Citizen citizen)
throws RoleManagerException
- Specified by:
removeCitizenRole in interface RoleManager
- Throws:
RoleManagerException
removeCitizenRoles
public void removeCitizenRoles(String role)
throws RoleManagerException
- Specified by:
removeCitizenRoles in interface RoleManager
- Throws:
RoleManagerException
removeCitizenRoles
public void removeCitizenRoles(Citizen citizen)
throws RoleManagerException
- Specified by:
removeCitizenRoles in interface RoleManager
- Throws:
RoleManagerException
addRole
public void addRole(String role)
throws RoleManagerException
- Specified by:
addRole in interface RoleManager
- Throws:
RoleManagerException
removeRole
public void removeRole(String role)
throws RoleManagerException
- Specified by:
removeRole in interface RoleManager
- Throws:
RoleManagerException
getRoles
public List getRoles()
throws RoleManagerException
- Specified by:
getRoles in interface RoleManager
- Throws:
RoleManagerException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.