use of com.enonic.xp.lib.project.mapper.ProjectPermissionsMapper in project xp by enonic.
the class ModifyProjectPermissionsHandler method doExecute.
@Override
protected ProjectPermissionsMapper doExecute() {
final ProjectPermissions permissionsBeforeUpdate = this.projectService.getPermissions(this.id);
final ProjectPermissions projectPermissions = this.permissions != null ? this.projectService.modifyPermissions(this.id, merge(permissionsBeforeUpdate, this.permissions)) : this.projectService.getPermissions(this.id);
return new ProjectPermissionsMapper(projectPermissions);
}
Aggregations