|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISerializerRegistrator
central place to for all ITransportable implementations to
manager their collaboration with the transport service. At the same time this
is the place for the transport service and the ITransportHandler
implementations to retrieve all the classes which need to be adressed when
importing or exporting an object
Copyright 2004 SAP AG
| Nested Class Summary | |
|---|---|
static class |
ISerializerRegistrator.PropertyUsage
|
| Field Summary | |
|---|---|
static ISerializerRegistrator.PropertyUsage |
APPLICATION_PROPERTIES
|
static ISerializerRegistrator.PropertyUsage |
RESOURCE_PROPERTIES
|
| Method Summary | |
|---|---|
void |
claim(IClaimStaker claimstaker)
iterates over all repositories available and calls the claim(IClaimStaker, RID) for each of the repositories
prefixes. |
void |
claim(IClaimStaker claimstaker,
RID prefix)
adds the claims of the given claimstaker to the list of claimed properties. |
void |
deregister(ISerializer serializer)
deregisters a serializer for all repositories it has been registered for. |
boolean |
deregister(ISerializer transportable,
RID prefix)
|
PropertiesClaim |
getClaim(RID rid,
ISerializerRegistrator.PropertyUsage usage)
|
EntryList |
list(RID prefix)
|
void |
register(ISerializer serializer,
boolean isCore)
|
void |
register(ISerializer serializer,
IRepositoryManager manager,
boolean isCore)
the same method as register(ISerializer, RID, boolean), but
uses the IRepositoryManager.getPrefix() method to calculate
the RID |
void |
register(ISerializer transportable,
RID prefix,
boolean isCore)
if a transportable with the same ID is already registered here, the method will raise a TransportException, because the IDs registered
for a certain RID must be unique. |
void |
register(ISerializer transportable,
RID prefix,
boolean isCore,
int position)
if a transportable with the same ID is already registered here, the method will raise a TransportException, because the IDs registered
for a certain RID must be unique. |
RID[] |
registeredRIDs()
|
| Field Detail |
|---|
static final ISerializerRegistrator.PropertyUsage RESOURCE_PROPERTIES
static final ISerializerRegistrator.PropertyUsage APPLICATION_PROPERTIES
| Method Detail |
|---|
void register(ISerializer transportable,
RID prefix,
boolean isCore)
throws SerializationException
TransportException, because the IDs registered
for a certain RID must be unique.
transportable - to register for the given prefix, must not be
nullprefix - the RID to register the transportable for, must not be
nullisCore - flag to tell if the whole serialization process has to be
cancelled, if this serializer fails. Use this flag with care. It
should be only used for services that are relevant for security or
the actual content of the resource
SerializationException
void register(ISerializer transportable,
RID prefix,
boolean isCore,
int position)
throws SerializationException
TransportException, because the IDs registered
for a certain RID must be unique.
transportable - to register for the given prefix, must not be
nullprefix - the RID to register the transportable for, must not be
nullisCore - flag to tell if the whole serialization process has to be
cancelled, if this serializer fails. Use this flag with care. It
should be only used for services that are relevant for security or
the actual content of the resourceposition - an explicit position in the calling sequence for
serializers. Note that an implementation of this interface may not
use this inofrmation. Also, there is no guarantee that other
serializers will be active for the given RID.
SerializationException
void register(ISerializer serializer,
IRepositoryManager manager,
boolean isCore)
throws SerializationException
register(ISerializer, RID, boolean), but
uses the IRepositoryManager.getPrefix() method to calculate
the RID
serializer - manager - isCore -
SerializationException
void register(ISerializer serializer,
boolean isCore)
throws SerializationException
serializer - to register for all repositories available, must not be
nullisCore - flag to tell if the whole serialization process has to be
cancelled, if this serializer fails. Use this flag with care. It
should be only used for services that are relevant for security or
the actual content of the resource
SerializationException
boolean deregister(ISerializer transportable,
RID prefix)
throws SerializationException
transportable - the transportable to deregister, must not be
nullprefix - the prefix to deregister the transportable for, must not be
null
false, it will return true
otherwise
TransportException
SerializationException
void deregister(ISerializer serializer)
throws SerializationException
serializer - the serializer to deregister, must not be
null
TransportException
SerializationExceptionEntryList list(RID prefix)
prefix - the RID to retrieve all transportables for, must not be
null
null. A modification of the
array by the calling class must not modify the registration of
transportables within this registratorRID[] registeredRIDs()
RID s that ISerializer instances
have been defined for. Might return an empty array, but never
null.
void claim(IClaimStaker claimstaker,
RID prefix)
IPropertyName instances by calling the
getClaims(RID rid) method. Note possible race-conditions if
another class added claims in between the two method calls.
claimstaker - the class that wants to claim exclusive ownership of
certain IPropertyName while serialization of a
resource. Must not be nullprefix - the prefix of the repository to claim ownership of the
properties for.
void claim(IClaimStaker claimstaker)
throws ResourceException
claim(IClaimStaker, RID) for each of the repositories
prefixes.
ResourceException - if the ResourceFactory cannot
retrieve the collection of IRepositoryManager
instances.
PropertiesClaim getClaim(RID rid,
ISerializerRegistrator.PropertyUsage usage)
rid - RID of the resource to get the properties claim for. Must not be
null
| Access Rights |
|---|
| 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
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||