package org.argeo.cms.ui;
-/** API NOT STABLE (yet). */
+/** Abstraction of a simple edition life cycle. */
public interface CmsEditable {
/** Whether the calling thread can edit, the value is immutable */
}
};
+ public static CmsEditable ALWAYS_EDITING = new CmsEditable() {
+
+ @Override
+ public void stopEditing() {
+ }
+
+ @Override
+ public void startEditing() {
+ }
+
+ @Override
+ public Boolean isEditing() {
+ return true;
+ }
+
+ @Override
+ public Boolean canEdit() {
+ return true;
+ }
+ };
+
}