com.sapportals.wcm.rendering.base
Interface IRIDMapper
- public interface IRIDMapper
- Since:
- NW04, SPS5
a service interface that can be implemented by an
IProxy. During
the rendering process, classes request mappers for the RID
instances they need to persist on the html-page. So instead that many classes
write the complete RID on the page, they all just write the (shorter) mapping
on the page.
When the user clicked something on the html-page, the receiving class will
call the getRID(Sting mapper) method to retrieve the actual RID.
So the implementing class has to ensure that the mapping will survive the
server-roundtrip.
getMapper
public String getMapper(RID rid)
- to be used during the rendering process.
- Parameters:
rid - the rid of the resource that a mapping is needed for. Must not
be null. The RID should not have to be encoded.
- Returns:
- a (shorter) representation of the given RID. If several requests
for the same
RID have been received, they should all return
the same result.
getRID
public RID getRID(String mapper)
- to be used when an event has been received.
- Parameters:
mapper - the mapper that has been created using the getMapper
method. Must not be null
- Returns:
- the RID as it has been provided in the
getMapper method:
ridProvided.equals(ridReturned) == true
If no RID exists for this mapper, a NullPointerException will
be thrown.
Copyright 2006 SAP AG Complete Copyright Notice