|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.xmldb.LocalUserManagementService
| Constructor Summary | |
LocalUserManagementService(User user,
BrokerPool pool,
LocalCollection collection)
|
|
| Method Summary | |
void |
addUser(User u)
Add a new user to the database |
void |
chmod(int mode)
|
void |
chmod(Resource resource,
int mode)
Change permissions for the specified resource. |
void |
chmod(Resource resource,
java.lang.String modeStr)
Change permissions for the specified resource. |
void |
chmod(java.lang.String modeStr)
Change permissions for the current collection |
void |
chown(Resource res,
User u,
java.lang.String group)
Change owner and group of the specified resource. |
void |
chown(User u,
java.lang.String group)
Change owner and group of the current collection. |
java.lang.String[] |
getGroups()
Retrieve a list of all existing groups. |
java.lang.String |
getName()
Get the name of this service |
Permission |
getPermissions(Collection coll)
Get permissions for the specified collections |
java.lang.String |
getProperty(java.lang.String property)
Get a property defined by this service. |
User |
getUser(java.lang.String name)
Get a user record from the database |
User[] |
getUsers()
Retrieve a list of all existing users. |
java.lang.String |
getVersion()
Get the version of this service |
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)
Set the current collection for this service |
void |
setPermissions(Resource resource,
Permission perm)
|
void |
setProperty(java.lang.String property,
java.lang.String value)
Set a property for this service. |
void |
unlockResource(Resource res)
Unlock the specified resource. |
void |
updateUser(User u)
Update existing user information |
| 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 LocalUserManagementService(User user,
BrokerPool pool,
LocalCollection collection)
| Method Detail |
public void addUser(User u)
throws XMLDBException
UserManagementService
addUser in interface UserManagementServiceu - The feature to be added to the User attribute
XMLDBException
public void setPermissions(Resource resource,
Permission perm)
throws XMLDBException
XMLDBException
public void chmod(java.lang.String modeStr)
throws XMLDBException
UserManagementService
chmod in interface UserManagementServicemodeStr - String describing the permissions to
grant or deny.
XMLDBException
public void chmod(Resource resource,
int mode)
throws XMLDBException
UserManagementService
chmod in interface UserManagementServiceXMLDBException
public void chmod(int mode)
throws XMLDBException
chmod in interface UserManagementServiceXMLDBException
public void chmod(Resource resource,
java.lang.String modeStr)
throws XMLDBException
UserManagementService[user|group|other]=[+|-][read|write|update]For example, to grant all permissions to the group and deny everything to others: group=+write,+read,+update,other=-read The changes are applied to the permissions currently active for this resource.
chmod in interface UserManagementServiceresource - Description of the ParametermodeStr - Description of the Parameter
XMLDBException
public void chown(User u,
java.lang.String group)
throws XMLDBException
UserManagementService
chown in interface UserManagementServiceu - Description of the Parametergroup - Description of the Parameter
XMLDBException
public void chown(Resource res,
User u,
java.lang.String group)
throws XMLDBException
UserManagementService
chown in interface UserManagementServiceres - Description of the Parameteru - Description of the Parametergroup - Description of the Parameter
XMLDBException
public java.lang.String hasUserLock(Resource res)
throws XMLDBException
UserManagementService
hasUserLock in interface UserManagementServiceres -
XMLDBException
public void lockResource(Resource res,
User u)
throws XMLDBException
UserManagementService
lockResource in interface UserManagementServiceres - u -
XMLDBException
public void unlockResource(Resource res)
throws XMLDBException
UserManagementService
unlockResource in interface UserManagementServiceres -
XMLDBExceptionpublic java.lang.String getName()
UserManagementService
getName in interface UserManagementService
public Permission getPermissions(Collection coll)
throws XMLDBException
UserManagementService
getPermissions in interface UserManagementServicecoll - Description of the Parameter
XMLDBException
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
UserManagementService
getProperty in interface UserManagementServiceproperty - Description of the Parameter
XMLDBException
public User getUser(java.lang.String name)
throws XMLDBException
UserManagementService
getUser in interface UserManagementServicename - Description of the Parameter
XMLDBException
public User[] getUsers()
throws XMLDBException
UserManagementService
getUsers in interface UserManagementServiceXMLDBException
public java.lang.String[] getGroups()
throws XMLDBException
UserManagementService
getGroups in interface UserManagementServiceXMLDBExceptionpublic java.lang.String getVersion()
UserManagementService
getVersion in interface UserManagementService
public void removeUser(User u)
throws XMLDBException
UserManagementService
removeUser in interface UserManagementServiceXMLDBException
public void setCollection(Collection collection)
throws XMLDBException
UserManagementService
setCollection in interface UserManagementServicecollection - The new collection value
XMLDBException
public void setProperty(java.lang.String property,
java.lang.String value)
throws XMLDBException
UserManagementService
setProperty in interface UserManagementServiceproperty - The new property valuevalue - The new property value
XMLDBException
public void updateUser(User u)
throws XMLDBException
UserManagementService
updateUser in interface UserManagementServiceu - Description of the Parameter
XMLDBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||