|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.keymanager.front.webapp.AbstractService org.cumulus4j.keymanager.front.webapp.UserService
public class UserService
REST service for user management.
Field Summary |
---|
Fields inherited from class org.cumulus4j.keymanager.front.webapp.AbstractService |
---|
keyStoreManager, request |
Constructor Summary | |
---|---|
UserService()
Create a new instance. |
Method Summary | |
---|---|
void |
deleteUser(String keyStoreID,
String userName)
Delete a user. |
User |
getUser(String keyStoreID,
String userName)
Get a KeyStore 's user identified by the given
keyStoreID and userName . |
UserList |
getUsers(String keyStoreID)
Get all users of the KeyStore identified by keyStoreID . |
void |
postUser(String keyStoreID,
UserWithPassword userWithPassword)
Compatibility for clients not supporting PUT . |
void |
putUser(String keyStoreID,
UserWithPassword userWithPassword)
Put a user. |
Methods inherited from class org.cumulus4j.keymanager.front.webapp.AbstractService |
---|
authenticate, getAuth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserService()
Method Detail |
---|
public User getUser(String keyStoreID, String userName)
KeyStore
's user identified by the given
keyStoreID
and userName
.
keyStoreID
- identifier of the KeyStore
to work with.userName
- the user's name.
null
, if there is no user with the given name
in the specified KeyStore
.public UserList getUsers(String keyStoreID)
KeyStore
identified by keyStoreID
.
keyStoreID
- identifier of the KeyStore
to work with.
KeyStore
identified by keyStoreID
.public void postUser(String keyStoreID, UserWithPassword userWithPassword)
PUT
. This method does the same as (it delegates to)
putUser(String, UserWithPassword)
. Ajax-Clients (e.g. jQuery in Firefox) seem
not to support PUT
.
public void putUser(String keyStoreID, UserWithPassword userWithPassword)
name
already exists,
it is updated, otherwise the new user is added to the KeyStore
identified by keyStoreID
.
keyStoreID
- identifier of the KeyStore
to work with.userWithPassword
- the user's information to be stored.public void deleteUser(String keyStoreID, String userName)
keyStoreID
- identifier of the KeyStore
to work with.userName
- the name
of the user to be deleted.
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |