File tree 2 files changed +11
-0
lines changed
src/java/fr/paris/lutece/plugins/genericattributes
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,15 @@ public boolean isExportablePdf( )
566
566
Field fieldExportablePdf = getFieldByCode ( IEntryTypeService .FIELD_EXPORTABLE_PDF );
567
567
return fieldExportablePdf != null && Boolean .valueOf ( fieldExportablePdf .getValue ( ) );
568
568
}
569
+
570
+ /**
571
+ * @return true if the field published is present and set to true
572
+ */
573
+ public boolean isPublished ( )
574
+ {
575
+ Field fieldPublished = getFieldByCode ( IEntryTypeService .FIELD_PUBLISHED );
576
+ return fieldPublished != null && Boolean .valueOf ( fieldPublished .getValue ( ) );
577
+ }
569
578
570
579
/**
571
580
* Get the selected map provider
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ public interface IEntryTypeService
84
84
String PARAMETER_USED_COMPLETE_RESPONSE = "used_in_complete_form_response" ;
85
85
String PARAMETER_EXPORTABLE = "exportable" ;
86
86
String PARAMETER_EXPORTABLE_PDF = "exportable_pdf" ;
87
+ String PARAMETER_PUBLISHED = "published" ;
87
88
String PARAMETER_DISPLAY_BO = "display_in_bo" ;
88
89
String PARAMETER_FILE = "file" ;
89
90
String PARAMETER_MIN = "min" ;
@@ -129,6 +130,7 @@ public interface IEntryTypeService
129
130
String FIELD_TEXT_CONF = "text_config" ;
130
131
String FIELD_EXPORTABLE = "exportable" ;
131
132
String FIELD_EXPORTABLE_PDF = "exportable_pdf" ;
133
+ String FIELD_PUBLISHED = "published" ;
132
134
String FIELD_RICHTEXT = "richtext" ;
133
135
String FIELD_DISPLAY_BO = PARAMETER_DISPLAY_BO ;
134
136
String FIELD_DOWNLOADABLE_FILE = "downloadable_file" ;
You can’t perform that action at this time.
0 commit comments