@SchemaValidation(handler=eu.europa.ec.sfc2014.frontoffice.jws.SchemaValidationErrorHandler.class) public class IrrecoverableAmountsSfCfJwsImpl extends IrrecoverableAmountsJwsImpl<eu.europa.ec.sfc2014.frontoffice.model.domain.irrecoverableamounts.IrrecoverableAmountsVersionSfCf,SfcIrrecoverableAmountsVersionSfCfDTO,SfCfKey>
Constructor and Description |
---|
IrrecoverableAmountsSfCfJwsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion)
To be used when a EC user wants to accept a IRA version from the system.
|
SfcIrrecoverableAmountsVersionSfCfDTO |
create(SfcCciDTO cci,
java.lang.Short year)
To be used when a user wants to create a new Irrecoverable Amounts.
|
SfcIrrecoverableAmountsVersionSfCfDTO |
createNewVersion(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion)
To be used when a user wants to create a new version of IRA SfCf.
|
void |
delete(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion)
To be used when a user wants to delete a IRA version from the system.
|
SfcIrrecoverableAmountsVersionSfCfDTO |
partialSave(SfcIrrecoverableAmountsVersionSfCfDTO version) |
SfcIrrecoverableAmountsVersionSfCfDTO |
read(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion)
Returns a single IrrecoverableAmountsVersionSfCf for the given CCI and for the given version/workVersion.
|
SfcTableOfContentDTO |
readTableOfContent(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion,
java.lang.String locale) |
void |
returnForModificationByEC(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion,
java.lang.String reason)
To be used when a user wants to return the IRA version sent by the Member State/Region because it is incomplete or incorrect
and needs to be modified.
|
void |
returnForModificationByMemberState(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion,
java.lang.String reason)
To be used when a user wants to return the IRA version sent by the Member State/Region because it is incomplete or incorrect
and needs to be modified.
|
SfcIrrecoverableAmountsVersionSfCfDTO |
save(SfcIrrecoverableAmountsVersionSfCfDTO version)
Saves a IRA SfCf version.
|
SfcSearchResultDTO<SfcIrrecoverableAmountsVersionSfCfDTO> |
search(SfcIrrecoverableAmountsQueryDTO query)
Searches for IRA SfCf based on the given Criteria
The following example sort ascending based on cci and full version and returns the first 100 final results with CCI pattern 2014BE%
|
void |
send(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion)
To be used when a user is ready to send its recorded data on a IRA version to the Commission or to an upper Node.
|
java.util.List<SfcValidationResultsDTO> |
validate(SfcCciDTO cci,
java.lang.Integer year,
java.lang.Integer workVersion,
java.lang.String locale)
To be used to do an overall validation of the information related to a IRA version.
|
public SfcIrrecoverableAmountsVersionSfCfDTO createNewVersion(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
On success, a new version of the IRA has been created as a copy of the previous version, with a version number identical to the previous and a working version number incremented by one. Its status was set to 'Open'.
cci
- the cciversion
- the versionworkVersion
- the work versioneu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public SfcIrrecoverableAmountsVersionSfCfDTO create(SfcCciDTO cci, java.lang.Short year) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
When editing a version of a IrrecoverableAmounts, its status is 'Open', 'Ready to send' or 'Sent' at the level of the Member State and currently resides on the user's node.
cci
- year
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public SfcIrrecoverableAmountsVersionSfCfDTO read(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
This method returns the (last)IrrecoverableAmountsSfCf object when found. In case nothing could be found in the SFC2014 database (or the user doesn't have the right permission) an empty response is returned. Example Call :
<cci>
<year>2014</year>
<targetArea>BE</targetArea>
<leadDg>65</leadDg>
<budgetSource>AM</budgetSource>
<objectSubType>NP</objectSubType>
<sequence>002</sequence>
</cci>
cci
- The mandatory cci for this IRA.year
- The year of the IRA. Can be null
.workVersion
- The workVersion of the IRA. Can be null
.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
- in case of errorpublic SfcTableOfContentDTO readTableOfContent(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion, java.lang.String locale) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- The mandatory cci for this IRAyear
- The year of the IRA. Can be null
.workVersion
- The workVersion of the IRA. Can be null
.locale
- The language of the Contents. Can be null
.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public SfcSearchResultDTO<SfcIrrecoverableAmountsVersionSfCfDTO> search(SfcIrrecoverableAmountsQueryDTO query) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
<query>
<!--Optional:-->
<resultRange>
<startIndex>0</startIndex>
<endIndex>99</endIndex>
</resultRange>
<!--Zero or more repetitions:-->
<sort>CCI</sort>
<sort>VERSION</sort>
<!--Zero or more repetitions:-->
<asc>true</asc>
<asc>true</asc>
<!--Optional:-->
<criteria>
<!--Optional:-->
<cci>2014BE</cci>
</criteria>
</query>
query
- SfcIrrecoverableAmountsQueryDTOeu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public SfcIrrecoverableAmountsVersionSfCfDTO save(SfcIrrecoverableAmountsVersionSfCfDTO version) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
The saving of a IRA version is not an official send. It just saves the data into the database. Then, once saved, the version can be validated, in order to check that it fulfils the business rules, and at last, once validated, it can be officially sent to the Commission.
The version may require several add-ons of non structured documents in order to be valid. These documents are not uploaded through this service, but through the DocumentService. The DocumentService may be involved between the creation and the validation phase.
The version argument must always be provided if not an SfcFaultException will be thrown.
version
- The IRA to save.eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public SfcIrrecoverableAmountsVersionSfCfDTO partialSave(SfcIrrecoverableAmountsVersionSfCfDTO version) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public java.util.List<SfcValidationResultsDTO> validate(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion, java.lang.String locale) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- year
- workVersion
- locale
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public void send(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- year
- workVersion
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public void returnForModificationByMemberState(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion, java.lang.String reason) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- year
- workVersion
- reason
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public void returnForModificationByEC(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion, java.lang.String reason) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- year
- workVersion
- reason
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public void delete(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- version
- workVersion
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
public void accept(SfcCciDTO cci, java.lang.Integer year, java.lang.Integer workVersion) throws eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
cci
- version
- workVersion
- eu.europa.ec.sfc2014.core.model.exceptions.SfcFaultException
Copyright © 2024. All rights reserved.