/** * A Realm defines a boundary for certain identity state. Users, Groups and standard Roles are unique within a Realm. * * @author Shane Bryzak */ @IdentityPartition(supportedTypes = {IdentityType.class}) public class Realm extends AbstractPartition { private static final long serialVersionUID = -2667438382506066497L; public static final String DEFAULT_REALM = "default"; public Realm() { super(null); } public Realm(String name) { super(name); } }
private void checkSupportedTypes(Partition partition, Class<? extends AttributedType> type) { if (partition != null) { if (IdentityType.class.isAssignableFrom(type)) { IdentityPartition identityPartition = partition.getClass().getAnnotation(IdentityPartition.class); if (identityPartition != null && isTypeSupported((Class<? extends IdentityType>) type, toSet(identityPartition.supportedTypes()), toSet(identityPartition.unsupportedTypes())) == -1) { throw MESSAGES.partitionUnsupportedType(partition, type); } } } }
private void checkSupportedTypes(Partition partition, Class<? extends AttributedType> type) { if (partition != null) { if (IdentityType.class.isAssignableFrom(type)) { IdentityPartition identityPartition = partition.getClass().getAnnotation(IdentityPartition.class); if (identityPartition != null && isTypeSupported((Class<? extends IdentityType>) type, toSet(identityPartition.supportedTypes()), toSet(identityPartition.unsupportedTypes())) == -1) { throw MESSAGES.partitionUnsupportedType(partition, type); } } } }
/** * A hierarchical abstraction representing a partitioned set or subset of services, for which * specialized Roles and Groups may be created. * * @author Shane Bryzak */ @IdentityPartition(supportedTypes = {IdentityType.class}, unsupportedTypes = {Account.class}) public class Tier extends AbstractPartition { private static final long serialVersionUID = 7797059334915537276L; public Tier() { super(null); } public Tier(String name) { super(name); } }
/** * A Realm defines a boundary for certain identity state. Users, Groups and standard Roles are unique within a Realm. * * @author Shane Bryzak */ @IdentityPartition(supportedTypes = {IdentityType.class}) public class Realm extends AbstractPartition { private static final long serialVersionUID = -2667438382506066497L; public static final String DEFAULT_REALM = "default"; public Realm() { super(null); } public Realm(String name) { super(name); } }
/** * A hierarchical abstraction representing a partitioned set or subset of services, for which * specialized Roles and Groups may be created. * * @author Shane Bryzak */ @IdentityPartition(supportedTypes = {IdentityType.class}, unsupportedTypes = {Account.class}) public class Tier extends AbstractPartition { private static final long serialVersionUID = 7797059334915537276L; public Tier() { super(null); } public Tier(String name) { super(name); } }