Search in sources :

Example 1 with ProjectPermissionsMapper

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);
}
Also used : ProjectPermissions(com.enonic.xp.project.ProjectPermissions) ProjectPermissionsMapper(com.enonic.xp.lib.project.mapper.ProjectPermissionsMapper)

Aggregations

ProjectPermissionsMapper (com.enonic.xp.lib.project.mapper.ProjectPermissionsMapper)1 ProjectPermissions (com.enonic.xp.project.ProjectPermissions)1