public final class RoleFactory extends Object
Modifier and Type | Method and Description |
---|---|
static org.osgi.service.useradmin.Group |
createGroup(String name)
Creates a new group-role instance.
|
static org.osgi.service.useradmin.Role |
createRole(int type,
String name)
Creates a new role instance with the given type and name.
|
static org.osgi.service.useradmin.Role |
createRole(String name)
Creates a new role instance.
|
static org.osgi.service.useradmin.User |
createUser(String name)
Creates a new user-role instance.
|
public static org.osgi.service.useradmin.Group createGroup(String name)
name
- the name of the group to create.Group
instance denoting the requested role, never null
.public static org.osgi.service.useradmin.Role createRole(int type, String name)
type
- the type of the role to create;name
- the name of the role to create.Role
instance denoting the requested role, never null
.public static org.osgi.service.useradmin.Role createRole(String name)
name
- the name of the role to create.Role
instance denoting the requested role, never null
.public static org.osgi.service.useradmin.User createUser(String name)
name
- the name of the user to create.User
instance denoting the requested role, never null
.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.