Team Elements

Status: Caution PostgreSQL Open Source Initiative (OSI) Java
PUBLIC PROFILE

Project Permissions Examples

With a projectId, the list of all permissions within a project can be retrieved.

Additionally, the permissions can be filtered to a specific permission by name...

ArrayList<String> meta = new ArrayList<String>();
meta.add("id");
meta.add("projectId");
meta.add("permissionId");
meta.add("userLevel");
meta.add("name");
api.setTransactionMeta(meta);

// Get just the permission for assigning tickets
DataRecord record = new DataRecord();
record.setName("projectPermissionList");
record.setAction(DataRecord.SELECT);
record.addField("projectId", projectId);
record.addField("name", "project-tickets-assign");
api.save(record);

The userLevel for that project permission can be updated...
<< test not working yet >>

Sign in to add your comment.