test_class.declarator: oadr20bVENEiRegisterPartyService
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private Oadr20bVENEiRegisterPartyService oadr20bVENEiRegisterPartyService;
test_class.type: Oadr20bVENEiRegisterPartyService
test_class.var_name: oadr20bVENEiRegisterPartyService
test_class.declarator: multiVtnConfig
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private MultiVtnConfig multiVtnConfig;
test_class.type: MultiVtnConfig
test_class.var_name: multiVtnConfig
test_class.declarator: vtnHttpId
test_class.modifier: @Value("${oadr.vtn.myvtn.vtnid}")
  	private
test_class.original_string: @Value("${oadr.vtn.myvtn.vtnid}")
  	private String vtnHttpId;
test_class.type: String
test_class.var_name: vtnHttpId
test_class.declarator: venConfig
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private VenConfig venConfig;
test_class.type: VenConfig
test_class.var_name: venConfig
test_class.declarator: oadr20bJAXBContext
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private Oadr20bJAXBContext oadr20bJAXBContext;
test_class.type: Oadr20bJAXBContext
test_class.var_name: oadr20bJAXBContext
test_class.file: OpenADRServerVEN20b/src/test/java/com/avob/openadr/server/oadr20b/ven/service/Oadr20bVENEiRegisterPartyServiceTest.java
test_class.identifier: Oadr20bVENEiRegisterPartyServiceTest
test_case.body: @Test
  	public void oadrCancelPartyRegistrationTest()
  			throws Oadr20bApplicationLayerException, Oadr20bMarshalException, Oadr20bUnmarshalException,
  			Oadr20bXMLSignatureValidationException, Oadr20bXMLSignatureException, OadrSecurityException, IOException {
  		VtnSessionConfiguration multiConfig = multiVtnConfig.getMultiConfig(vtnHttpId);
  
  		oadr20bVENEiRegisterPartyService.initRegistration(multiConfig);
  
  		assertNotNull(oadr20bVENEiRegisterPartyService.getRegistration(multiConfig));
  
  		OadrCancelPartyRegistrationType cancelPartyRegistration = Oadr20bEiRegisterPartyBuilders
  				.newOadr20bCancelPartyRegistrationBuilder("0",
  						oadr20bVENEiRegisterPartyService.getRegistration(multiConfig).getRegistrationID(),
  						venConfig.getVenId())
  				.build();
  
  		String request = oadr20bVENEiRegisterPartyService.request(vtnHttpId,
  				oadr20bJAXBContext.marshalRoot(cancelPartyRegistration));
  
  		OadrCanceledPartyRegistrationType oadrCanceledPartyRegistration = oadr20bJAXBContext.unmarshal(request,
  				OadrCanceledPartyRegistrationType.class);
  
  		assertNotNull(oadrCanceledPartyRegistration);
  		assertNull(oadr20bVENEiRegisterPartyService.getRegistration(multiConfig));
  	}
test_case.class_method_signature: Oadr20bVENEiRegisterPartyServiceTest.oadrCancelPartyRegistrationTest()
test_case.full_signature: @Test public void oadrCancelPartyRegistrationTest()
test_case.identifier: oadrCancelPartyRegistrationTest
test_case.invocations: getMultiConfig initRegistration assertNotNull getRegistration build newOadr20bCancelPartyRegistrationBuilder getRegistrationID getRegistration getVenId request marshalRoot unmarshal assertNotNull assertNull getRegistration
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void oadrCancelPartyRegistrationTest()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(Oadr20bVENEiRegisterPartyService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(Oadr20bVENEiRegisterPartyService.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: payloadHandler
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private PayloadHandler payloadHandler;
focal_class.type: PayloadHandler
focal_class.var_name: payloadHandler
focal_class.declarator: multiVtnConfig
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private MultiVtnConfig multiVtnConfig;
focal_class.type: MultiVtnConfig
focal_class.var_name: multiVtnConfig
focal_class.declarator: oadrPollService
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private Oadr20bPollService oadrPollService;
focal_class.type: Oadr20bPollService
focal_class.var_name: oadrPollService
focal_class.declarator: venConfig
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private VenConfig venConfig;
focal_class.type: VenConfig
focal_class.var_name: venConfig
focal_class.declarator: registration = new ConcurrentHashMap<String, OadrCreatedPartyRegistrationType>()
focal_class.modifier: private
focal_class.original_string: private Map<String, OadrCreatedPartyRegistrationType> registration = new ConcurrentHashMap<String, OadrCreatedPartyRegistrationType>();
focal_class.type: Map<String, OadrCreatedPartyRegistrationType>
focal_class.var_name: registration
focal_class.declarator: listeners
focal_class.modifier: private
focal_class.original_string: private List<Oadr20bVENEiRegisterPartyServiceListener> listeners;
focal_class.type: List<Oadr20bVENEiRegisterPartyServiceListener>
focal_class.var_name: listeners
focal_class.file: OpenADRServerVEN20b/src/main/java/com/avob/openadr/server/oadr20b/ven/service/Oadr20bVENEiRegisterPartyService.java
focal_class.identifier: Oadr20bVENEiRegisterPartyService
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.oadrRequestReregistration(VtnSessionConfiguration vtnConfiguration,
  			OadrRequestReregistrationType oadrRequestReregistrationType)
focal_class.full_signature: public OadrResponseType oadrRequestReregistration(VtnSessionConfiguration vtnConfiguration,
  			OadrRequestReregistrationType oadrRequestReregistrationType)
focal_class.identifier: oadrRequestReregistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration,
  			OadrRequestReregistrationType oadrRequestReregistrationType)
focal_class.return: OadrResponseType
focal_class.signature: OadrResponseType oadrRequestReregistration(VtnSessionConfiguration vtnConfiguration,
  			OadrRequestReregistrationType oadrRequestReregistrationType)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_class.full_signature: public OadrCanceledPartyRegistrationType oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_class.identifier: oadrCancelPartyRegistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_class.return: OadrCanceledPartyRegistrationType
focal_class.signature: OadrCanceledPartyRegistrationType oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.clearRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.full_signature: public void clearRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.identifier: clearRegistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration)
focal_class.return: void
focal_class.signature: void clearRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.reinitRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.full_signature: public void reinitRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.identifier: reinitRegistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration)
focal_class.return: void
focal_class.signature: void reinitRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.initRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.full_signature: public void initRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.identifier: initRegistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration)
focal_class.return: void
focal_class.signature: void initRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.register(VtnSessionConfiguration vtnConfiguration, OadrCreatedPartyRegistrationType registration)
focal_class.full_signature: public void register(VtnSessionConfiguration vtnConfiguration, OadrCreatedPartyRegistrationType registration)
focal_class.identifier: register
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration, OadrCreatedPartyRegistrationType registration)
focal_class.return: void
focal_class.signature: void register(VtnSessionConfiguration vtnConfiguration, OadrCreatedPartyRegistrationType registration)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.getRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.full_signature: public OadrCreatedPartyRegistrationType getRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.identifier: getRegistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration)
focal_class.return: OadrCreatedPartyRegistrationType
focal_class.signature: OadrCreatedPartyRegistrationType getRegistration(VtnSessionConfiguration vtnConfiguration)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.setRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCreatedPartyRegistrationType registration)
focal_class.full_signature: private void setRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCreatedPartyRegistrationType registration)
focal_class.identifier: setRegistration
focal_class.modifiers: private
focal_class.parameters: (VtnSessionConfiguration vtnConfiguration,
  			OadrCreatedPartyRegistrationType registration)
focal_class.return: void
focal_class.signature: void setRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCreatedPartyRegistrationType registration)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.addListener(Oadr20bVENEiRegisterPartyServiceListener listener)
focal_class.full_signature: public void addListener(Oadr20bVENEiRegisterPartyServiceListener listener)
focal_class.identifier: addListener
focal_class.modifiers: public
focal_class.parameters: (Oadr20bVENEiRegisterPartyServiceListener listener)
focal_class.return: void
focal_class.signature: void addListener(Oadr20bVENEiRegisterPartyServiceListener listener)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.handle(VtnSessionConfiguration vtnConfig, OadrPayload oadrPayload)
focal_class.full_signature: public Object handle(VtnSessionConfiguration vtnConfig, OadrPayload oadrPayload)
focal_class.identifier: handle
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfig, OadrPayload oadrPayload)
focal_class.return: Object
focal_class.signature: Object handle(VtnSessionConfiguration vtnConfig, OadrPayload oadrPayload)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.oadrCreatedPartyRegistration(VtnSessionConfiguration vtnConfig,
  			OadrCreatedPartyRegistrationType oadrCreatedPartyRegistrationType)
focal_class.full_signature: public void oadrCreatedPartyRegistration(VtnSessionConfiguration vtnConfig,
  			OadrCreatedPartyRegistrationType oadrCreatedPartyRegistrationType)
focal_class.identifier: oadrCreatedPartyRegistration
focal_class.modifiers: public
focal_class.parameters: (VtnSessionConfiguration vtnConfig,
  			OadrCreatedPartyRegistrationType oadrCreatedPartyRegistrationType)
focal_class.return: void
focal_class.signature: void oadrCreatedPartyRegistration(VtnSessionConfiguration vtnConfig,
  			OadrCreatedPartyRegistrationType oadrCreatedPartyRegistrationType)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.request(String username, String payload)
focal_class.full_signature: public String request(String username, String payload)
focal_class.identifier: request
focal_class.modifiers: public
focal_class.parameters: (String username, String payload)
focal_class.return: String
focal_class.signature: String request(String username, String payload)
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.getListeners()
focal_class.full_signature: public List<Oadr20bVENEiRegisterPartyServiceListener> getListeners()
focal_class.identifier: getListeners
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Oadr20bVENEiRegisterPartyServiceListener>
focal_class.signature: List<Oadr20bVENEiRegisterPartyServiceListener> getListeners()
focal_class.class_method_signature: Oadr20bVENEiRegisterPartyService.setListeners(List<Oadr20bVENEiRegisterPartyServiceListener> listeners)
focal_class.full_signature: private void setListeners(List<Oadr20bVENEiRegisterPartyServiceListener> listeners)
focal_class.identifier: setListeners
focal_class.modifiers: private
focal_class.parameters: (List<Oadr20bVENEiRegisterPartyServiceListener> listeners)
focal_class.return: void
focal_class.signature: void setListeners(List<Oadr20bVENEiRegisterPartyServiceListener> listeners)
focal_method.body: public OadrCanceledPartyRegistrationType oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType) {
  
  		String venID = oadrCancelPartyRegistrationType.getVenID();
  
  		String requestID = oadrCancelPartyRegistrationType.getRequestID();
  		String registrationID = oadrCancelPartyRegistrationType.getRegistrationID();
  		int responseCode = HttpStatus.OK_200;
  		if (getRegistration(vtnConfiguration).getRegistrationID().equals(registrationID)) {
  			clearRegistration(vtnConfiguration);
  			oadrPollService.cancelHttpScheduledPullRequestTask(vtnConfiguration, false);
  		} else {
  			responseCode = Oadr20bApplicationLayerErrorCode.INVALID_ID_452;
  		}
  
  		return Oadr20bEiRegisterPartyBuilders.newOadr20bCanceledPartyRegistrationBuilder(
  				Oadr20bResponseBuilders.newOadr20bEiResponseBuilder(requestID, responseCode).build(), registrationID,
  				venID).build();
  	}
focal_method.class_method_signature: Oadr20bVENEiRegisterPartyService.oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_method.full_signature: public OadrCanceledPartyRegistrationType oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_method.identifier: oadrCancelPartyRegistration
focal_method.invocations: getVenID getRequestID getRegistrationID equals getRegistrationID getRegistration clearRegistration cancelHttpScheduledPullRequestTask build newOadr20bCanceledPartyRegistrationBuilder build newOadr20bEiResponseBuilder
focal_method.modifiers: public
focal_method.parameters: (VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)
focal_method.return: OadrCanceledPartyRegistrationType
focal_method.signature: OadrCanceledPartyRegistrationType oadrCancelPartyRegistration(VtnSessionConfiguration vtnConfiguration,
  			OadrCancelPartyRegistrationType oadrCancelPartyRegistrationType)