public interface I_CmsSitemapController
This interface allows classes which are shared between client and server to access client-only functionality without statically depending on client-only code.
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,CmsClientProperty> |
getPropertiesForId(CmsUUID id)
Gets the property map for the given id.
|
void |
registerEntry(CmsClientSitemapEntry entry)
Registers the given entry within the data model.
|
void |
registerPathChange(CmsClientSitemapEntry entry,
java.lang.String oldPath)
Registers the change of the sitepath with the given controller.
|
java.util.Map<java.lang.String,CmsClientProperty> |
replaceProperties(CmsUUID id,
java.util.Map<java.lang.String,CmsClientProperty> properties)
This method is used to establish a unique property map object for each id, but replaces the contents of the
map object with new values for each call.
|
java.util.Map<java.lang.String,CmsClientProperty> getPropertiesForId(CmsUUID id)
id
- a structure idvoid registerEntry(CmsClientSitemapEntry entry)
entry
- the entry to registervoid registerPathChange(CmsClientSitemapEntry entry, java.lang.String oldPath)
entry
- the sitemap entryoldPath
- the old pathjava.util.Map<java.lang.String,CmsClientProperty> replaceProperties(CmsUUID id, java.util.Map<java.lang.String,CmsClientProperty> properties)
The first call to the method with a given id will just return the map passed in. The n-th call to the method with a given id will return the map object passed in with the first method call for that id, but with its contents replaced by the contents of the map passed in with the n-th call for that id.
The purpose of this is to avoid multiple redundant copies of the same logical map of properties being stored in multiple places.
id
- the map identifying the resource to which the properties belongproperties
- the new properties for the given id