Author: chris.laprun(a)jboss.com
Date: 2007-03-21 17:04:26 -0400 (Wed, 21 Mar 2007)
New Revision: 6796
Modified:
trunk/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java
Log:
- Use Tools.getShortName.
Modified:
trunk/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java
===================================================================
---
trunk/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java 2007-03-21
21:01:14 UTC (rev 6795)
+++
trunk/core/src/main/org/jboss/portal/core/model/portal/metadata/PortalObjectMetaData.java 2007-03-21
21:04:26 UTC (rev 6796)
@@ -23,12 +23,13 @@
package org.jboss.portal.core.model.portal.metadata;
import org.jboss.logging.Logger;
+import org.jboss.portal.common.util.Tools;
import org.jboss.portal.common.util.XML;
+import org.jboss.portal.core.model.content.spi.ContentHandlerRegistry;
import org.jboss.portal.core.model.portal.PortalObject;
import org.jboss.portal.core.model.portal.PortalObjectContainer;
-import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.core.model.portal.PortalObjectId;
-import org.jboss.portal.core.model.content.spi.ContentHandlerRegistry;
+import org.jboss.portal.core.model.portal.PortalObjectPermission;
import org.jboss.portal.security.RoleSecurityBinding;
import org.jboss.portal.security.SecurityConstants;
import org.jboss.portal.security.metadata.SecurityConstraintsMetaData;
@@ -269,8 +270,6 @@
public String toString()
{
String name = getClass().getName();
- int start = name.lastIndexOf(".");
- int end = name.length() - start;
- return name.substring(start, end) + "[" + name + "]";
+ return Tools.getShortNameOf(getClass()) + "[" + name + "]";
}
}