@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); Partition partition = getEntry(); properties.put("name", partition.getName()); }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); Partition partition = getEntry(); properties.put("name", partition.getName()); }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); IdentityType identityType = getEntry(); if (identityType.getPartition() == null) { throw new IllegalStateException("Partition Null"); } if (identityType.getPartition().getId() == null) { throw new IllegalStateException("Partition ID Null"); } properties.put("partitionId", identityType.getPartition().getId()); properties.put("partitionType", identityType.getPartition().getClass().getName()); properties.put("createdDate", identityType.getCreatedDate()); if (identityType.getExpirationDate() != null) { properties.put("expirationDate", identityType.getExpirationDate()); } properties.put("enabled", identityType.isEnabled()); } }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); IdentityType identityType = getEntry(); if (identityType.getPartition() == null) { throw new IllegalStateException("Partition Null"); } if (identityType.getPartition().getId() == null) { throw new IllegalStateException("Partition ID Null"); } properties.put("partitionId", identityType.getPartition().getId()); properties.put("partitionType", identityType.getPartition().getClass().getName()); properties.put("createdDate", identityType.getCreatedDate()); if (identityType.getExpirationDate() != null) { properties.put("expirationDate", identityType.getExpirationDate()); } properties.put("enabled", identityType.isEnabled()); } }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); List<Property<IdentityType>> relationshipIdentityTypes = PropertyQueries .<IdentityType> createQuery(getEntry().getClass()) .addCriteria(new TypedPropertyCriteria(IdentityType.class, MatchOption.SUB_TYPE)).getResultList(); for (Property<IdentityType> annotatedProperty : relationshipIdentityTypes) { IdentityType identityType = annotatedProperty.getValue(getEntry()); if (identityType != null) { this.identityTypeIds.put(IdentityTypeUtil.formatId(identityType), annotatedProperty.getName()); } } }
@Override protected void doPopulateProperties(Map<String, Serializable> properties) throws Exception { super.doPopulateProperties(properties); List<Property<IdentityType>> relationshipIdentityTypes = PropertyQueries .<IdentityType> createQuery(getEntry().getClass()) .addCriteria(new TypedPropertyCriteria(IdentityType.class, MatchOption.SUB_TYPE)).getResultList(); for (Property<IdentityType> annotatedProperty : relationshipIdentityTypes) { IdentityType identityType = annotatedProperty.getValue(getEntry()); if (identityType != null) { this.identityTypeIds.put(IdentityTypeUtil.formatId(identityType), annotatedProperty.getName()); } } }