at.gv.egovernment.moa.spss.server.invoke
Class ProfileMapper

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.invoke.ProfileMapper

public class ProfileMapper
extends Object

Map ProfileID objects to their explicit represantation.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
ProfileMapper()
           
 
Method Summary
static at.gv.egovernment.moa.spss.api.xmlsign.CreateSignatureEnvironmentProfileExplicit mapCreateSignatureEnvironmentProfile(at.gv.egovernment.moa.spss.api.xmlsign.CreateSignatureEnvironmentProfile profile, ConfigurationProvider config)
          Map a CreateSignatureEnvironmentProfile to a CreateSignatureEnvironmentProfileExplicit.
static at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfileExplicit mapCreateTransformsInfoProfile(at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfile profile, ConfigurationProvider config)
          Map a CreateTransformsInfoProfile to a CreateTransformsInfoProfileExplicit.
static at.gv.egovernment.moa.spss.api.xmlverify.SupplementProfileExplicit mapSupplementProfile(at.gv.egovernment.moa.spss.api.xmlverify.SupplementProfile profile, ConfigurationProvider config)
          Map a SupplementProfile to a SupplementProfileExplicit.
static List mapSupplementProfiles(List profiles, ConfigurationProvider config)
          Map a List of SupplementProfiles to their explicit representation.
static at.gv.egovernment.moa.spss.api.xmlverify.VerifyTransformsInfoProfileExplicit mapVerifyTransformsInfoProfile(at.gv.egovernment.moa.spss.api.xmlverify.VerifyTransformsInfoProfile profile, ConfigurationProvider config)
          Map a VerifyTransformsInfoProfile to a VerifyTransformsInfoProfileExplicit.
static List mapVerifyTransformsInfoProfiles(List profiles, ConfigurationProvider config)
          Map a List of VerifyTransformsInfoProfiles to their explicit representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileMapper

public ProfileMapper()
Method Detail

mapCreateTransformsInfoProfile

public static at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfileExplicit mapCreateTransformsInfoProfile(at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfile profile,
                                                                                                                        ConfigurationProvider config)
                                                                                                                 throws MOAApplicationException
Map a CreateTransformsInfoProfile to a CreateTransformsInfoProfileExplicit.
Parameters:
profile - The profile object to map.
config - The MOA configuration to use for looking up the profile.
Returns:
profile, if the given profile is of type EXPLICIT_CREATETRANSFORMSINFOPROFILE, otherwise the profile that is looked up and parsed from the configuration.
Throws:
MOAApplicationException - An error occurred parsing the profile.

mapCreateSignatureEnvironmentProfile

public static at.gv.egovernment.moa.spss.api.xmlsign.CreateSignatureEnvironmentProfileExplicit mapCreateSignatureEnvironmentProfile(at.gv.egovernment.moa.spss.api.xmlsign.CreateSignatureEnvironmentProfile profile,
                                                                                                                                    ConfigurationProvider config)
                                                                                                                             throws MOAApplicationException
Map a CreateSignatureEnvironmentProfile to a CreateSignatureEnvironmentProfileExplicit.
Parameters:
profile - The profile object to map.
config - The MOA configuration to use for looking up the profile.
Returns:
profile, if the given profile is of type EXPLICIT_CREATESIGNATUREENVIRONMENTPROFILE, otherwise the profile that is looked up and parsed from the configuration.
Throws:
MOAApplicationException - An error occurred parsing the profile.

mapSupplementProfiles

public static List mapSupplementProfiles(List profiles,
                                         ConfigurationProvider config)
                                  throws MOAApplicationException
Map a List of SupplementProfiles to their explicit representation.
Parameters:
profiles - The profiles to map.
config - The MOA configuration to use for looking up profiles.
Returns:
The mapped profiles.
Throws:
MOAApplicationException - An error occurred mapping one of the profiles.

mapSupplementProfile

public static at.gv.egovernment.moa.spss.api.xmlverify.SupplementProfileExplicit mapSupplementProfile(at.gv.egovernment.moa.spss.api.xmlverify.SupplementProfile profile,
                                                                                                      ConfigurationProvider config)
                                                                                               throws MOAApplicationException
Map a SupplementProfile to a SupplementProfileExplicit.
Parameters:
profile - The profile object to map.
config - The MOA configuration to use for looking up the profile.
Returns:
profile, if the given profile is of type EXPLICIT_SUPPLEMENTPROFILE, otherwise the profile that is looked up and parsed from the configuration.
Throws:
MOAApplicationException - An error occurred parsing the profile.

mapVerifyTransformsInfoProfiles

public static List mapVerifyTransformsInfoProfiles(List profiles,
                                                   ConfigurationProvider config)
                                            throws MOAApplicationException
Map a List of VerifyTransformsInfoProfiles to their explicit representation.
Parameters:
profiles - The profiles to map.
config - The MOA configuration to use for looking up profiles.
Returns:
The mapped profiles.
Throws:
MOAApplicationException - An error occurred mapping one of the profiles.

mapVerifyTransformsInfoProfile

public static at.gv.egovernment.moa.spss.api.xmlverify.VerifyTransformsInfoProfileExplicit mapVerifyTransformsInfoProfile(at.gv.egovernment.moa.spss.api.xmlverify.VerifyTransformsInfoProfile profile,
                                                                                                                          ConfigurationProvider config)
                                                                                                                   throws MOAApplicationException
Map a VerifyTransformsInfoProfile to a VerifyTransformsInfoProfileExplicit.
Parameters:
profile - The profile object to map.
config - The MOA configuration to use for looking up the profile.
Returns:
profile, if the given profile is of type EXPLICIT_VERIFYTRANSFORMSINFOPROFILE, otherwise the profile that is looked up and parsed from the configuration.
Throws:
MOAApplicationException - An error occurred parsing the profile.