com.sapportals.wcm.service.urimapper

Interface IUriMapperService2

All Superinterfaces:
IService, IUriMapperService

public interface IUriMapperService2
extends IUriMapperService

Extends IUriMapper with a set of methods that pass in the ResourceContext XXX: internal use only


Field Summary
 
Fields inherited from interface com.sapportals.wcm.service.urimapper.IUriMapperService
SERVICE_ID
 
Method Summary
 String getConstantID(RID rid, IResourceContext context)
          Maps a given RID onto a constant unique ID.
 String[] getConstantIDs(IRidList ridList, IResourceContext context)
          Maps a list of RIDs to a list of constant unique IDs.
 String getCreateConstantID(RID rid, IResourceContext context)
          Maps a given RID onto a constant unique ID.
 String[] getCreateConstantIDs(IRidList rids, IResourceContext context)
          Maps a given set of RIDs onto a set of constant unique IDs.
 String getCreateVariableID(RID rid, IResourceContext context)
          Maps a given RID onto a variable unique ID.
 RID getGuidRIDFromRID(RID rid, IResourceContext context)
          Maps a given GUID RID onto the matching RID.
 RID getRIDFromConstantID(String constantID, IResourceContext context)
          Maps a given constant ID onto the matching RID.
 RID getRIDFromGuidRID(RID rid, IResourceContext context)
          Maps a given GUID RID onto the matching RID.
 RID getRIDFromVariableID(String variableID, IResourceContext context)
          Maps a given variable ID onto the matching RID.
 String getVariableID(RID rid, IResourceContext context)
          Maps a given RID onto a variable unique ID.
 String[] getVariableIDs(IRidList ridList, IResourceContext context)
          Maps a list of RIDs to a list of variable unique IDs.
 void removeMultipleIDs(RID id, IResourceContext context)
          Remove mapping for the given RID and all descendants, e.g. id/*.
 boolean removeSingleID(RID id, IResourceContext context)
          Remove mapping for the given RID.
 void renameMultipleIDs(RID fromId, RID toId, IResourceContext context)
          Rename mapping for the given RID and all descendants, e.g. id/*.
 boolean renameSingleID(RID fromId, RID toId, IResourceContext context)
          Rename mapping for the given RID.
 
Methods inherited from interface com.sapportals.wcm.service.urimapper.IUriMapperService
forceSingleIDMapping, forceSingleIDMapping, getConstantID, getConstantID, getConstantIDs, getCreateConstantID, getCreateConstantID, getCreateConstantIDs, getCreateVariableID, getCreateVariableID, getGuidRIDFromRID, getRIDFromConstantID, getRIDFromGuidRID, getRIDFromVariableID, getUriFromConstantID, getUriFromVariableID, getVariableID, getVariableID, getVariableIDs, removeMultipleIDs, removeMultipleIDs, removeSingleID, removeSingleID, renameMultipleIDs, renameMultipleIDs, renameSingleID, renameSingleID
 
Methods inherited from interface com.sapportals.wcm.service.IService
getDescription, getDescription, getID
 

Method Detail

getConstantID

String getConstantID(RID rid,
                     IResourceContext context)
                     throws WcmException
Maps a given RID onto a constant unique ID. If no mapping exists then null is returned.

Parameters:
rid - to map
Returns:
ID string for RID
Throws:
WcmException - Exception raised in failure situation

getConstantIDs

String[] getConstantIDs(IRidList ridList,
                        IResourceContext context)
                        throws WcmException
Maps a list of RIDs to a list of constant unique IDs. The order is preserved, that means the unique ID will have the same index in the resulting array as the RID it belongs to in the RID list. If a constant unique ID does not exist for a RID the array will contain a null entry.

Parameters:
ridList - List of RIDs
Returns:
Array of unique IDs.
Throws:
WcmException

getCreateConstantID

String getCreateConstantID(RID rid,
                           IResourceContext context)
                           throws WcmException
Maps a given RID onto a constant unique ID. If no mapping exists for the RID then a new one is created.

Parameters:
rid - to map
Returns:
ID string for uri
Throws:
WcmException - Exception raised in failure situation

getCreateConstantIDs

String[] getCreateConstantIDs(IRidList rids,
                              IResourceContext context)
                              throws WcmException
Maps a given set of RIDs onto a set of constant unique IDs. The order is preserved, that means the unique ID will have the same index in the resulting array as the RID it belongs to in the RID list. If no mapping exists for a RID a new one is created.

Parameters:
rids - List of RIDs
Returns:
Array of unique IDs.
Throws:
WcmException - Exception raised in failure situation

getRIDFromConstantID

RID getRIDFromConstantID(String constantID,
                         IResourceContext context)
                         throws WcmException
Maps a given constant ID onto the matching RID.

Parameters:
constantID - constant ID to be matched.
Returns:
RID matching given ID
Throws:
WcmException - Exception raised in failure situation

getGuidRIDFromRID

RID getGuidRIDFromRID(RID rid,
                      IResourceContext context)
                      throws WcmException
Maps a given GUID RID onto the matching RID.

Parameters:
rid - GUID RID to be matched
Returns:
guid rid
Throws:
WcmException - Exception raised in failure situation

getRIDFromGuidRID

RID getRIDFromGuidRID(RID rid,
                      IResourceContext context)
                      throws WcmException
Maps a given GUID RID onto the matching RID.

Parameters:
rid - guid rid
Returns:
rid
Throws:
WcmException - Exception raised in failure situation

getVariableID

String getVariableID(RID rid,
                     IResourceContext context)
                     throws WcmException
Maps a given RID onto a variable unique ID. If no mapping exists then null is returned.

Parameters:
rid - to map
Returns:
ID string for rid
Throws:
WcmException - Exception raised in failure situation

getCreateVariableID

String getCreateVariableID(RID rid,
                           IResourceContext context)
                           throws WcmException
Maps a given RID onto a variable unique ID. If no mapping exists for the RID then a new one is created.

Parameters:
rid - to map
Returns:
ID string for rid
Throws:
WcmException - Exception raised in failure situation

getRIDFromVariableID

RID getRIDFromVariableID(String variableID,
                         IResourceContext context)
                         throws WcmException
Maps a given variable ID onto the matching RID.

Parameters:
variableID -
Returns:
RID matching given ID
Throws:
WcmException - Exception raised in failure situation

getVariableIDs

String[] getVariableIDs(IRidList ridList,
                        IResourceContext context)
                        throws WcmException
Maps a list of RIDs to a list of variable unique IDs. The order is preserved, that means the unique ID will have the same index in the resulting array as the RID it belongs to in the RID list. If a variable unique ID does not exist for a RID the array will contain a null entry.

Parameters:
ridList - List of RIDs
Returns:
Array of unique IDs.
Throws:
WcmException

removeMultipleIDs

void removeMultipleIDs(RID id,
                       IResourceContext context)
                       throws WcmException
Remove mapping for the given RID and all descendants, e.g. id/*.

Parameters:
id - exact RID and descendants to remove
Throws:
WcmException - Exception raised in failure situation

removeSingleID

boolean removeSingleID(RID id,
                       IResourceContext context)
                       throws WcmException
Remove mapping for the given RID.

Parameters:
id - exact RID to remove mapping for.
Returns:
true if a mapping was removed.
Throws:
WcmException - Exception raised in failure situation

renameMultipleIDs

void renameMultipleIDs(RID fromId,
                       RID toId,
                       IResourceContext context)
                       throws WcmException
Rename mapping for the given RID and all descendants, e.g. id/*.

Parameters:
fromId - exact RID and descendants to rename.
toId - new RID to rename to.
Throws:
WcmException - Exception raised in failure situation

renameSingleID

boolean renameSingleID(RID fromId,
                       RID toId,
                       IResourceContext context)
                       throws WcmException
Rename mapping for the given RID.

Parameters:
fromId - exact RID to rename.
toId - new RID to rename to.
Returns:
true if a mapping was renamed.
Throws:
WcmException - Exception raised in failure situation
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice