@Exported
public interface RoleManager
| Modifier and Type | Method and Description |
|---|---|
void |
create(List<Role> roles)
Create a list of roles in Content Server
|
void |
delete(List<String> rolenames)
Delete the list of roles from Content Server
|
QueryResultWrapper<List<Role>> |
read(Condition query)
Read a list of roles from Content Server with a Condition.
|
QueryResultWrapper<List<Role>> |
read(Condition query,
List<SortOrder> sortorders,
int start,
int count)
Read a list of roles from Content Server with a Condition.
|
List<Role> |
read(List<String> names)
Read a list of Roles from Content Server with list of Role names
|
void |
update(List<Role> roles)
Update the existing roles in Content Server with new information
|
List<Role> read(List<String> names) throws SiteAccessException
names - the list of string role namesSiteAccessException - will throw exception if errors met when reading the rolesQueryResultWrapper<List<Role>> read(Condition query) throws SiteAccessException
query - the Condition for reading the rolesSiteAccessException - will throw exception if errors met when reading the rolesQueryResultWrapper<List<Role>> read(Condition query, List<SortOrder> sortorders, int start, int count) throws SiteAccessException
query - the Condition for reading the roles - only name, description are supportedsortorders - the attributes of roles that the results will be sorted upon - only name, description are supportedstart - the start number where you want to results fromcount - the total number sites you want the list containSiteAccessException - will throw exception if errors met when reading the rolesvoid create(List<Role> roles) throws SiteAccessException
roles - the list of roles to create in Content ServerSiteAccessException - will throw exception if errors met when creating the rolesvoid update(List<Role> roles) throws SiteAccessException
roles - the list of roles to updateSiteAccessException - will throw exception if errors met when updating the rolesvoid delete(List<String> rolenames) throws SiteAccessException
rolenames - the list of role names to deleteSiteAccessException - will throw exception if errors met when deleting the roles