|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xmldb.RemoteUserManagementService
Constructor Summary | |
RemoteUserManagementService(RemoteCollection collection)
|
Method Summary | |
void |
addUser(User user)
Add a new user account |
void |
chmod(int mode)
|
void |
chmod(Resource res,
int mode)
Change permissions for the specified resource. |
void |
chmod(Resource res,
java.lang.String mode)
Change access mode of a resource |
void |
chmod(java.lang.String mode)
Change access mode of the current collection |
void |
chown(Resource res,
User u,
java.lang.String group)
Change the owner of a resource |
void |
chown(User u,
java.lang.String group)
Change the owner of the current collection |
java.lang.String[] |
getGroups()
Retrieve a list of all existing groups. |
java.lang.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 |
java.lang.String |
getProperty(java.lang.String property)
Gets the property attribute of the UserManagementServiceImpl object |
User |
getUser(java.lang.String name)
Get user information for specified user |
User[] |
getUsers()
Get a list of all users currently defined |
java.lang.String |
getVersion()
Gets the version attribute of the UserManagementServiceImpl object |
java.lang.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 |
removeUser(User u)
Delete a user from the database |
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(java.lang.String property,
java.lang.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
res
- perms
-
XMLDBException
public void setPermissions(Collection child, Permission perms) throws XMLDBException
setPermissions
in interface UserManagementService
child
- perms
-
XMLDBException
public void chmod(Resource res, java.lang.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(java.lang.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
res
- u
-
XMLDBException
public java.lang.String hasUserLock(Resource res) throws XMLDBException
UserManagementService
hasUserLock
in interface UserManagementService
res
-
XMLDBException
public void unlockResource(Resource res) throws XMLDBException
UserManagementService
unlockResource
in interface UserManagementService
res
-
XMLDBException
public void chown(User u, java.lang.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, java.lang.String group) throws XMLDBException
chown
in interface UserManagementService
res
- Resourceu
- The new owner of the resourcegroup
- The owner group
XMLDBException
- Description of the Exceptionpublic java.lang.String getName()
getName
in interface UserManagementService
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 java.lang.String getProperty(java.lang.String property) throws XMLDBException
getProperty
in interface UserManagementService
property
- Description of the Parameter
XMLDBException
- Description of the Exceptionpublic User getUser(java.lang.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 java.lang.String getVersion()
getVersion
in interface UserManagementService
public void removeUser(User u) throws XMLDBException
UserManagementService
removeUser
in interface UserManagementService
u
-
XMLDBException
public void setCollection(Collection collection) throws XMLDBException
setCollection
in interface UserManagementService
collection
- The new collection value
XMLDBException
- Description of the Exceptionpublic void setProperty(java.lang.String property, java.lang.String value) throws XMLDBException
setProperty
in interface UserManagementService
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 java.lang.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 |