Interface IStorageNamesResolver
public interface IStorageNamesResolver
This interface provides common functionality for various resolvers.
When passed in a thingID, it knows how to 'walk' the type hierarchy and obtain the correct component
from the map.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(IThingID thingID, String rawMethod, Map<String, ? extends Object> componentMap, String defaultName) resolve the object from the mapresolve
(String xtype, String rawMethod, Map<String, ? extends Object> componentMap, String defaultName) resolve the object from the map
-
Method Details
-
resolve
Object resolve(IThingID thingID, String rawMethod, Map<String, ? extends Object> componentMap, String defaultName) throws PortalExceptionresolve the object from the map- Parameters:
thingID
- the target resourcerawMethod
- an optional method used in callingComponentUtil.constructComponentKey(java.lang.String, java.lang.String)
componentMap
- the map of contained componentsdefaultName
- the default name if none other is found- Returns:
- Throws:
PortalException
-
resolve
Object resolve(String xtype, String rawMethod, Map<String, ? extends Object> componentMap, String defaultName) throws PortalExceptionresolve the object from the map- Parameters:
xtype
- Xtype or base type name (ie 'wm_xt_resume_v1' or 'folder').rawMethod
- an optional method used in callingComponentUtil.constructComponentKey(java.lang.String, java.lang.String)
componentMap
- the map of contained componentsdefaultName
- the default name if none other is found- Returns:
- Throws:
PortalException
-