xsi:noNamespaceSchemaLocation="../../defs/technical-component-definition.xsd">
<name>core</name>
<description>Coeur Xemelios</description>
- <release>5.0.8.0</release>
+ <release>5.0.8.0+</release>
<url>http://xemelios.org/updatesV5/core</url>
<type>COMPOSANT</type>
<destination>
<component-ref url="http://xemelios.org/updatesV5/manifeste2" release="5.0.0.1" />
</requires>
<release-notes>
- <note>modification de la methode getDateValue pour eviter les conflits de dateformat entre les differents threads</note>
+ <note visibility="dev">FA-MiniFin-Xemelios-0811 : problème accès PJ paye</note>
+ <note visibility="dev">modification de la methode getDateValue pour eviter les conflits de dateformat entre les differents threads</note>
<release v="5.0.8.0">
<note visibility="dev">FA-MiniFin-Xemelios-0802 : PJ / VdP</note>
</release>
private void initialize() {
final String entryName = this.ze.getName();
final String sTmp = entryName.substring("PJ/".length());
- int pos = sTmp.lastIndexOf('/');
+ final int pos = sTmp.lastIndexOf('/');
if (pos < 0) {
this.valid = false;
return;
}
this.collectivite = sTmp.substring(0, pos);
this.fileName = sTmp.substring(pos + 1);
- pos = this.fileName.lastIndexOf('.');
- if (pos >= 0) {
- this.pjName = this.fileName.substring(0, pos);
- } else {
- this.pjName = this.fileName;
- }
+ this.pjName = generatePjNameFromFileName(this.fileName);
+
this.uncompressedSize = this.ze.getSize();
}
public void setPath(final String path) {
this.path = path;
}
+
+ public static String generatePjNameFromFileName(final String pjName) {
+ final int pos = pjName.lastIndexOf('.');
+ return (pos >= 0 ? pjName.substring(0, pos) : pjName);
+ }
}
* @throws DataAccessException
* @throws UnauthorizedException
*/
- public void registerBudgetCollectivite(DocumentModel dm, Pair codeBudget, Pair collectivite, Pair[] parentCollectivites, String docName, String archiveName, XemeliosUser user) throws DataConfigurationException, DataAccessException,
- UnauthorizedException;
+ public void registerBudgetCollectivite(DocumentModel dm, Pair codeBudget, Pair collectivite, Pair[] parentCollectivites, String docName, String archiveName, XemeliosUser user) throws DataConfigurationException, DataAccessException, UnauthorizedException;
/**
* Import a element. This method <strong>MUST</strong> handle correctly warnings.
* String
* originFileName
* ,
- */String archiveName, XemeliosUser user)
- throws DataConfigurationException, DataAccessException, UnauthorizedException;
+ */String archiveName, XemeliosUser user) throws DataConfigurationException, DataAccessException,
+ UnauthorizedException;
/**
* Save repository. Overwrite existing one if necessary.
* @throws DataConfigurationException
* @throws DataAccessException
*/
- public DataResultSet search(ElementModel elementModel, Pair collectivite, Pair budget, String xPath, ListeResultatModel lrm, Vector<CritereModel> models, XemeliosUser user) throws DataConfigurationException, DataAccessException,
- UnauthorizedException;
+ public DataResultSet search(ElementModel elementModel, Pair collectivite, Pair budget, String xPath, ListeResultatModel lrm, Vector<CritereModel> models, XemeliosUser user) throws DataConfigurationException, DataAccessException, UnauthorizedException;
/**
* Returns the list of available operators for the underlying implementation for the given datatype
* @return
* @throws DataConfigurationException
* @throws DataAccessException
- */
- public PJRef getPj(Pair collectivite, String pjRawId, XemeliosUser user) throws DataConfigurationException, DataAccessException, UnauthorizedException;
+ */
+ public PJRef getPj(Pair collectivite, PJRefInfo pjRefInfo, XemeliosUser user) throws DataConfigurationException, DataAccessException, UnauthorizedException;
/**
* This method retreives the content of a PJ as a byte array.
* @throws DataConfigurationException
* @throws DataAccessException
*/
- public ArrayList<String> getDocumentListFromXPath(ElementModel em, String collectivite, String budget, String sp1, String sp2, String sp3, String path, XemeliosUser user) throws DataConfigurationException, DataAccessException,
- UnauthorizedException, InvalidParameterException;
+ public ArrayList<String> getDocumentListFromXPath(ElementModel em, String collectivite, String budget, String sp1, String sp2, String sp3, String path, XemeliosUser user) throws DataConfigurationException, DataAccessException, UnauthorizedException, InvalidParameterException;
/**
* This method search the manifest that corresponding to this archiveName