public class GenericEntityServiceImpl extends AbstractAgrosystService implements GenericEntityService
| Modifier and Type | Field and Description |
|---|---|
protected BusinessAuthorizationService |
authorizationService |
protected static com.google.common.base.Function<Object,Map<String,String>> |
ENUM_NAME_AS_MAP |
protected static com.google.common.base.Function<String,Class<?>> |
GET_CLASS |
protected static String |
PROPERTY_VALEUR |
context__PARANAMER_DATA| Constructor and Description |
|---|
GenericEntityServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Long> |
countEntities(Class<?>... classes) |
protected Map<String,Long> |
countEntities0(Iterable<Class<?>> classes) |
Map<String,Long> |
countEntitiesFromString(List<String> classesList) |
protected Set<Class<? extends org.nuiton.topia.persistence.TopiaEntity>> |
getAllClassesExceptTopiaEntity(Class<? extends org.nuiton.topia.persistence.TopiaEntity> entityClass) |
List<String> |
getProperties(Class<?> klass) |
List<String> |
getPropertiesFromString(String className) |
protected Class |
getReturnType(Class klass,
String methodName)
Recursive getReturn type method that get method return type by checking inhéritance too.
|
ResultList<?> |
listEntities(Class<?> klass,
GenericFilter filter) |
ResultList<?> |
listEntitiesFromString(String className,
GenericFilter filter) |
void |
setAuthorizationService(BusinessAuthorizationService authorizationService) |
void |
unactivateEntities(Class<?> klass,
List<String> entityIds,
boolean activate) |
void |
unactivateEntitiesFromString(String className,
List<String> entityIds,
boolean activate) |
easyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextprotected static final String PROPERTY_VALEUR
protected static final com.google.common.base.Function<Object,Map<String,String>> ENUM_NAME_AS_MAP
protected BusinessAuthorizationService authorizationService
public void setAuthorizationService(BusinessAuthorizationService authorizationService)
public ResultList<?> listEntities(Class<?> klass, GenericFilter filter)
listEntities in interface GenericEntityServiceprotected Class getReturnType(Class klass, String methodName)
public Map<String,Long> countEntities(Class<?>... classes)
countEntities in interface GenericEntityServicepublic List<String> getProperties(Class<?> klass)
getProperties in interface GenericEntityServiceprotected Set<Class<? extends org.nuiton.topia.persistence.TopiaEntity>> getAllClassesExceptTopiaEntity(Class<? extends org.nuiton.topia.persistence.TopiaEntity> entityClass)
public void unactivateEntities(Class<?> klass, List<String> entityIds, boolean activate)
unactivateEntities in interface GenericEntityServicepublic Map<String,Long> countEntitiesFromString(List<String> classesList)
countEntitiesFromString in interface GenericEntityServicepublic ResultList<?> listEntitiesFromString(String className, GenericFilter filter)
listEntitiesFromString in interface GenericEntityServicepublic List<String> getPropertiesFromString(String className)
getPropertiesFromString in interface GenericEntityServicepublic void unactivateEntitiesFromString(String className, List<String> entityIds, boolean activate)
unactivateEntitiesFromString in interface GenericEntityServiceCopyright © 2013–2015 Inra. All rights reserved.