|
||||||||||
| 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 |
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)
Description of the Method |
void |
setCollection(Collection collection)
Sets the collection attribute of the UserManagementServiceImpl object |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exist.xmldb.UserManagementService |
setPermissions |
| 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
XMLDBException
public void chmod(Resource res,
java.lang.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 UserManagementServiceXMLDBExceptionorg.exist.xmldb.UserManagementService#chmod(org.xmldb.api.base.Resource, int)
public void chmod(java.lang.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 UserManagementServiceres - u -
XMLDBException
public java.lang.String hasUserLock(Resource res)
throws XMLDBException
UserManagementService
hasUserLock in interface UserManagementServiceres -
XMLDBException
public void unlockResource(Resource res)
throws XMLDBException
UserManagementService
unlockResource in interface UserManagementServiceres -
XMLDBException
public void chown(User u,
java.lang.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,
java.lang.String group)
throws XMLDBException
chown in interface UserManagementServiceres - 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 UserManagementServicecoll - Collection
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 java.lang.String getProperty(java.lang.String property)
throws XMLDBException
getProperty in interface UserManagementServiceproperty - Description of the Parameter
XMLDBException - Description of the Exception
public User getUser(java.lang.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 java.lang.String getVersion()
getVersion in interface UserManagementService
public void removeUser(User u)
throws XMLDBException
removeUser in interface UserManagementServiceXMLDBException - Description of the Exception
public void setCollection(Collection collection)
throws XMLDBException
setCollection in interface UserManagementServicecollection - The new collection value
XMLDBException - Description of the Exception
public void setProperty(java.lang.String property,
java.lang.String value)
throws XMLDBException
setProperty in interface UserManagementServiceproperty - 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 java.lang.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 | |||||||||