|
|||||||
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 UserManagementService
user
- The user to be added
XMLDBException
- Description of the Exceptionpublic void setPermissions(Resource res, Permission perms) throws XMLDBException
setPermissions
in interface UserManagementService
XMLDBException
public void setPermissions(Collection child, Permission perms) throws XMLDBException
setPermissions
in interface UserManagementService
XMLDBException
public void chmod(Resource res, String mode) throws XMLDBException
chmod
in interface UserManagementService
mode
- Access moderes
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic void chmod(Resource res, int mode) throws XMLDBException
UserManagementService
chmod
in interface UserManagementService
XMLDBException
UserManagementService.chmod(org.xmldb.api.base.Resource, int)
public void chmod(String mode) throws XMLDBException
chmod
in interface UserManagementService
mode
- Access mode
XMLDBException
- Description of the Exceptionpublic void chmod(int mode) throws XMLDBException
chmod
in interface UserManagementService
XMLDBException
UserManagementService.chmod(int)
public void lockResource(Resource res, User u) throws XMLDBException
UserManagementService
lockResource
in interface UserManagementService
XMLDBException
public String hasUserLock(Resource res) throws XMLDBException
UserManagementService
hasUserLock
in interface UserManagementService
XMLDBException
public void unlockResource(Resource res) throws XMLDBException
UserManagementService
unlockResource
in interface UserManagementService
XMLDBException
public void chown(User u, String group) throws XMLDBException
chown
in interface UserManagementService
u
- Description of the Parametergroup
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic void chown(Resource res, User u, String group) throws XMLDBException
chown
in interface UserManagementService
res
- Resourceu
- The new owner of the resourcegroup
- The owner group
XMLDBException
- Description of the Exceptionpublic String getName()
getName
in interface UserManagementService
getName
in interface Service
public Permission getPermissions(Collection coll) throws XMLDBException
getPermissions
in interface UserManagementService
coll
- Collection
XMLDBException
- Description of the Exceptionpublic Permission getPermissions(Resource res) throws XMLDBException
getPermissions
in interface UserManagementService
res
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic Permission[] listResourcePermissions() throws XMLDBException
UserManagementService
listResourcePermissions
in interface UserManagementService
XMLDBException
public Permission[] listCollectionPermissions() throws XMLDBException
UserManagementService
listCollectionPermissions
in interface UserManagementService
XMLDBException
public String getProperty(String property) throws XMLDBException
getProperty
in interface UserManagementService
getProperty
in interface Configurable
property
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic User getUser(String name) throws XMLDBException
getUser
in interface UserManagementService
name
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic User[] getUsers() throws XMLDBException
getUsers
in interface UserManagementService
XMLDBException
- Description of the Exceptionpublic String getVersion()
getVersion
in interface UserManagementService
getVersion
in interface Service
public void removeUser(User u) throws XMLDBException
removeUser
in interface UserManagementService
u
- User
XMLDBException
public void setCollection(Collection collection) throws XMLDBException
setCollection
in interface UserManagementService
setCollection
in interface Service
collection
- The new collection value
XMLDBException
- Description of the Exceptionpublic void setProperty(String property, String value) throws XMLDBException
setProperty
in interface UserManagementService
setProperty
in interface Configurable
property
- The new property valuevalue
- The new property value
XMLDBException
- Description of the Exceptionpublic void updateUser(User user) throws XMLDBException
updateUser
in interface UserManagementService
user
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic void addUserGroup(User user) throws XMLDBException
addUserGroup
in interface UserManagementService
user
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic void removeGroup(User user, String rmgroup) throws XMLDBException
removeGroup
in interface UserManagementService
user
- Description of the Parameterrmgroup
- Description of group to remove
XMLDBException
- Description of the Exceptionpublic String[] getGroups() throws XMLDBException
UserManagementService
getGroups
in interface UserManagementService
XMLDBException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |