|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xmldb.RemoteUserManagementService
public class RemoteUserManagementService
Modified by {Marco.Tampucci, Massimo.Martinelli} @isti.cnr.it
| Constructor Summary | |
|---|---|
RemoteUserManagementService(RemoteCollection collection)
|
|
| Method Summary | |
|---|---|
void |
addUser(User user)
Add a new user account |
void |
addUserGroup(User user)
Update the specified user without update user's password Method added by {Marco.Tampucci, Massimo.Martinelli} @isti.cnr.it |
void |
chmod(int mode)
|
void |
chmod(Resource res,
int mode)
Change permissions for the specified resource. |
void |
chmod(Resource res,
String mode)
Change access mode of a resource |
void |
chmod(String mode)
Change access mode of the current collection |
void |
chown(Resource res,
User u,
String group)
Change the owner of a resource |
void |
chown(User u,
String group)
Change the owner of the current collection |
String[] |
getGroups()
Retrieve a list of all existing groups. |
String |
getName()
Gets the name attribute of the UserManagementServiceImpl object |
Permission |
getPermissions(Collection coll)
Get current permissions for a collection |
Permission |
getPermissions(Resource res)
Get current permissions for a resource |
String |
getProperty(String property)
Gets the property attribute of the UserManagementServiceImpl object |
User |
getUser(String name)
Get user information for specified user |
User[] |
getUsers()
Get a list of all users currently defined |
String |
getVersion()
Gets the version attribute of the UserManagementServiceImpl object |
String |
hasUserLock(Resource res)
Check if the resource has a user lock. |
Permission[] |
listCollectionPermissions()
Get permissions for all child collections contained in the current collection. |
Permission[] |
listResourcePermissions()
Get permissions for all resources contained in the current collection. |
void |
lockResource(Resource res,
User u)
Lock the specified resource for the specified user. |
void |
removeGroup(User user,
String rmgroup)
Update the specified user removing a group from user's group method added by {Marco.Tampucci, Massimo.Martinelli} @isti.cnr.it |
void |
removeUser(User u)
Remove user. |
void |
setCollection(Collection collection)
Sets the collection attribute of the UserManagementServiceImpl object |
void |
setPermissions(Collection child,
Permission perms)
Change permissions for a resource. |
void |
setPermissions(Resource res,
Permission perms)
Change permissions for a resource. |
void |
setProperty(String property,
String value)
Sets the property attribute of the UserManagementServiceImpl object |
void |
unlockResource(Resource res)
Unlock the specified resource. |
void |
updateUser(User user)
Update the specified user |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteUserManagementService(RemoteCollection collection)
| Method Detail |
|---|
public void addUser(User user)
throws XMLDBException
addUser in interface UserManagementServiceuser - The user to be added
XMLDBException - Description of the Exception
public void setPermissions(Resource res,
Permission perms)
throws XMLDBException
setPermissions in interface UserManagementServiceXMLDBException
public void setPermissions(Collection child,
Permission perms)
throws XMLDBException
setPermissions in interface UserManagementServiceXMLDBException
public void chmod(Resource res,
String mode)
throws XMLDBException
chmod in interface UserManagementServicemode - Access moderes - Description of the Parameter
XMLDBException - Description of the Exception
public void chmod(Resource res,
int mode)
throws XMLDBException
UserManagementService
chmod in interface UserManagementServiceXMLDBExceptionUserManagementService.chmod(org.xmldb.api.base.Resource, int)
public void chmod(String mode)
throws XMLDBException
chmod in interface UserManagementServicemode - Access mode
XMLDBException - Description of the Exception
public void chmod(int mode)
throws XMLDBException
chmod in interface UserManagementServiceXMLDBExceptionUserManagementService.chmod(int)
public void lockResource(Resource res,
User u)
throws XMLDBException
UserManagementService
lockResource in interface UserManagementServiceXMLDBException
public String hasUserLock(Resource res)
throws XMLDBException
UserManagementService
hasUserLock in interface UserManagementServiceXMLDBException
public void unlockResource(Resource res)
throws XMLDBException
UserManagementService
unlockResource in interface UserManagementServiceXMLDBException
public void chown(User u,
String group)
throws XMLDBException
chown in interface UserManagementServiceu - Description of the Parametergroup - Description of the Parameter
XMLDBException - Description of the Exception
public void chown(Resource res,
User u,
String group)
throws XMLDBException
chown in interface UserManagementServiceres - Resourceu - The new owner of the resourcegroup - The owner group
XMLDBException - Description of the Exceptionpublic String getName()
getName in interface UserManagementServicegetName in interface Service
public Permission getPermissions(Collection coll)
throws XMLDBException
getPermissions in interface UserManagementServicecoll - Collection
XMLDBException - Description of the Exception
public Permission getPermissions(Resource res)
throws XMLDBException
getPermissions in interface UserManagementServiceres - Description of the Parameter
XMLDBException - Description of the Exception
public Permission[] listResourcePermissions()
throws XMLDBException
UserManagementService
listResourcePermissions in interface UserManagementServiceXMLDBException
public Permission[] listCollectionPermissions()
throws XMLDBException
UserManagementService
listCollectionPermissions in interface UserManagementServiceXMLDBException
public String getProperty(String property)
throws XMLDBException
getProperty in interface UserManagementServicegetProperty in interface Configurableproperty - Description of the Parameter
XMLDBException - Description of the Exception
public User getUser(String name)
throws XMLDBException
getUser in interface UserManagementServicename - Description of the Parameter
XMLDBException - Description of the Exception
public User[] getUsers()
throws XMLDBException
getUsers in interface UserManagementServiceXMLDBException - Description of the Exceptionpublic String getVersion()
getVersion in interface UserManagementServicegetVersion in interface Service
public void removeUser(User u)
throws XMLDBException
removeUser in interface UserManagementServiceu - User
XMLDBException
public void setCollection(Collection collection)
throws XMLDBException
setCollection in interface UserManagementServicesetCollection in interface Servicecollection - The new collection value
XMLDBException - Description of the Exception
public void setProperty(String property,
String value)
throws XMLDBException
setProperty in interface UserManagementServicesetProperty in interface Configurableproperty - The new property valuevalue - The new property value
XMLDBException - Description of the Exception
public void updateUser(User user)
throws XMLDBException
updateUser in interface UserManagementServiceuser - Description of the Parameter
XMLDBException - Description of the Exception
public void addUserGroup(User user)
throws XMLDBException
addUserGroup in interface UserManagementServiceuser - Description of the Parameter
XMLDBException - Description of the Exception
public void removeGroup(User user,
String rmgroup)
throws XMLDBException
removeGroup in interface UserManagementServiceuser - Description of the Parameterrmgroup - Description of group to remove
XMLDBException - Description of the Exception
public String[] getGroups()
throws XMLDBException
UserManagementService
getGroups in interface UserManagementServiceXMLDBException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||