|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManagementService
An eXist-specific service which provides methods to manage users and permissions.
| Method Summary | |
|---|---|
void |
addAccount(Account account)
Add a new account to the database |
void |
addGroup(Group group)
|
void |
addUser(User user)
Deprecated. |
void |
addUserGroup(Account 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 resource,
int mode)
Change permissions for the specified resource. |
void |
chmod(org.xmldb.api.base.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(Account u,
java.lang.String group)
Change owner and group of the current collection. |
void |
chown(org.xmldb.api.base.Resource res,
Account u,
java.lang.String group)
Change owner and group of the specified resource. |
Account |
getAccount(java.lang.String name)
Get a account record from the database |
Account[] |
getAccounts()
Retrieve a list of all existing accounts. |
Group |
getGroup(java.lang.String name)
|
java.lang.String[] |
getGroups()
Retrieve a list of all existing groups. |
java.lang.String |
getName()
Get the name of this service |
Permission |
getPermissions(org.xmldb.api.base.Collection coll)
Get permissions for the specified collections |
Permission |
getPermissions(org.xmldb.api.base.Resource res)
Get permissions for the specified resource |
java.lang.String |
getProperty(java.lang.String property)
Get a property defined by this service. |
User |
getUser(java.lang.String name)
Deprecated. |
User[] |
getUsers()
Deprecated. |
java.lang.String |
getVersion()
Get the version of this service |
java.lang.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,
Account u)
Lock the specified resource for the specified user. |
void |
lockResource(org.xmldb.api.base.Resource res,
User u)
Deprecated. |
void |
removeAccount(Account account)
Delete a user from the database |
void |
removeGroup(Account user,
java.lang.String rmgroup)
Update the specified user removing a group from user's group Method added by {Marco.Tampucci, Massimo.Martinelli} @isti.cnr.it |
void |
removeGroup(Group group)
|
void |
removeUser(User user)
Deprecated. |
void |
setCollection(org.xmldb.api.base.Collection collection)
Set the current collection for this service |
void |
setPermissions(org.xmldb.api.base.Collection child,
Permission perm)
Set permissions for the specified collection. |
void |
setPermissions(org.xmldb.api.base.Collection child,
java.lang.String owner,
java.lang.String group,
int mode,
java.util.List<ACEAider> aces)
|
void |
setPermissions(org.xmldb.api.base.Resource resource,
Permission perm)
Set permissions for the specified resource. |
void |
setPermissions(org.xmldb.api.base.Resource resource,
java.lang.String owner,
java.lang.String group,
int mode,
java.util.List<ACEAider> aces)
|
void |
setProperty(java.lang.String property,
java.lang.String value)
Set a property for this service. |
void |
unlockResource(org.xmldb.api.base.Resource res)
Unlock the specified resource. |
void |
updateAccount(Account account)
Update existing account information |
void |
updateUser(User user)
Deprecated. |
| Method Detail |
|---|
java.lang.String getName()
getName in interface org.xmldb.api.base.Servicejava.lang.String getVersion()
getVersion in interface org.xmldb.api.base.Service
void setPermissions(org.xmldb.api.base.Collection child,
Permission perm)
throws org.xmldb.api.base.XMLDBException
child - perm -
org.xmldb.api.base.XMLDBException
void setPermissions(org.xmldb.api.base.Collection child,
java.lang.String owner,
java.lang.String group,
int mode,
java.util.List<ACEAider> aces)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void setPermissions(org.xmldb.api.base.Resource resource,
Permission perm)
throws org.xmldb.api.base.XMLDBException
resource - perm -
org.xmldb.api.base.XMLDBException
void setPermissions(org.xmldb.api.base.Resource resource,
java.lang.String owner,
java.lang.String group,
int mode,
java.util.List<ACEAider> aces)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void chown(Account u,
java.lang.String group)
throws org.xmldb.api.base.XMLDBException
u - Description of the Parametergroup - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
void chown(org.xmldb.api.base.Resource res,
Account u,
java.lang.String group)
throws org.xmldb.api.base.XMLDBException
res - Description of the Parameteru - Description of the Parametergroup - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
void chmod(org.xmldb.api.base.Resource resource,
java.lang.String modeStr)
throws org.xmldb.api.base.XMLDBException
[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.
resource - Description of the ParametermodeStr - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
void chmod(java.lang.String modeStr)
throws org.xmldb.api.base.XMLDBException
modeStr - String describing the permissions to
grant or deny.
org.xmldb.api.base.XMLDBException
void chmod(int mode)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void chmod(org.xmldb.api.base.Resource resource,
int mode)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void lockResource(org.xmldb.api.base.Resource res,
Account u)
throws org.xmldb.api.base.XMLDBException
res - u -
org.xmldb.api.base.XMLDBException
java.lang.String hasUserLock(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
res -
org.xmldb.api.base.XMLDBException
void unlockResource(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
res -
org.xmldb.api.base.XMLDBException
void addAccount(Account account)
throws org.xmldb.api.base.XMLDBException
account - The feature to be added to the Account
org.xmldb.api.base.XMLDBException - Description of the Exception
void updateAccount(Account account)
throws org.xmldb.api.base.XMLDBException
account - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
Account getAccount(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
name - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
Account[] getAccounts()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException - Description of the Exception
Group getGroup(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
java.lang.String[] getGroups()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
java.lang.String getProperty(java.lang.String property)
throws org.xmldb.api.base.XMLDBException
getProperty in interface org.xmldb.api.base.Configurableproperty - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
void setProperty(java.lang.String property,
java.lang.String value)
throws org.xmldb.api.base.XMLDBException
setProperty in interface org.xmldb.api.base.Configurableproperty - The new property valuevalue - The new property value
org.xmldb.api.base.XMLDBException - Description of the Exception
void setCollection(org.xmldb.api.base.Collection collection)
throws org.xmldb.api.base.XMLDBException
setCollection in interface org.xmldb.api.base.Servicecollection - The new collection value
org.xmldb.api.base.XMLDBException - Description of the Exception
Permission getPermissions(org.xmldb.api.base.Collection coll)
throws org.xmldb.api.base.XMLDBException
coll - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
Permission getPermissions(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
res - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
Permission[] listResourcePermissions()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
Permission[] listCollectionPermissions()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void removeAccount(Account account)
throws org.xmldb.api.base.XMLDBException
account - User
org.xmldb.api.base.XMLDBException
void removeGroup(Group group)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void addUserGroup(Account user)
throws org.xmldb.api.base.XMLDBException
user - Description of the Parameter
org.xmldb.api.base.XMLDBException - Description of the Exception
void removeGroup(Account user,
java.lang.String rmgroup)
throws org.xmldb.api.base.XMLDBException
user - Description of the Parameterrmgroup - Description of group to remove
org.xmldb.api.base.XMLDBException - Description of the Exception
void addGroup(Group group)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
@Deprecated
void addUser(User user)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
@Deprecated
void updateUser(User user)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
@Deprecated
User getUser(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
@Deprecated
User[] getUsers()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
@Deprecated
void removeUser(User user)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
@Deprecated
void lockResource(org.xmldb.api.base.Resource res,
User u)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||