public class RoleSample extends LoginSample
connector, pField, uName, url
Constructor and Description |
---|
RoleSample()
The constructor
|
RoleSample(TCLFacade connector) |
Modifier and Type | Method and Description |
---|---|
void |
addRoleAssignment(WSRoleAssignmentEditBean roleAssignmentEditBean)
Add a role assignment.
|
WSLabelValueBean[] |
getAllRoles()
Get an array with all roles with label as role name and value as role id.
|
WSRoleAssignmentBean[] |
getAssignmentRolesByProject(java.lang.String projectID)
Get a array with all role assignments for all users and groups for a
given project or workspace.
|
static void |
main(java.lang.String[] args) |
void |
removeRoleAssignment(WSRoleAssignmentEditBean roleAssignmentEditBean)
Remove a role assignment.
|
checkVersion, handleTCLFacadeException, login, login, run, startTime, stopTime
public RoleSample()
public RoleSample(TCLFacade connector)
public WSLabelValueBean[] getAllRoles()
public WSRoleAssignmentBean[] getAssignmentRolesByProject(java.lang.String projectID)
projectID
- the object id for the workspace to get the role assignments
forpublic void addRoleAssignment(WSRoleAssignmentEditBean roleAssignmentEditBean)
roleAssignmentEditBean
- public void removeRoleAssignment(WSRoleAssignmentEditBean roleAssignmentEditBean)
roleAssignmentEditBean
- public static void main(java.lang.String[] args)