Author: hoang_to
Date: 2010-02-02 04:59:12 -0500 (Tue, 02 Feb 2010)
New Revision: 1497
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java
Log:
GTNPORTAL-551: Impossible to add Category or Application into Application Registry via
extension mechanism
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java
===================================================================
---
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java 2010-02-02
09:28:23 UTC (rev 1496)
+++
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java 2010-02-02
09:59:12 UTC (rev 1497)
@@ -52,8 +52,6 @@
{
if (configs == null)
return;
- if (pdcService_.getApplicationCategories().size() > 0)
- return;
for (Object ele : configs)
{
ApplicationCategory category = (ApplicationCategory)ele;
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java
===================================================================
---
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java 2010-02-02
09:28:23 UTC (rev 1496)
+++
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java 2010-02-02
09:59:12 UTC (rev 1497)
@@ -610,9 +610,12 @@
boolean save = false;
try
{
- for (ApplicationCategoriesPlugins plugin : plugins)
+ if (this.getApplicationCategories().size() < 1)
{
- plugin.run();
+ for (ApplicationCategoriesPlugins plugin : plugins)
+ {
+ plugin.run();
+ }
}
save = true;
}
Show replies by date