@Services(value={@Service(value=java.lang.Object.class),@Service(value=GlobalMenuItemsProvider.class)}) @Property(name="javax.ws.rs", boolValue=true) public class UserManagerWeb extends Object implements GlobalMenuItemsProvider
Constructor and Description |
---|
UserManagerWeb() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
javax.ws.rs.core.Response |
addMultipleCustomField(String title,
String label,
String property,
String multiselect,
String selectablevalues,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
addRole(String title,
javax.ws.rs.core.UriInfo uriInfo)
add role
|
javax.ws.rs.core.Response |
addRolePermissions(String title,
List<String> permissionEntries,
javax.ws.rs.core.UriInfo uriInfo)
add role permissionEntries
|
javax.ws.rs.core.Response |
addSingleCustomField(String title,
String label,
String property,
int length,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
addUser(MultiPartBody form,
javax.ws.rs.core.UriInfo uriInfo) |
GraphNode |
addUser(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
addUserPermissions(String userName,
List<String> permissionEntries,
javax.ws.rs.core.UriInfo uriInfo)
add user permissionEntries
|
javax.ws.rs.core.Response |
deleteCustomProperty(String role,
String property,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
deleteRole(String title,
javax.ws.rs.core.UriInfo uriInfo)
delete role
|
javax.ws.rs.core.Response |
deleteRolePermissions(String title,
List<String> permissionEntries,
javax.ws.rs.core.UriInfo uriInfo)
delete role permissionEntries
|
javax.ws.rs.core.Response |
deleteUser(String userName,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
deleteUserPermissions(String userName,
List<String> permissionEntries,
javax.ws.rs.core.UriInfo uriInfo)
delete user permissionEntries
|
GraphNode |
getAddSinglePropertyPage(String role) |
Set<GlobalMenuItem> |
getMenuItems()
Returns a
Set of GlobalMenuItem S. |
GraphNode |
getRelevantCustomInformation(UriRef resource,
String roles,
String userName,
javax.ws.rs.core.UriInfo uriInfo) |
org.wymiwyg.commons.util.dirbrowser.PathNode |
getStaticFile(String path)
Returns a PathNode of a static file from the staticweb folder.
|
GraphNode |
listRoles(javax.ws.rs.core.UriInfo uriInfo) |
GraphNode |
listUsers(Integer from,
Integer to,
javax.ws.rs.core.UriInfo uriInfo) |
GraphNode |
manageCustomProperties(String role,
javax.ws.rs.core.UriInfo uriInfo) |
GraphNode |
manageRolePermissions(String title,
javax.ws.rs.core.UriInfo uriInfo)
show page to manage role permissionEntries
|
GraphNode |
manageUserPermissions(String userName,
javax.ws.rs.core.UriInfo uriInfo)
show page to manage user permissionEntries
|
javax.ws.rs.core.Response |
updateRolePermissions(String title,
List<String> permissionEntries,
javax.ws.rs.core.UriInfo uriInfo)
update role permissionEntries
|
javax.ws.rs.core.Response |
updateUser(MultiPartBody form,
javax.ws.rs.core.UriInfo uriInfo) |
GraphNode |
updateUser(String userName,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
updateUserPermissions(String userName,
List<String> permissionEntries,
javax.ws.rs.core.UriInfo uriInfo)
update user permissionEntries
|
javax.ws.rs.core.Response |
userMgmtHome(javax.ws.rs.core.UriInfo uriInfo) |
protected void activate(org.osgi.service.component.ComponentContext context) throws IOException, URISyntaxException
IOException
URISyntaxException
public javax.ws.rs.core.Response userMgmtHome(@Context javax.ws.rs.core.UriInfo uriInfo)
public GraphNode listUsers(Integer from, Integer to, @Context javax.ws.rs.core.UriInfo uriInfo)
public GraphNode addUser(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response addUser(MultiPartBody form, @Context javax.ws.rs.core.UriInfo uriInfo)
public GraphNode getRelevantCustomInformation(UriRef resource, String roles, String userName, @Context javax.ws.rs.core.UriInfo uriInfo) throws ParseException
GraphNode
ParseException
public javax.ws.rs.core.Response deleteUser(String userName, @Context javax.ws.rs.core.UriInfo uriInfo)
public GraphNode manageUserPermissions(String userName, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response updateUserPermissions(String userName, List<String> permissionEntries, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response addUserPermissions(String userName, List<String> permissionEntries, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response deleteUserPermissions(String userName, List<String> permissionEntries, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response updateUser(MultiPartBody form, @Context javax.ws.rs.core.UriInfo uriInfo) throws UnsupportedEncodingException
UnsupportedEncodingException
public GraphNode listRoles(@Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response addRole(String title, @Context javax.ws.rs.core.UriInfo uriInfo)
roleTitle
- the title of the new role to addpublic javax.ws.rs.core.Response deleteRole(String title, @Context javax.ws.rs.core.UriInfo uriInfo)
roleTitle
- the title of the role to deletepublic GraphNode manageRolePermissions(String title, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response addRolePermissions(String title, List<String> permissionEntries, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response deleteRolePermissions(String title, List<String> permissionEntries, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response updateRolePermissions(String title, List<String> permissionEntries, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response addSingleCustomField(String title, String label, String property, int length, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response addMultipleCustomField(String title, String label, String property, String multiselect, String selectablevalues, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response deleteCustomProperty(String role, String property, @Context javax.ws.rs.core.UriInfo uriInfo)
public GraphNode manageCustomProperties(String role, @Context javax.ws.rs.core.UriInfo uriInfo)
public org.wymiwyg.commons.util.dirbrowser.PathNode getStaticFile(String path)
PathNode
public Set<GlobalMenuItem> getMenuItems()
GlobalMenuItemsProvider
Set
of GlobalMenuItem
S. If there is
no GlobalMenuItem
available (e.g. the current user has not
the needed permissions) then the returned set is empty.getMenuItems
in interface GlobalMenuItemsProvider
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.