|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.backend.hibernate.MCRHIBUserStore
public class MCRHIBUserStore
This class implements the interface MCRUserStore - flushmode is configured to COMMIT !
| Field Summary | |
|---|---|
(package private) static Logger |
logger
|
| Constructor Summary | |
|---|---|
MCRHIBUserStore()
The constructor reads the names of the SQL tables which hold the user information data from mycore.properties. |
|
| Method Summary | |
|---|---|
void |
createGroup(MCRGroup newGroup)
This method creates a MyCoRe group object in the persistent datastore. |
void |
createUser(MCRUser newUser)
This method creates a MyCoRe user object in the persistent datastore. |
void |
createUserTables()
|
void |
deleteGroup(String delGroupID)
This method deletes a MyCoRe group object in the persistent datastore. |
void |
deleteUser(String delUserID)
This method deletes a MyCoRe user object from the persistent datastore. |
boolean |
existsGroup(String groupID)
This method tests if a MyCoRe group object is available in the persistent datastore. |
boolean |
existsUser(int numID,
String userID)
This method tests if a MyCoRe user object is available in the persistent datastore. |
boolean |
existsUser(String userID)
This method tests if a MyCoRe user object is available in the persistent datastore. |
List<String> |
getAllGroupIDs()
This method gets all group IDs and returns them as a ArrayList of strings. |
List<String> |
getAllUserIDs()
This method gets all user IDs and returns them as a ArrayList of strings. |
List<String> |
getGroupIDsWithAdminUser(String userID)
This method gets all group IDs where a given user ID can manage the group (i.e. |
int |
getMaxUserNumID()
This method returns the maximum value of the numerical user IDs |
List<String> |
getUserIDsWithPrimaryGroup(String groupID)
This method gets all user IDs with a given primary group and returns them as a ArrayList of strings. |
MCRGroup |
retrieveGroup(String groupID)
This method retrieves a MyCoRe group object from the persistent datastore. |
MCRUser |
retrieveUser(String userID)
This method retrieves a MyCoRe user object from the persistent datastore. |
void |
updateGroup(MCRGroup group)
This method updates a MyCoRe group object in the persistent datastore. |
void |
updateUser(MCRUser updUser)
This method updates a MyCoRe user object in the persistent datastore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static Logger logger
| Constructor Detail |
|---|
public MCRHIBUserStore()
| Method Detail |
|---|
public void createUser(MCRUser newUser)
throws MCRException
createUser in interface MCRUserStorenewUser - the new user object to be stored
MCRException
public void deleteUser(String delUserID)
throws MCRException
deleteUser in interface MCRUserStoredelUserID - a String representing the MyCoRe user object which is to be
deleted
MCRException
public boolean existsUser(String userID)
throws MCRException
existsUser in interface MCRUserStoreuserID - a String representing the MyCoRe user object which is to be
looked for
MCRException
public boolean existsUser(int numID,
String userID)
throws MCRException
existsUser in interface MCRUserStorenumID - (int) numerical userID of the MyCoRe user objectuserID - a String representing the MyCoRe user object which is to be
looked for
MCRException
public MCRUser retrieveUser(String userID)
throws MCRException
retrieveUser in interface MCRUserStoreuserID - a String representing the MyCoRe user object which is to be
retrieved
MCRException
public void updateUser(MCRUser updUser)
throws MCRException
updateUser in interface MCRUserStoreupdUser - the user to be updated
MCRException
public List<String> getAllUserIDs()
throws MCRException
getAllUserIDs in interface MCRUserStoreMCRException
public int getMaxUserNumID()
throws MCRException
getMaxUserNumID in interface MCRUserStoreMCRException
public void createGroup(MCRGroup newGroup)
throws MCRException
createGroup in interface MCRUserStorenewGroup - the new group object to be stored
MCRException
public boolean existsGroup(String groupID)
throws MCRException
existsGroup in interface MCRUserStoregroupID - a String representing the MyCoRe group object which is to be
looked for
MCRException
public void deleteGroup(String delGroupID)
throws MCRException
deleteGroup in interface MCRUserStoredelGroupID - a String representing the MyCoRe group object which is to be
deleted
MCRException
public List<String> getAllGroupIDs()
throws MCRException
getAllGroupIDs in interface MCRUserStoreMCRException
public List<String> getGroupIDsWithAdminUser(String userID)
throws MCRException
getGroupIDsWithAdminUser in interface MCRUserStoreuserID - a String representing the administrative user
MCRException
public List<String> getUserIDsWithPrimaryGroup(String groupID)
throws MCRException
getUserIDsWithPrimaryGroup in interface MCRUserStoregroupID - a String representing a primary Group
MCRException
public void updateGroup(MCRGroup group)
throws MCRException
updateGroup in interface MCRUserStoregroup - the group to be updated
MCRException
public MCRGroup retrieveGroup(String groupID)
throws MCRException
retrieveGroup in interface MCRUserStoregroupID - a String representing the MyCoRe group object which is to be
retrieved
MCRExceptionpublic void createUserTables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||