|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCRUserStore
The purpose of this interface is to make the choice of the persistence layer
configurable. Any concrete database-class which stores MyCoRe user, group and
privilege information must implement this interface. Which database actually
will be used can then be configured by reading the value
MCR.Persistence.User.Store.Class 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 |
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 in 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 user)
This method updates a MyCoRe user object in the persistent datastore. |
| Method Detail |
|---|
void createUser(MCRUser newUser)
throws MCRException
newUser - the new user object to be stored
MCRException
void createGroup(MCRGroup newGroup)
throws MCRException
newGroup - the new group object to be stored
MCRException
void deleteUser(String delUserID)
throws MCRException
delUserID - a String representing the MyCoRe user object which is to be
deleted
MCRException
void deleteGroup(String delGroupID)
throws MCRException
delGroupID - a String representing the MyCoRe group object which is to be
deleted
MCRException
boolean existsUser(String userID)
throws MCRException
userID - a String representing the MyCoRe user object which is to be
looked for
MCRException
boolean existsUser(int numID,
String userID)
throws MCRException
numID - (int) numerical userID of the MyCoRe user objectuserID - a String representing the MyCoRe user object which is to be
looked for
MCRException
boolean existsGroup(String groupID)
throws MCRException
groupID - a String representing the MyCoRe group object which is to be
looked for
MCRException
List<String> getAllUserIDs()
throws MCRException
MCRException
List<String> getAllGroupIDs()
throws MCRException
MCRException
int getMaxUserNumID()
throws MCRException
MCRException
List<String> getGroupIDsWithAdminUser(String userID)
throws MCRException
userID - a String representing the administrative user
MCRException
List<String> getUserIDsWithPrimaryGroup(String groupID)
throws MCRException
groupID - a String representing a primary Group
MCRException
MCRUser retrieveUser(String userID)
throws MCRException
userID - a String representing the MyCoRe user object which is to be
retrieved
MCRException
MCRGroup retrieveGroup(String groupID)
throws MCRException
groupID - a String representing the MyCoRe group object which is to be
retrieved
MCRException
void updateGroup(MCRGroup group)
throws MCRException
group - the group to be updated
MCRException
void updateUser(MCRUser user)
throws MCRException
user - the user to be updated
MCRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||