Search in sources :

Example 1 with ProjectReadyEvent

use of de.catma.project.event.ProjectReadyEvent in project catma by forTEXT.

the class ProjectView method reloadAll.

/* Event handler */
/**
 * reloads all data in this view
 */
@Override
public void reloadAll() {
    boolean membersEditAllowed = projectManager.isAuthorizedOnProject(RBACPermission.PROJECT_MEMBERS_EDIT, projectReference.getProjectId());
    miInvite.setVisible(membersEditAllowed);
    teamPanel.setVisible(membersEditAllowed);
    initData();
    eventBus.post(new ProjectReadyEvent(project));
    try {
        rbacEnforcer.enforceConstraints(project.getRoleOnProject());
    } catch (IOException e) {
        errorHandler.showAndLogError("Error trying to fetch role", e);
    }
}
Also used : IOException(java.io.IOException) ProjectReadyEvent(de.catma.project.event.ProjectReadyEvent)

Aggregations

ProjectReadyEvent (de.catma.project.event.ProjectReadyEvent)1 IOException (java.io.IOException)1