Author: chathura
Date: Fri Jan 25 02:23:28 2008
New Revision: 12887
Log:
Minir change to registry promotion div text.
Added the correct annoncements url.
Fixed an issue of resource renaming in the UI.
Modified:
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/AnnouncementsUtil.java
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/ResourcesUtil.java
trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp
Modified:
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/AnnouncementsUtil.java
==============================================================================
---
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/AnnouncementsUtil.java
(original)
+++
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/AnnouncementsUtil.java
Fri Jan 25 02:23:28 2008
@@ -21,7 +21,7 @@
public class AnnouncementsUtil {
- public static final String ANNOUNCEMENTS_URL =
"http://wso2.com/announcements/mashup/SNAPSHOT/index.html";
+ public static final String ANNOUNCEMENTS_URL =
"http://wso2.com/announcements/registry/1.0/index.html";
public static AnnouncementsBean getAnnouncementsBean() {
Modified:
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/ResourcesUtil.java
==============================================================================
---
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/ResourcesUtil.java
(original)
+++
trunk/registry/modules/webapps/src/main/java/org/wso2/registry/web/utils/ResourcesUtil.java
Fri Jan 25 02:23:28 2008
@@ -114,6 +114,13 @@
Registry registry = CommonUtil.getUserRegistry(request);
registry.rename(oldResourcePath, newResourcePath);
+ } catch (RegistryException e) {
+ String msg = "Failed to rename the resource: " + oldResourcePath +
" to name: " +
+ newResourcePath + ". Caused by: " + e.getMessage();
+ setErrorMessage(request, msg);
+ }
+
+ try {
resourceAction = new ResourceDetailsAction();
resourceAction.setPath(parentPath);
resourceAction.execute(request);
@@ -121,10 +128,9 @@
collectionView = new CollectionViewAction();
collectionView.setPath(parentPath);
collectionView.execute(request);
-
} catch (RegistryException e) {
- String msg = "Failed to rename the resource: " + oldResourcePath +
" to name: " +
- newResourcePath + ". Caused by: " + e.getMessage();
+ String msg = "Failed to get details of the collection: " +
+ parentPath + ". Caused by: " + e.getMessage();
setErrorMessage(request, msg);
}
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/promotion.jsp Fri Jan
25 02:23:28 2008
@@ -10,7 +10,7 @@
<p>
WSO2 Registry enables you to store, catalog, index and manage your enterprise
meta data in a simple, scalable and easy-to-use model.
It is designed around community concepts such as tags, comments, ratings,
users and roles.
-Think of the registry as a structured wiki designed to help you manage your
meta-data in a simple business-friendly system.
+Think of the registry as a structured wiki designed to help you manage your
resources and meta-data in a simple and a business-friendly manner.
</p>
<% if (announcementsBean != null) { %>
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev