Author: trong.tran
Date: 2010-02-03 03:03:06 -0500 (Wed, 03 Feb 2010)
New Revision: 1510
Modified:
portal/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java
portal/branches/3.0.0-Beta05-CP/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/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java
===================================================================
---
portal/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java 2010-02-03
07:54:19 UTC (rev 1509)
+++
portal/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/ApplicationCategoriesPlugins.java 2010-02-03
08:03:06 UTC (rev 1510)
@@ -52,8 +52,6 @@
{
if (configs == null)
return;
- if (pdcService_.getApplicationCategories().size() > 0)
- return;
for (Object ele : configs)
{
ApplicationCategory category = (ApplicationCategory)ele;
Modified:
portal/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java
===================================================================
---
portal/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java 2010-02-03
07:54:19 UTC (rev 1509)
+++
portal/branches/3.0.0-Beta05-CP/component/application-registry/src/main/java/org/exoplatform/application/registry/impl/ApplicationRegistryServiceImpl.java 2010-02-03
08:03:06 UTC (rev 1510)
@@ -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