jira-integration: Hide JIRA part in project edition if not activated

If JIRA is not activated the part to do the synchronization with the server in
the project edition shouldn't be visible.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
Manuel Rego Casasnovas 2013-02-01 10:35:59 +01:00
parent c956b17542
commit 87747a1cdc
4 changed files with 15 additions and 1 deletions

View file

@ -148,4 +148,6 @@ public interface IOrderModel extends IIntegrationEntityModel {
boolean isOnlyChildAndParentAlreadyInUseByHoursOrExpenses(
OrderElement orderElement);
boolean isJiraActivated();
}

View file

@ -1855,4 +1855,8 @@ public class OrderCRUDController extends GenericForwardComposer {
}
}
public boolean isJiraActivated() {
return orderModel.isJiraActivated();
}
}

View file

@ -928,4 +928,11 @@ public class OrderModel extends IntegrationEntityModel implements IOrderModel {
}
}
@Override
@Transactional(readOnly = true)
public boolean isJiraActivated() {
return configurationDAO.getConfiguration().getJiraConfiguration()
.isJiraActivated();
}
}

View file

@ -281,7 +281,8 @@
</grid>
</groupbox>
</groupbox>
<groupbox style="margin-top: 5px" sclass="jiraLabel" closable="false">
<groupbox style="margin-top: 5px" sclass="jiraLabel" closable="false"
visible="@{controller.jiraActivated}">
<caption label="${i18n:_('JIRA import information')}" />
<separator spacing="10px"/>
<hbox width="100%">