Refactor to use ACR instead of JCR.
[lgpl/argeo-commons.git] / org.argeo.cms.ux / src / org / argeo / cms / ux / CmsUxUtils.java
index 9e23ff663c0f0f3236caf5067f110d410fe3580c..1b2b0e9400390b8ad2605a6d8eda21b717b0d235 100644 (file)
@@ -1,5 +1,6 @@
 package org.argeo.cms.ux;
 
+import org.argeo.api.acr.Content;
 import org.argeo.api.acr.ContentRepository;
 import org.argeo.api.acr.ContentSession;
 import org.argeo.api.cms.CmsView;
@@ -10,6 +11,10 @@ public class CmsUxUtils {
                return CurrentUser.callAs(cmsView.getCmsSession().getSubject(), () -> contentRepository.get());
        }
 
+       public static String getTitle(Content content) {
+               return content.getName().getLocalPart();
+       }
+
        /** singleton */
        private CmsUxUtils() {