|
|||||||
| 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(org.xmldb.api.base.Resource res,
int mode)
Change permissions for the specified resource. |
void |
chmod(org.xmldb.api.base.Resource res,
String mode)
Change access mode of a resource |
void |
chmod(String mode)
Change access mode of the current collection |
void |
chown(org.xmldb.api.base.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(org.xmldb.api.base.Collection coll)
Get current permissions for a collection |
Permission |
getPermissions(org.xmldb.api.base.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(org.xmldb.api.base.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(org.xmldb.api.base.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(org.xmldb.api.base.Collection collection)
Sets the collection attribute of the UserManagementServiceImpl object |
void |
setPermissions(org.xmldb.api.base.Collection child,
Permission perms)
Change permissions for a resource. |
void |
setPermissions(org.xmldb.api.base.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(org.xmldb.api.base.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 org.xmldb.api.base.XMLDBException
addUser in interface UserManagementServiceuser - The user to be added
org.xmldb.api.base.XMLDBException - Description of the Exception
public void setPermissions(org.xmldb.api.base.Resource res,
Permission perms)
throws org.xmldb.api.base.XMLDBException
setPermissions in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public void setPermissions(org.xmldb.api.base.Collection child,
Permission perms)
throws org.xmldb.api.base.XMLDBException
setPermissions in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public void chmod(org.xmldb.api.base.Resource res,
String mode)
throws org.xmldb.api.base.XMLDBException
chmod in interface UserManagementServicemode - Access moderes - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public void chmod(org.xmldb.api.base.Resource res,
int mode)
throws org.xmldb.api.base.XMLDBException
UserManagementService
chmod in interface UserManagementServiceorg.xmldb.api.base.XMLDBExceptionUserManagementService.chmod(org.xmldb.api.base.Resource, int)
public void chmod(String mode)
throws org.xmldb.api.base.XMLDBException
chmod in interface UserManagementServicemode - Access mode
org.xmldb.api.base.XMLDBException - Description of the Exception
public void chmod(int mode)
throws org.xmldb.api.base.XMLDBException
chmod in interface UserManagementServiceorg.xmldb.api.base.XMLDBExceptionUserManagementService.chmod(int)
public void lockResource(org.xmldb.api.base.Resource res,
User u)
throws org.xmldb.api.base.XMLDBException
UserManagementService
lockResource in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public String hasUserLock(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
UserManagementService
hasUserLock in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public void unlockResource(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
UserManagementService
unlockResource in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public void chown(User u,
String group)
throws org.xmldb.api.base.XMLDBException
chown in interface UserManagementServiceu - Description of the Parametergroup - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public void chown(org.xmldb.api.base.Resource res,
User u,
String group)
throws org.xmldb.api.base.XMLDBException
chown in interface UserManagementServiceres - Resourceu - The new owner of the resourcegroup - The owner group
org.xmldb.api.base.XMLDBException - Description of the Exceptionpublic String getName()
getName in interface UserManagementServicegetName in interface org.xmldb.api.base.Service
public Permission getPermissions(org.xmldb.api.base.Collection coll)
throws org.xmldb.api.base.XMLDBException
getPermissions in interface UserManagementServicecoll - Collection
org.xmldb.api.base.XMLDBException - Description of the Exception
public Permission getPermissions(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
getPermissions in interface UserManagementServiceres - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public Permission[] listResourcePermissions()
throws org.xmldb.api.base.XMLDBException
UserManagementService
listResourcePermissions in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public Permission[] listCollectionPermissions()
throws org.xmldb.api.base.XMLDBException
UserManagementService
listCollectionPermissions in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
public String getProperty(String property)
throws org.xmldb.api.base.XMLDBException
getProperty in interface UserManagementServicegetProperty in interface org.xmldb.api.base.Configurableproperty - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public User getUser(String name)
throws org.xmldb.api.base.XMLDBException
getUser in interface UserManagementServicename - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public User[] getUsers()
throws org.xmldb.api.base.XMLDBException
getUsers in interface UserManagementServiceorg.xmldb.api.base.XMLDBException - Description of the Exceptionpublic String getVersion()
getVersion in interface UserManagementServicegetVersion in interface org.xmldb.api.base.Service
public void removeUser(User u)
throws org.xmldb.api.base.XMLDBException
removeUser in interface UserManagementServiceu - User
org.xmldb.api.base.XMLDBException
public void setCollection(org.xmldb.api.base.Collection collection)
throws org.xmldb.api.base.XMLDBException
setCollection in interface UserManagementServicesetCollection in interface org.xmldb.api.base.Servicecollection - The new collection value
org.xmldb.api.base.XMLDBException - Description of the Exception
public void setProperty(String property,
String value)
throws org.xmldb.api.base.XMLDBException
setProperty in interface UserManagementServicesetProperty in interface org.xmldb.api.base.Configurableproperty - The new property valuevalue - The new property value
org.xmldb.api.base.XMLDBException - Description of the Exception
public void updateUser(User user)
throws org.xmldb.api.base.XMLDBException
updateUser in interface UserManagementServiceuser - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public void addUserGroup(User user)
throws org.xmldb.api.base.XMLDBException
addUserGroup in interface UserManagementServiceuser - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
public void removeGroup(User user,
String rmgroup)
throws org.xmldb.api.base.XMLDBException
removeGroup in interface UserManagementServiceuser - Description of the Parameterrmgroup - Description of group to remove
org.xmldb.api.base.XMLDBException - Description of the Exception
public String[] getGroups()
throws org.xmldb.api.base.XMLDBException
UserManagementService
getGroups in interface UserManagementServiceorg.xmldb.api.base.XMLDBException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||