class RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> {

    public void setCanWrite(boolean canWrite) {
        this.rolePermissions.setCanWrite(canWrite);
        if (!canWrite) {
            setForceCanDelete(false);
            setForceCanDeploy(false);
        } else {
            setForceCanRead(true);
        }

        parentPresenter.fireChangeEvent();
    }

    @Inject public  RoleItemPresenter(final View view);

}