public interface TypeAccessor
EntityType and ApplicationType and registered
AuthenticationProvider classes.| Modifier and Type | Method and Description |
|---|---|
<T extends ApplicationType> |
getApplicationType(Class<T> typeClass) |
Class<? extends AuthenticationProvider> |
getAuthenticationProviderClass(String className) |
Iterable<? extends ApplicationType> |
getEnabledApplicationTypes() |
Iterable<? extends EntityType> |
getEnabledEntityTypes() |
Iterable<? extends EntityType> |
getEnabledEntityTypesForApplicationType(ApplicationType applicationType) |
<T extends EntityType> |
getEntityType(Class<T> typeClass) |
ApplicationType |
loadApplicationType(TypeId typeId)
Load application type using its unique identifier represented by typeId.
|
EntityType |
loadEntityType(TypeId typeId) |
<T extends EntityType> T getEntityType(Class<T> typeClass)
T - the type to the typeClass parametertypeClass - the interface or superclass (extending EntityType of the type to retrieve.
Generally this will be a class from a sub-package of
com.atlassian.applinks.api.applicationEntityType, or null if an implementation of the specified
EntityType is not registered via the plugin system.EntityType loadEntityType(TypeId typeId)
typeId - the id of the EntityType to retrieve.<T extends ApplicationType> T getApplicationType(Class<T> typeClass)
T - the type to the typeClass parametertypeClass - the interface or superclass (extending ApplicationType of the type to retrieve.
Generally this will be a class from com.atlassian.applinks.api.applicationApplicationType, or null if an implementation of the specified
ApplicationType is not registered via the plugin system.ApplicationType loadApplicationType(TypeId typeId)
typeId - identifier of the application type to loadnull if no such application type existsClass<? extends AuthenticationProvider> getAuthenticationProviderClass(String className)
className - the full class name of a registered AuthenticationProvider (must be equal to the result
of a call to Class.getName()).Class of the specified AuthenticationProviderIterable<? extends EntityType> getEnabledEntityTypes()
EntityType instances registered via the plugin systemIterable<? extends EntityType> getEnabledEntityTypesForApplicationType(ApplicationType applicationType)
entity types that are supported by the given
ApplicationType.Iterable<? extends ApplicationType> getEnabledApplicationTypes()
ApplicationType instances registered via the plugin systemCopyright © 2018 Atlassian. All rights reserved.