com.sap.netweaver.bc.serialize

Class ClaimsKeeper

java.lang.Object
  extended by com.sap.netweaver.bc.serialize.ClaimsKeeper

public final class ClaimsKeeper
extends Object

helper class used to organize PropertiesClaim instances and their mapping to certain RID prefixes

Copyright 2004 SAP AG


Constructor Summary
ClaimsKeeper()
           
 
Method Summary
 void add(IClaimStaker staker)
          this method will map the PropertiesClaim to all prefixes defined by the available IRepositoryManager instances.
 void add(IClaimStaker staker, RID rid)
           
 PropertiesClaim getClaim(RID rid, ISerializerRegistrator.PropertyUsage usage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClaimsKeeper

public ClaimsKeeper()
Method Detail

add

public void add(IClaimStaker staker)
         throws ResourceException
this method will map the PropertiesClaim to all prefixes defined by the available IRepositoryManager instances.

Parameters:
staker - the class providing the PropertiesClaim. Must not be null
Throws:
ResourceException

add

public void add(IClaimStaker staker,
                RID rid)
Parameters:
staker - the class providing the PropertiesClaim. Must not be null
rid - the rid to claim properties for. This rid will be trimmed to its prefix, because properties can only be claimed for a complete repository at a time.
If, for example, the RID /documents/My Folder is passed, the given IClaimStaker will be mapped to the RID /documents.
The parameter must not be null

getClaim

public PropertiesClaim getClaim(RID rid,
                                ISerializerRegistrator.PropertyUsage usage)
Parameters:
rid - will be trimmed to its prefix. Must not be null
Returns:
the combined PropertiesClaim of all IClaimStaker instances that registered for the given rid. Might be an empty list, but never null
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