public interface WebCmsTypeSpecifierService
WebCmsTypeSpecifier instances.
Inspects the multi-domain configuration to determine which domains should be investigated for finding the type specifiers.| Modifier and Type | Method and Description |
|---|---|
WebCmsTypeSpecifier<?> |
getTypeSpecifier(String objectId)
Finds the type specifier with that object id.
|
<T extends WebCmsTypeSpecifier> |
getTypeSpecifier(String objectId,
Class<T> expectedType)
Finds the type specifier with that object id, assuming it is of the expected java type.
|
<T extends WebCmsTypeSpecifier> |
getTypeSpecifierByKey(String typeKey,
Class<T> expectedType)
Finds the type specifier represented by the type key, assuming it is of the expected java type.
|
<T extends WebCmsTypeSpecifier> |
getTypeSpecifierByKey(String typeKey,
Class<T> expectedType,
WebCmsDomain domain)
Finds the type specifier represented by the type key, assuming it is of the expected java type.
|
WebCmsTypeSpecifier<?> getTypeSpecifier(String objectId)
objectId - the type specifier hasnull if not found<T extends WebCmsTypeSpecifier> T getTypeSpecifier(String objectId, Class<T> expectedType)
IllegalArgumentException will be thrown.T - expected typeobjectId - the type specifier hasexpectedType - the type should havenull if not found<T extends WebCmsTypeSpecifier> T getTypeSpecifierByKey(String typeKey, Class<T> expectedType)
WebCmsTypeRegistry.
Will inspect the multi-domain configuration and use the current domain as well as fallback
to no-domain if allowed for that type.T - expected typetypeKey - of the typeexpectedType - outputnull if not found<T extends WebCmsTypeSpecifier> T getTypeSpecifierByKey(String typeKey, Class<T> expectedType, WebCmsDomain domain)
WebCmsTypeRegistry.
Will inspect the multi-domain configuration and use the current domain as well as fallback
to no-domain if allowed for that type.T - expected typetypeKey - of the typeexpectedType - outputdomain - to look for the typenull if not foundCopyright © 2020. All rights reserved.