Class JPAAnyUtils
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.entity.JPAAnyUtils
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,Field>
ANY_OBJECT_FIELDS
protected AnyObjectDAO
anyObjectDAO
protected AnyTypeKind
anyTypeKind
protected EntityFactory
entityFactory
protected static Map<String,Field>
GROUP_FIELDS
protected GroupDAO
groupDAO
protected boolean
linkedAccount
protected static Logger
LOG
protected PlainAttrDAO
plainAttrDAO
protected PlainAttrValueDAO
plainAttrValueDAO
protected static Map<String,Field>
USER_FIELDS
protected UserDAO
userDAO
-
Constructor Summary
Constructors Modifier Constructor Description protected
JPAAnyUtils(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainAttrDAO plainAttrDAO, PlainAttrValueDAO plainAttrValueDAO, EntityFactory entityFactory, AnyTypeKind anyTypeKind, boolean linkedAccount)
-
Method Summary
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
plainAttrDAO
protected final PlainAttrDAO plainAttrDAO
-
plainAttrValueDAO
protected final PlainAttrValueDAO plainAttrValueDAO
-
entityFactory
protected final EntityFactory entityFactory
-
anyTypeKind
protected final AnyTypeKind anyTypeKind
-
linkedAccount
protected final boolean linkedAccount
-
-
Constructor Detail
-
JPAAnyUtils
protected JPAAnyUtils(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainAttrDAO plainAttrDAO, PlainAttrValueDAO plainAttrValueDAO, EntityFactory entityFactory, AnyTypeKind anyTypeKind, boolean linkedAccount)
-
-
Method Detail
-
initFieldNames
protected static void initFieldNames(Class<?> entityClass, Map<String,Field> fields)
-
matchesFieldName
public static boolean matchesFieldName(String candidate)
-
anyTypeKind
public AnyTypeKind anyTypeKind()
- Specified by:
anyTypeKind
in interfaceAnyUtils
-
plainAttrClass
public <T extends PlainAttr<?>> Class<T> plainAttrClass()
- Specified by:
plainAttrClass
in interfaceAnyUtils
-
newPlainAttr
public <T extends PlainAttr<?>> T newPlainAttr()
- Specified by:
newPlainAttr
in interfaceAnyUtils
-
plainAttrValueClass
public <T extends PlainAttrValue> Class<T> plainAttrValueClass()
- Specified by:
plainAttrValueClass
in interfaceAnyUtils
-
newPlainAttrValue
public <T extends PlainAttrValue> T newPlainAttrValue()
- Specified by:
newPlainAttrValue
in interfaceAnyUtils
-
plainAttrUniqueValueClass
public <T extends PlainAttrValue> Class<T> plainAttrUniqueValueClass()
- Specified by:
plainAttrUniqueValueClass
in interfaceAnyUtils
-
newPlainAttrUniqueValue
public <T extends PlainAttrValue> T newPlainAttrUniqueValue()
- Specified by:
newPlainAttrUniqueValue
in interfaceAnyUtils
-
clonePlainAttrValue
public <T extends PlainAttrValue> T clonePlainAttrValue(T src)
- Specified by:
clonePlainAttrValue
in interfaceAnyUtils
-
getAllResources
@Transactional(readOnly=true) public Set<ExternalResource> getAllResources(Any<?> any)
- Specified by:
getAllResources
in interfaceAnyUtils
-
addAttr
@Transactional public void addAttr(PlainAttrValidationManager validator, String key, PlainSchema schema, String value)
-
removeAttr
@Transactional public void removeAttr(String key, PlainSchema schema)
- Specified by:
removeAttr
in interfaceAnyUtils
-
-