@groovy.util.logging.Slf4j @grails.compiler.GrailsCompileStatic class DomainClientService extends java.lang.Object
Constructor and description |
---|
DomainClientService
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
filterFieldsByUserPermission(java.util.Collection<java.util.Map<java.lang.String, java.lang.Object>> allFields, org.springframework.security.core.Authentication authentication) 根据用户的权限过滤字段元数据列表,本方法会直接修改传入的字段列表 |
|
java.util.Map<java.lang.String, java.lang.String> |
getAllClientSideColumnType(java.lang.String domainName) |
|
static java.lang.String |
getClientConfigKey(java.lang.String fullTypeName, grails.gorm.validation.ConstrainedProperty property) |
|
java.lang.String |
getClientSideColumnType(java.lang.String fullTypeName, grails.gorm.validation.ConstrainedProperty property) Get client side column type from server side column type The mapping from server side type to client side is stored in constant |
|
static boolean |
getHasDetailPanel(java.lang.String fullTypeName, grails.gorm.validation.ConstrainedProperty property, java.lang.String clientSideType, java.lang.String backendType) |
|
java.lang.String |
getMsgForDataIntegrityViolationException(GormEntity<?> object, org.springframework.dao.DataIntegrityViolationException exception) |
|
static java.lang.String |
getPredefinedClientType(java.lang.Class<?> type) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#getClass(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#hashCode(), java.lang.Object#equals(java.lang.Object), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#notify() |
根据用户的权限过滤字段元数据列表,本方法会直接修改传入的字段列表
allFields
- 所有该 domain 中的字段列表authentication
- 当前登录用户的信息Get client side column type from server side column type The mapping from server side type to client side is stored in constant
fullTypeName
- server side defined full type name of the columnproperty
- column constrained propertyGroovy Documentation