All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rtr.alchemy.service.metadata.IdentityMetadata Maven / Gradle / Ivy

There is a newer version: 2.2.16
Show newest version
package io.rtr.alchemy.service.metadata;

import io.rtr.alchemy.dto.identities.IdentityDto;
import io.rtr.alchemy.identities.Identity;
import io.rtr.alchemy.mapping.Mapper;

import java.util.Set;

/**
 * Metadata for an identity type
 */
public class IdentityMetadata {
    private final String typeName;
    private final Class identityType;
    private final Class dtoType;
    private final Class mapperType;
    private final Set attributes;

    public IdentityMetadata(String typeName,
                            Class identityType,
                            Class dtoType,
                            Class mapperType) {
        this.typeName = typeName;
        this.identityType = identityType;
        this.dtoType = dtoType;
        this.mapperType = mapperType;
        this.attributes = Identity.getSupportedAttributes(identityType);
    }

    public String getTypeName() {
        return typeName;
    }

    public Class getIdentityType() {
        return identityType;
    }

    public Class getDtoType() {
        return dtoType;
    }

    public Class getMapperType() {
        return mapperType;
    }

    public Set getAttributes() {
        return attributes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy