Author: chris.laprun(a)jboss.com
Date: 2011-08-05 13:17:06 -0400 (Fri, 05 Aug 2011)
New Revision: 6998
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/CategoryImpl.java
Log:
- GTNPORTAL-1982: added setDisplayName method.
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/CategoryImpl.java
===================================================================
---
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/CategoryImpl.java 2011-08-05
16:15:50 UTC (rev 6997)
+++
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/CategoryImpl.java 2011-08-05
17:17:06 UTC (rev 6998)
@@ -205,6 +205,11 @@
public void setDescription(String description)
{
category.setDescription(description);
+ save();
+ }
+
+ private void save()
+ {
try
{
gateIn.begin();
@@ -220,6 +225,12 @@
}
}
+ public void setDisplayName(String displayName)
+ {
+ category.setDisplayName(displayName);
+ save();
+ }
+
public void removeContent(String managedContentName)
{
Application application = getApplication(managedContentName);
Show replies by date