@Override protected Partition doPopulateEntry(Map<String, Serializable> properties) throws Exception { Partition partition = super.doPopulateEntry(properties); return partition; }
@Override protected Partition doPopulateEntry(Map<String, Serializable> properties) throws Exception { Partition partition = super.doPopulateEntry(properties); return partition; }
@Override protected IdentityType doPopulateEntry(Map<String, Serializable> properties) throws Exception { IdentityType identityType = super.doPopulateEntry(properties); String partitionType = properties.get("partitionType").toString(); String partitionId = properties.get("partitionId").toString(); Partition partition = (Partition) Class.forName(partitionType).getConstructor(new Class[]{String.class}).newInstance(""); partition.setId(partitionId); identityType.setPartition(partition); identityType.setCreatedDate((Date) properties.get("createdDate")); identityType.setExpirationDate((Date) properties.get("expirationDate")); identityType.setEnabled((Boolean) properties.get("enabled")); return identityType; }
@Override protected IdentityType doPopulateEntry(Map<String, Serializable> properties) throws Exception { IdentityType identityType = super.doPopulateEntry(properties); String partitionType = properties.get("partitionType").toString(); String partitionId = properties.get("partitionId").toString(); Partition partition = (Partition) Class.forName(partitionType).getConstructor(new Class[]{String.class}).newInstance(""); partition.setId(partitionId); identityType.setPartition(partition); identityType.setCreatedDate((Date) properties.get("createdDate")); identityType.setExpirationDate((Date) properties.get("expirationDate")); identityType.setEnabled((Boolean) properties.get("enabled")); return identityType; }
@Override protected Relationship doPopulateEntry(Map<String, Serializable> properties) throws Exception { Relationship relationship = super.doPopulateEntry(properties); List<Property<Serializable>> relationshipAttributeTypes = PropertyQueries .<Serializable> createQuery(relationship.getClass()) .addCriteria(new AnnotatedPropertyCriteria(AttributeProperty.class)).getResultList(); for (Property<Serializable> property : relationshipAttributeTypes) { property.setValue(relationship, properties.get(property.getName())); } return relationship; }
@Override protected Relationship doPopulateEntry(Map<String, Serializable> properties) throws Exception { Relationship relationship = super.doPopulateEntry(properties); List<Property<Serializable>> relationshipAttributeTypes = PropertyQueries .<Serializable> createQuery(relationship.getClass()) .addCriteria(new AnnotatedPropertyCriteria(AttributeProperty.class)).getResultList(); for (Property<Serializable> property : relationshipAttributeTypes) { property.setValue(relationship, properties.get(property.getName())); } return relationship; }