- All Known Subinterfaces:
SearchRecordInterface
- All Known Implementing Classes:
ConfigRecord,LoginRecord
public interface RecordInterface
Has features related web environment.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetDisplayName(String rootRecordId, String fieldId) labelFieldNameを返す.default HtmlFieldgetHtmlField(String fieldId) Returns htmlField in respond to the specified fieldId.Returns htmlFields.getNotEmptyFields(String loginState, SplibSecurityUtil.RolesAndAuthoritiesBean bean) Obtrains NotEmpty fields.default booleanisNotEmpty(String fieldId, String loginState, String rolesOrAuthoritiesString) Returns whether isNotEmpty or not.default HtmlField[]mergeHtmlFields(HtmlField[] fields1, HtmlField[] fields2) htmlItemsについて、個別機能のlistと共通のlistをmergeさせるために使用する.default booleanneedsCommas(String itemId) Returns whether the itemId needs comma.
-
Method Details
-
getHtmlFields
HtmlField[] getHtmlFields()Returns htmlFields.- Returns:
- HtmlField[]
-
getHtmlField
Returns htmlField in respond to the specified fieldId.- Parameters:
fieldId- fieldId- Returns:
- HtmlField
-
needsCommas
Returns whether the itemId needs comma.- Parameters:
itemId- itemId- Returns:
- boolean
-
getDisplayName
labelFieldNameを返す. HtmlItemに指定したfieldNameをitemNameに指定すると、field_name.propertiesで解決できる形のitemNameが取得できる。HtmlItem上の(itemName, labelItemname)は、rootRecord配下の属性の場合("id", "name")のように属性名単体で定義されているが、 getLabelItemName()にはrootRecordNameの引数も渡しており、戻り値は"acc.accName"のようにそのままfield名として取得できる仕様としている。
relationがある場合は、("accGroup.id", "accGroup.name")のようにHtmlItem上設定される。 この場合、戻り値に"acc."を付加するとfield_names.propertiesで解決できないので"acc."の付加はしない。
relationがある場合を含めて、各componentのitemNameに指定する文字列は、必ずHtmlItemに指定したitemNameと同一となる。
-
mergeHtmlFields
htmlItemsについて、個別機能のlistと共通のlistをmergeさせるために使用する. あくまでutilレベルなので個別処理にしても良いのだが、極力個別コードを減らしたいので本クラスに保持する。 -
getNotEmptyFields
default List<String> getNotEmptyFields(String loginState, SplibSecurityUtil.RolesAndAuthoritiesBean bean) Obtrains NotEmpty fields.- Parameters:
loginState- loginStatebean- bean- Returns:
List<String>
-
isNotEmpty
Returns whether isNotEmpty or not.- Parameters:
fieldId- fieldIdloginState- loginStaterolesOrAuthoritiesString- rolesOrAuthoritiesString- Returns:
- boolean
-