public abstract class TablePrefService<ENTITY extends umun.iam.model.Meta,SUB_ENTITY extends umun.iam.model.Meta,PREF extends TableEntityPref,ID extends TableEntityPrefId> extends EntityPrefService<ENTITY,PREF,ID>
categoryService, rootCategory, systemPrefService| Constructor and Description |
|---|
TablePrefService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRootKeys(String rootKey,
String defaultValue,
String remoteHideKey,
PrefDataType dataType,
EntityPrefOptionsInterface optionsInterface,
String displayName,
EntityPrefValidationInterface<ENTITY,PREF> entityPrefValidationInterface,
String group,
boolean defaultRemoteHide,
EntityPrefProp<ENTITY,PREF> properties) |
protected PREF |
createCategoryAsPref(ENTITY entity,
EntityPrefCategory category)
Deprecated.
|
protected ID |
createEntityPrefId(ENTITY entity,
EntityPrefCategory category,
String key)
Deprecated.
|
protected abstract ID |
createEntityPrefId(ENTITY entity,
EntityPrefCategory category,
String key,
SUB_ENTITY subEntity) |
protected PREF |
createMissingRootPref(ENTITY entity,
EntityPrefCategory rootCategory,
String key,
EntityPrefValue<ENTITY,PREF> value,
Map<String,String> options,
String group)
Deprecated.
|
protected abstract PREF |
createMissingRootPref(ENTITY entity,
EntityPrefCategory rootCategory,
String key,
EntityPrefValue<ENTITY,PREF> value,
Map<String,String> options,
String group,
SUB_ENTITY subEntity) |
PREF |
createOrUpdate(ENTITY entity,
EntityPrefCategory category,
String key,
String value,
umun.iam.model.User requestedBy)
Deprecated.
|
PREF |
createOrUpdate(ENTITY entity,
EntityPrefCategory category,
String key,
String value,
umun.iam.model.User requestedBy,
SUB_ENTITY subEntity) |
protected PREF |
createPref(ENTITY entity,
EntityPrefCategory category,
String key,
String value,
String remoteHideKey)
Deprecated.
|
protected abstract PREF |
createPref(ENTITY entity,
EntityPrefCategory category,
String key,
String value,
String remoteHideKey,
SUB_ENTITY subEntity) |
protected abstract void |
createSubEntities(ENTITY entity,
String tableName,
List<TablePref<EntityPref>> doubleListOfTablePref,
umun.iam.model.User requestedBy) |
protected abstract SUB_ENTITY |
findSubEntityOrFail(long subEntityId,
umun.iam.model.User requestedBy) |
protected abstract Map<String,EntityPrefValue<ENTITY,PREF>> |
getRootKeys() |
protected TablePrefSlotItem[] |
getSlotItems(SUB_ENTITY sub) |
abstract String |
getTableName() |
org.springframework.data.domain.Slice<TablePref<PREF>> |
read(String tableName,
long entityId,
int page,
String searchTerm,
umun.iam.model.User user) |
org.springframework.data.domain.Slice<TablePref<EntityPref>> |
readForCreation(String tableName,
umun.iam.model.User user,
Map<String,String> allRequestParams) |
protected abstract List<PREF> |
readSavedPrefs(ENTITY entity,
org.springframework.data.domain.Slice<SUB_ENTITY> subEntities,
EntityPrefCategory category) |
protected abstract org.springframework.data.domain.Slice<SUB_ENTITY> |
readSubEntities(ENTITY entity,
int page,
String searchTerm) |
PREF |
readWithoutFail(ENTITY entity,
EntityPrefCategory category,
String key,
String value)
Deprecated.
|
PREF |
readWithoutFail(ENTITY entity,
EntityPrefCategory category,
String key,
String value,
SUB_ENTITY subEntity) |
void |
startUp(org.springframework.context.event.ContextRefreshedEvent event) |
PREF |
update(long entityId,
long categoryId,
String key,
String value,
umun.iam.model.User requestedBy)
Deprecated.
|
PREF |
update(long entityId,
long categoryId,
String key,
String value,
umun.iam.model.User requestedBy,
String tableName,
long subEntityId,
List<TablePref<EntityPref>> doubleListOfTablePref) |
String |
validate(String key,
EntityPref pref) |
String |
validateAll(String key,
TablePrefValidationValue value) |
addServiceReference, doPostCreationOperations, doPostFoundOperations, findByEntityAndCategoryOrderByKey, findEntityOrFail, findOne, getCategoryServicesMap, getCreationTemplate, getCrudService, getDataType, getDisplayname, getEntityName, getGroup, getOptions, getRemoteHideKey, getRepository, isDoNotAddIfMissing, read, read, read, read, read, readAllPrefs, readOrFail, removeHidden, saveAndFlush, validateCreateOrUpdatepublic abstract String getTableName()
protected abstract org.springframework.data.domain.Slice<SUB_ENTITY> readSubEntities(ENTITY entity, int page, String searchTerm)
protected abstract PREF createMissingRootPref(ENTITY entity, EntityPrefCategory rootCategory, String key, EntityPrefValue<ENTITY,PREF> value, Map<String,String> options, String group, SUB_ENTITY subEntity)
protected abstract SUB_ENTITY findSubEntityOrFail(long subEntityId, umun.iam.model.User requestedBy) throws umun.core.constants.ValidationException
umun.core.constants.ValidationExceptionprotected abstract PREF createPref(ENTITY entity, EntityPrefCategory category, String key, String value, String remoteHideKey, SUB_ENTITY subEntity) throws umun.core.constants.ValidationException
umun.core.constants.ValidationExceptionprotected abstract List<PREF> readSavedPrefs(ENTITY entity, org.springframework.data.domain.Slice<SUB_ENTITY> subEntities, EntityPrefCategory category)
protected abstract ID createEntityPrefId(ENTITY entity, EntityPrefCategory category, String key, SUB_ENTITY subEntity)
protected abstract void createSubEntities(ENTITY entity, String tableName, List<TablePref<EntityPref>> doubleListOfTablePref, umun.iam.model.User requestedBy)
protected abstract Map<String,EntityPrefValue<ENTITY,PREF>> getRootKeys()
getRootKeys in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends TableEntityPref,ID extends TableEntityPrefId>public void startUp(org.springframework.context.event.ContextRefreshedEvent event)
startUp in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends TableEntityPref,ID extends TableEntityPrefId>public void addRootKeys(String rootKey, String defaultValue, String remoteHideKey, PrefDataType dataType, EntityPrefOptionsInterface optionsInterface, String displayName, EntityPrefValidationInterface<ENTITY,PREF> entityPrefValidationInterface, String group, boolean defaultRemoteHide, EntityPrefProp<ENTITY,PREF> properties)
addRootKeys in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends TableEntityPref,ID extends TableEntityPrefId>public PREF createOrUpdate(ENTITY entity, EntityPrefCategory category, String key, String value, umun.iam.model.User requestedBy, SUB_ENTITY subEntity) throws umun.core.constants.ValidationException
umun.core.constants.ValidationExceptionpublic org.springframework.data.domain.Slice<TablePref<PREF>> read(String tableName, long entityId, int page, String searchTerm, umun.iam.model.User user) throws umun.core.constants.ValidationException
umun.core.constants.ValidationExceptionpublic PREF readWithoutFail(ENTITY entity, EntityPrefCategory category, String key, String value, SUB_ENTITY subEntity) throws umun.core.constants.ValidationException
umun.core.constants.ValidationExceptionpublic PREF update(long entityId, long categoryId, String key, String value, umun.iam.model.User requestedBy, String tableName, long subEntityId, List<TablePref<EntityPref>> doubleListOfTablePref) throws umun.core.constants.ValidationException
umun.core.constants.ValidationExceptionpublic org.springframework.data.domain.Slice<TablePref<EntityPref>> readForCreation(String tableName, umun.iam.model.User user, Map<String,String> allRequestParams)
protected TablePrefSlotItem[] getSlotItems(SUB_ENTITY sub)
public String validate(String key, EntityPref pref) throws umun.core.constants.ValidationException
validate in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends TableEntityPref,ID extends TableEntityPrefId>umun.core.constants.ValidationExceptionpublic String validateAll(String key, TablePrefValidationValue value) throws umun.core.constants.ValidationException
umun.core.constants.ValidationException@Deprecated public PREF createOrUpdate(ENTITY entity, EntityPrefCategory category, String key, String value, umun.iam.model.User requestedBy) throws umun.core.constants.ValidationException
createOrUpdate in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>umun.core.constants.ValidationException@Deprecated public PREF readWithoutFail(ENTITY entity, EntityPrefCategory category, String key, String value) throws umun.core.constants.ValidationException
readWithoutFail in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>umun.core.constants.ValidationException@Deprecated public PREF update(long entityId, long categoryId, String key, String value, umun.iam.model.User requestedBy) throws umun.core.constants.ValidationException
update in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>umun.core.constants.ValidationException@Deprecated protected PREF createMissingRootPref(ENTITY entity, EntityPrefCategory rootCategory, String key, EntityPrefValue<ENTITY,PREF> value, Map<String,String> options, String group)
createMissingRootPref in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>@Deprecated protected PREF createPref(ENTITY entity, EntityPrefCategory category, String key, String value, String remoteHideKey) throws umun.core.constants.ValidationException
createPref in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>umun.core.constants.ValidationException@Deprecated protected ID createEntityPrefId(ENTITY entity, EntityPrefCategory category, String key)
createEntityPrefId in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>@Deprecated protected PREF createCategoryAsPref(ENTITY entity, EntityPrefCategory category) throws umun.core.constants.ValidationException
createCategoryAsPref in class EntityPrefService<ENTITY extends umun.iam.model.Meta,PREF extends EntityPref,ID extends TableEntityPrefId>umun.core.constants.ValidationExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.