summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-06-12 11:09:20 (EDT)
committerManik Kishore2012-06-19 07:31:48 (EDT)
commitf1c8ca610f5b5332bd5929c01acab25f5df20453 (patch)
treedef2eb8812fb6bab313b978ee19b7d43468baa62
parent2c944820c77c683e9a2004892ff0a08bab6f6237 (diff)
downloadorg.eclipse.stardust.ui.web-f1c8ca610f5b5332bd5929c01acab25f5df20453.zip
org.eclipse.stardust.ui.web-f1c8ca610f5b5332bd5929c01acab25f5df20453.tar.gz
org.eclipse.stardust.ui.web-f1c8ca610f5b5332bd5929c01acab25f5df20453.tar.bz2
Jira-ID: CRNT-25099
1)Added a field readOnly to PreferenceManagerBean.java 2)Added code to set readOnly="true" from admin-portal-context.xml 3)Added code to disable toolbar icons in prefManagerViewToolbar.xhtml git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57021 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java13
-rw-r--r--admin-portal/src/main/resources/META-INF/spring/admin-portal-context.xml2
-rw-r--r--admin-portal/src/main/resources/META-INF/xhtml/views/prefManagerViewToolbar.xhtml23
3 files changed, 28 insertions, 10 deletions
diff --git a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java
index 624110a..8431674 100644
--- a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java
+++ b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java
@@ -79,6 +79,7 @@ public class PreferenceManagerBean extends UIComponentBean implements ViewEventH
private PreferenceManagerTableEntry selectedPrefMngrObj;
private QueryService qService;
private UserWrapper userWrapperObj;
+ private String readOnly; // temp field added to make Toolbar icons disabled in 7.0
public PreferenceManagerBean()
{
@@ -439,4 +440,16 @@ public class PreferenceManagerBean extends UIComponentBean implements ViewEventH
this.userWrapperObj = userWrapperObj;
}
+ public String getReadOnly()
+ {
+ return readOnly;
+ }
+
+ public void setReadOnly(String readOnly)
+ {
+ this.readOnly = readOnly;
+ }
+
+
+
}
diff --git a/admin-portal/src/main/resources/META-INF/spring/admin-portal-context.xml b/admin-portal/src/main/resources/META-INF/spring/admin-portal-context.xml
index 88e9981..7e8a025 100644
--- a/admin-portal/src/main/resources/META-INF/spring/admin-portal-context.xml
+++ b/admin-portal/src/main/resources/META-INF/spring/admin-portal-context.xml
@@ -128,7 +128,7 @@
<bean name="participantMgmtConfigurationBean" class="org.eclipse.stardust.ui.web.admin.views.ParticipantMgmtConfigurationBean"
scope="session">
- </bean> <bean name="prefManagerBean" class="org.eclipse.stardust.ui.web.admin.views.PreferenceManagerBean" scope="portalTab"> </bean> <bean name="createOrModifyPreference" class="org.eclipse.stardust.ui.web.admin.views.CreateOrModifyPreferenceBean" scope="portalTab"> </bean>
+ </bean> <bean name="prefManagerBean" class="org.eclipse.stardust.ui.web.admin.views.PreferenceManagerBean" scope="portalTab"> <property name="readOnly" value="true" /> </bean> <bean name="createOrModifyPreference" class="org.eclipse.stardust.ui.web.admin.views.CreateOrModifyPreferenceBean" scope="portalTab"> </bean>
<!-- ********** VIEW SCOPE BEANS ********** --><!--
<bean name="renameDocumentExtensionDialog"
diff --git a/admin-portal/src/main/resources/META-INF/xhtml/views/prefManagerViewToolbar.xhtml b/admin-portal/src/main/resources/META-INF/xhtml/views/prefManagerViewToolbar.xhtml
index 06e2fec..baee971 100644
--- a/admin-portal/src/main/resources/META-INF/xhtml/views/prefManagerViewToolbar.xhtml
+++ b/admin-portal/src/main/resources/META-INF/xhtml/views/prefManagerViewToolbar.xhtml
@@ -7,26 +7,31 @@
xmlns:pc="http://www.sungard.de/carnot/web/portal-plugin/portalcommon">
<ice:panelGrid columns="3">
- <ice:commandLink actionListener="#{createOrModifyPreference.openModifyPrefDialog}">
+ <ice:commandLink
+ actionListener="#{createOrModifyPreference.openModifyPrefDialog}"
+ disabled="#{prefManagerBean.readOnly}">
<h:graphicImage value="/plugins/views-common/images/icons/add.png"
- style="border: none;" title="#{prefManagerBean.messages['modifyPreference.add.title']}" />
- <f:attribute name="selectedView" value="#{prefManagerBean.selectedView}" />
- <f:attribute name="selectedUser" value="#{prefManagerBean.userWrapperObj}" />
+ style="border: none;" styleClass="#{!prefManagerBean.readOnly? '' : 'iceCmdBtn-dis'}"
+ title="#{prefManagerBean.messages['modifyPreference.add.title']}" />
+ <f:attribute name="selectedView"
+ value="#{prefManagerBean.selectedView}" />
+ <f:attribute name="selectedUser"
+ value="#{prefManagerBean.userWrapperObj}" />
<pc:automationTag value="auto-ADM-PrefMngrView-ToolbarAdd"
standAlone="false" />
- </ice:commandLink>
+ </ice:commandLink>
- <ice:commandLink actionListener="#{prefManagerBean.removePreference}">
+ <ice:commandLink actionListener="#{prefManagerBean.removePreference}" disabled="#{prefManagerBean.readOnly}">
<h:graphicImage value="/plugins/views-common/images/icons/delete.png"
- style="border: none;"
+ style="border: none;" styleClass="#{!prefManagerBean.readOnly? '' : 'iceCmdBtn-dis'}"
title="#{prefManagerBean.messages['modifyPreference.delete.label']}" />
<pc:automationTag value="auto-ADM-PrefMngrView-ToolbarRemove"
standAlone="false" />
</ice:commandLink>
- <ice:commandLink actionListener="#{createOrModifyPreference.openModifyPrefDialog}">
+ <ice:commandLink actionListener="#{createOrModifyPreference.openModifyPrefDialog}" disabled="#{prefManagerBean.readOnly}">
<h:graphicImage value="/plugins/views-common/images/icons/pencil.png"
- style="border: none;"
+ style="border: none;" styleClass="#{!prefManagerBean.readOnly? '' : 'iceCmdBtn-dis'}"
title="#{prefManagerBean.messages['modifyPreference.edit.title']}" />
<f:attribute name="editRow" value="true" />
<pc:automationTag value="auto-ADM-PrefMngrView-ToolbarEdit"