Faxtomail-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- 1934 discussions
r144 - in trunk/faxtomail-ui-web/src/main/webapp: WEB-INF/content/admin js
by echatellier@users.forge.codelutin.com 06 Jun '14
by echatellier@users.forge.codelutin.com 06 Jun '14
06 Jun '14
Author: echatellier
Date: 2014-06-06 12:05:05 +0200 (Fri, 06 Jun 2014)
New Revision: 144
Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/144
Log:
Affichage des utilisateurs/groupes ayant d?\195?\169j?\195?\160 les droits sur les dossiers parents
Modified:
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 09:31:40 UTC (rev 143)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 10:05:05 UTC (rev 144)
@@ -491,7 +491,7 @@
</div>
<!-- Liste des emails expéditeur -->
- <div class="panel panel-default">
+ <div class="panel panel-default" ng-controller="ConfigurationRigthsController">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse4">
@@ -511,6 +511,34 @@
</tr>
</thead>
<tbody>
+ <tr ng-repeat="user in parentsWriteRightUsers">
+ <td>
+ <span class="glyphicon glyphicon-arrow-up"></span> <em>{{user.firstName}} {{user.lastName}}</em>
+ </td>
+ <td>
+ <label><input type="checkbox"> Lecture</label>
+ <label><input type="checkbox"> Écriture</label>
+ <label><input type="checkbox"> Déplacement</label>
+ </td>
+ <td>
+
+ </td>
+ </tr>
+ <tr ng-repeat="group in parentsWriteRightGroups">
+ <td>
+ <span class="glyphicon glyphicon-arrow-up"></span> <em>{{group.fullPath}}</em>
+ </td>
+ <td>
+ <label><input type="checkbox"> Lecture</label>
+ <label><input type="checkbox"> Écriture</label>
+ <label><input type="checkbox"> Déplacement</label>
+ </td>
+ <td>
+
+ </td>
+ </tr>
+ </tbody>
+ <tbody>
<tr ng-repeat="user in selectedMailFolder.writeRightUsers">
<td>
<span class="glyphicon glyphicon-user"></span> {{user.firstName}} {{user.lastName}}
Modified: trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js 2014-06-06 09:31:40 UTC (rev 143)
+++ trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js 2014-06-06 10:05:05 UTC (rev 144)
@@ -48,7 +48,7 @@
// method privée recursive pour retourner l'ensemble des dossiers en les modifiant pour ajouter
// des metadata (full path from root, and root node instance)
- var recursiveAddMailFolder = function(result, mailFolders, rootFolder, prefix) {
+ var recursiveAddMailFolder = function(result, mailFolders, rootFolder, prefix, parent) {
var cumulativeCount = 0;
if (mailFolders) {
angular.forEach(mailFolders, function(mailFolder) {
@@ -59,15 +59,16 @@
// ha la la, modify input object again :(
// use $ from this, even not recommended because angular exlude those fields when jsonify
mailFolder.$rootFolder = rootFolder;
-
- //
+ // encore pour le parent
+ mailFolder.$parent = parent;
+
var folderCount = 0;
if ($scope.mailFoldersUsage.hasOwnProperty(mailFolder.topiaId)) {
folderCount += $scope.mailFoldersUsage[mailFolder.topiaId];
}
result.push(mailFolder);
- folderCount += recursiveAddMailFolder(result, mailFolder.children, rootFolder, mailFolder.$fullPath);
+ folderCount += recursiveAddMailFolder(result, mailFolder.children, rootFolder, mailFolder.$fullPath, mailFolder);
// et on modifie encore (tant qu'on a commencé !!!)
mailFolder.$cumulativeCount = folderCount;
@@ -83,7 +84,7 @@
$scope.flatMailFolders = {};
angular.forEach($scope.mailFolders, function(mailFolder) {
$scope.flatMailFolders[mailFolder.topiaId] = [];
- var cumulativeCount = recursiveAddMailFolder($scope.flatMailFolders[mailFolder.topiaId], mailFolder.children, mailFolder, mailFolder.name);
+ var cumulativeCount = recursiveAddMailFolder($scope.flatMailFolders[mailFolder.topiaId], mailFolder.children, mailFolder, mailFolder.name, mailFolder);
mailFolder.$cumulativeCount = cumulativeCount;
});
};
@@ -226,10 +227,6 @@
*/
ConfigurationModule.controller('ConfigurationTreeController', ['$scope', '$window', 'ConfigurationData',
function($scope, $window, ConfigurationData) {
- // {Array} Users
- $scope.users = ConfigurationData.users;
- // {Array} Groups
- $scope.groups = ConfigurationData.groups;
// {Object} selected mail folder
$scope.selectedMailFolder;
// {String} add new customer responsible form value
@@ -306,12 +303,6 @@
if (!$scope.selectedMailFolder.folderTableColumns) {
$scope.selectedMailFolder.folderTableColumns = [];
}
- if (!$scope.selectedMailFolder.writeRightUsers) {
- $scope.selectedMailFolder.writeRightUsers = [];
- }
- if (!$scope.selectedMailFolder.writeRightGroups) {
- $scope.selectedMailFolder.writeRightGroups = [];
- }
if (!$scope.selectedMailFolder.etatAttente) {
$scope.selectedMailFolder.etatAttente = [];
}
@@ -383,6 +374,77 @@
$scope.selectedMailFolder.replyDomains.splice(index, 1);
};
+ // selection/deselection d'un état d'attente possible pour ce dossier
+ $scope.changeFolderEtatAttente = function(etatAttente) {
+ var index = $scope.selectedMailFolder.etatAttente.indexOf(etatAttente);
+ if (index != -1) {
+ $scope.selectedMailFolder.etatAttente.splice(index, 1);
+ } else {
+ $scope.selectedMailFolder.etatAttente.push(etatAttente);
+ }
+ };
+
+ // selection/deselection d'une action possible du menu contextuel pour ce dossier
+ $scope.changeFolderAction = function(folderAction) {
+ var index = $scope.selectedMailFolder.folderActions.indexOf(folderAction);
+ if (index != -1) {
+ $scope.selectedMailFolder.folderActions.splice(index, 1);
+ } else {
+ $scope.selectedMailFolder.folderActions.push(folderAction);
+ }
+ };
+}]);
+
+/**
+ * Right accordion tab controller.
+ */
+ConfigurationModule.controller('ConfigurationRigthsController', ['$scope', '$window', 'ConfigurationData',
+ function($scope, $window, ConfigurationData) {
+ // {Array} Users
+ $scope.users = ConfigurationData.users;
+ // {Array} Groups
+ $scope.groups = ConfigurationData.groups;
+
+ // {Array} Parent folders write right users
+ $scope.parentsWriteRightUsers;
+ // {Array} Parent folders write rigth groups
+ $scope.parentsWriteRightGroups;
+
+ // action specific aux droits pour l'editions d'un dossier
+ $scope.$watch("selectedMailFolder", function(newValue) {
+ if (newValue) {
+ if (!$scope.selectedMailFolder.writeRightUsers) {
+ $scope.selectedMailFolder.writeRightUsers = [];
+ }
+ if (!$scope.selectedMailFolder.writeRightGroups) {
+ $scope.selectedMailFolder.writeRightGroups = [];
+ }
+
+ // on exclut le dossier courant
+ updateParentFolderRigths($scope.selectedMailFolder.$parent);
+ }
+ });
+
+ // met à jour les listes des droits des dossiers parents
+ var updateParentFolderRigths = function(folder) {
+ $scope.parentsWriteRightUsers = [];
+ $scope.parentsWriteRightGroups = [];
+ recParentFolderRigths(folder);
+ };
+ var recParentFolderRigths = function(folder) {
+ if (folder) {
+ if (folder.$parent) {
+ recParentFolderRigths(folder.$parent);
+ };
+ if (folder.writeRightUsers) {
+ $scope.parentsWriteRightUsers = $scope.parentsWriteRightUsers.concat(folder.writeRightUsers);
+ }
+ if (folder.writeRightGroups) {
+ $scope.parentsWriteRightGroups = $scope.parentsWriteRightGroups.concat(folder.writeRightGroups);
+ }
+ }
+ };
+
// add reply address
$scope.addWriteRightUser = function() {
$scope.selectedMailFolder.writeRightUsers.push($scope.newWriteRightUser);
@@ -431,6 +493,7 @@
};
}]);
+
/**
* Mail filter tab controller.
*/
1
0
r143 - trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin
by echatellier@users.forge.codelutin.com 06 Jun '14
by echatellier@users.forge.codelutin.com 06 Jun '14
06 Jun '14
Author: echatellier
Date: 2014-06-06 11:31:40 +0200 (Fri, 06 Jun 2014)
New Revision: 143
Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/143
Log:
Redefinition des ?\195?\169tats d'attente pour un niveau
Modified:
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 09:16:16 UTC (rev 142)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 09:31:40 UTC (rev 143)
@@ -475,9 +475,16 @@
</div>
<div id="collapse3" class="panel-collapse collapse">
<div class="panel-body">
+ <label>
+ <input type="checkbox" ng-model="selectedMailFolder.useCurrentLevelEtatAttente" ng-value="false" />
+ Redéfinir les états d'attente à ce niveau.
+ </label>
+ Dans le cas contraires, les états d'attentes des dossiers parents seront pris en compte.
+ <hr />
<label class="checkbox" ng-repeat="etatAttente in etatAttentes">
<input type="checkbox" ng-checked="selectedMailFolder.etatAttente.indexOf(etatAttente) != -1"
- ng-click="changeFolderEtatAttente(etatAttente)"> {{etatAttente.label}}
+ ng-click="changeFolderEtatAttente(etatAttente)"
+ ng-disabled="!selectedMailFolder.useCurrentLevelEtatAttente"> {{etatAttente.label}}
</label>
</div>
</div>
1
0
r142 - in trunk: faxtomail-persistence/src/main/xmi faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/action/admin faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin faxtomail-ui-web/src/main/webapp/js
by echatellier@users.forge.codelutin.com 06 Jun '14
by echatellier@users.forge.codelutin.com 06 Jun '14
06 Jun '14
Author: echatellier
Date: 2014-06-06 11:16:16 +0200 (Fri, 06 Jun 2014)
New Revision: 142
Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/142
Log:
refs #4662: Manage write rigth for user and groups
Modified:
trunk/faxtomail-persistence/src/main/xmi/faxtomail.zargo
trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/InitFaxToMailService.java
trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/action/admin/ConfigurationAction.java
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js
Modified: trunk/faxtomail-persistence/src/main/xmi/faxtomail.zargo
===================================================================
(Binary files differ)
Modified: trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/InitFaxToMailService.java
===================================================================
--- trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/InitFaxToMailService.java 2014-06-06 08:10:52 UTC (rev 141)
+++ trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/InitFaxToMailService.java 2014-06-06 09:16:16 UTC (rev 142)
@@ -192,11 +192,23 @@
rangeDao.create(Range.PROPERTY_LABEL, "FSI FMI")
);
+ // user groups
+ FaxToMailUserGroupTopiaDao userGroupDao = getPersistenceContext().getFaxToMailUserGroupDao();
+ userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "Chargés de clientèle",
+ FaxToMailUserGroup.PROPERTY_FULL_PATH, "Franciaflex/Chargés de clientèle");
+ FaxToMailUserGroup commerciaux = userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "Commerciaux",
+ FaxToMailUserGroup.PROPERTY_FULL_PATH, "Franciaflex/Commerciaux");
+ userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "SAV",
+ FaxToMailUserGroup.PROPERTY_FULL_PATH, "Franciaflex/SAV");
+ userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "Administrateurs",
+ FaxToMailUserGroup.PROPERTY_FULL_PATH, "Franciaflex/Administrateurs");
+
FaxToMailUserTopiaDao userDao = getPersistenceContext().getFaxToMailUserDao();
FaxToMailUser marc = userDao.create(FaxToMailUser.PROPERTY_LAST_NAME, "Lefèbvre",
FaxToMailUser.PROPERTY_FIRST_NAME, "Marc",
FaxToMailUser.PROPERTY_LOGIN, "mlefebvre",
- FaxToMailUser.PROPERTY_TRIGRAPH, "MLE");
+ FaxToMailUser.PROPERTY_TRIGRAPH, "MLE",
+ FaxToMailUser.PROPERTY_FAX_TO_MAIL_USER_GROUP, Collections.singletonList(commerciaux));
FaxToMailUser cyril = userDao.create(FaxToMailUser.PROPERTY_LAST_NAME, "Baillet",
FaxToMailUser.PROPERTY_FIRST_NAME, "Cyril",
FaxToMailUser.PROPERTY_LOGIN, "cbaillet",
@@ -204,7 +216,8 @@
FaxToMailUser frederic = userDao.create(FaxToMailUser.PROPERTY_LAST_NAME, "Viala",
FaxToMailUser.PROPERTY_FIRST_NAME, "Frédéric",
FaxToMailUser.PROPERTY_LOGIN, "fviala",
- FaxToMailUser.PROPERTY_TRIGRAPH, "FVI");
+ FaxToMailUser.PROPERTY_TRIGRAPH, "FVI",
+ FaxToMailUser.PROPERTY_FAX_TO_MAIL_USER_GROUP, Collections.singletonList(commerciaux));
FaxToMailUser claire = userDao.create(FaxToMailUser.PROPERTY_LAST_NAME, "Marquis",
FaxToMailUser.PROPERTY_FIRST_NAME, "Claire",
FaxToMailUser.PROPERTY_LOGIN, "cmarquis",
@@ -216,7 +229,8 @@
FaxToMailUser jeanne = userDao.create(FaxToMailUser.PROPERTY_LAST_NAME, "Bourgoin",
FaxToMailUser.PROPERTY_FIRST_NAME, "Jeanne",
FaxToMailUser.PROPERTY_LOGIN, "jbourgoin",
- FaxToMailUser.PROPERTY_TRIGRAPH, "JBO");
+ FaxToMailUser.PROPERTY_TRIGRAPH, "JBO",
+ FaxToMailUser.PROPERTY_FAX_TO_MAIL_USER_GROUP, Collections.singletonList(commerciaux));
MailFolderTopiaDao folderDao = getPersistenceContext().getMailFolderDao();
Map<String, MailFolder> folders = new HashMap<>();
@@ -308,13 +322,6 @@
log.error("error getting the email filters", e);
}
- // user groups
- FaxToMailUserGroupTopiaDao userGroupDao = getPersistenceContext().getFaxToMailUserGroupDao();
- userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "Chargés de clientèle");
- userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "Commerciaux");
- userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "SAV");
- userGroupDao.create(FaxToMailUserGroup.PROPERTY_NAME, "Administrateurs");
-
// clients and emails
File clientFile = new File(demoDirectory, "fx_clients.csv");
try {
Modified: trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/action/admin/ConfigurationAction.java
===================================================================
--- trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/action/admin/ConfigurationAction.java 2014-06-06 08:10:52 UTC (rev 141)
+++ trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/action/admin/ConfigurationAction.java 2014-06-06 09:16:16 UTC (rev 142)
@@ -39,11 +39,12 @@
import com.franciaflex.faxtomail.persistence.entities.EmailProtocol;
import com.franciaflex.faxtomail.persistence.entities.EtatAttente;
import com.franciaflex.faxtomail.persistence.entities.FaxToMailUser;
+import com.franciaflex.faxtomail.persistence.entities.FaxToMailUserGroup;
import com.franciaflex.faxtomail.persistence.entities.FolderAction;
+import com.franciaflex.faxtomail.persistence.entities.MailAction;
import com.franciaflex.faxtomail.persistence.entities.MailField;
import com.franciaflex.faxtomail.persistence.entities.MailFilter;
import com.franciaflex.faxtomail.persistence.entities.MailFolder;
-import com.franciaflex.faxtomail.persistence.entities.MailAction;
import com.franciaflex.faxtomail.services.service.ConfigurationService;
import com.franciaflex.faxtomail.services.service.MailFolderService;
import com.franciaflex.faxtomail.services.service.ReferentielService;
@@ -77,10 +78,12 @@
protected List<MailFilter> mailFilters;
- protected List<FaxToMailUser> users;
-
protected List<EmailAccount> emailAccounts;
+ protected List<FaxToMailUser> users;
+
+ protected List<FaxToMailUserGroup> groups;
+
@Override
public void prepare() throws Exception {
@@ -93,10 +96,11 @@
demandTypes = referentielService.getAllDemandType();
mailFolders = mailFolderService.getRootMailFolders();
mailFoldersUsage = mailFolderService.getMailFoldersUsage();
- users = configurationService.getAllUsers();
emailAccounts = configurationService.getEmailAccounts();
mailFilters = configurationService.getMailFilters();
configuration = configurationService.getConfiguration();
+ users = configurationService.getAllUsers();
+ groups = configurationService.getAllGroups();
return INPUT;
}
@@ -162,11 +166,7 @@
Type type = new TypeToken<List<MailFolder>>() {}.getType();
this.mailFolders = getGson().fromJson(json, type);
}
-
- public List<FaxToMailUser> getUsers() {
- return users;
- }
-
+
public List<MailFilter> getMailFilters() {
return mailFilters;
}
@@ -189,6 +189,14 @@
this.emailAccounts = getGson().fromJson(json, type);
}
+ public List<FaxToMailUser> getUsers() {
+ return users;
+ }
+
+ public List<FaxToMailUserGroup> getGroups() {
+ return groups;
+ }
+
public Map<MailAction, String> getMailActions() {
return getEnumAsMap(MailAction.values());
}
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 08:10:52 UTC (rev 141)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 09:16:16 UTC (rev 142)
@@ -46,9 +46,11 @@
'mailFolders': <s:property value="toJson(mailFolders)" escapeHtml="false"/>,
'mailFoldersUsage': <s:property value="toJson(mailFoldersUsage)" escapeHtml="false"/>,
'searchDisplayColumns': <s:property value="toJson(configuration.searchDisplayColumns)" escapeHtml="false"/>,
+ 'mailFilters': <s:property value="toJson(mailFilters)" escapeHtml="false"/>,
+ 'emailAccounts': <s:property value="toJson(emailAccounts)" escapeHtml="false"/>,
+ // referentiels
'users': <s:property value="toJson(users)" escapeHtml="false"/>,
- 'mailFilters': <s:property value="toJson(mailFilters)" escapeHtml="false"/>,
- 'emailAccounts': <s:property value="toJson(emailAccounts)" escapeHtml="false"/>
+ 'groups': <s:property value="toJson(groups)" escapeHtml="false"/>
});
</script>
</head>
@@ -497,17 +499,19 @@
<thead>
<tr>
<th>Utilisateur ou groupe</th>
- <th>Type</th>
+ <th>Droits</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in selectedMailFolder.writeRightUsers">
<td>
- {{user.firstName}} {{user.lastName}}
+ <span class="glyphicon glyphicon-user"></span> {{user.firstName}} {{user.lastName}}
</td>
<td>
- Ecriture
+ <label><input type="checkbox"> Lecture</label>
+ <label><input type="checkbox"> Écriture</label>
+ <label><input type="checkbox"> Déplacement</label>
</td>
<td>
<a class="pull-right btn btn-danger btn-xs" ng-click="removeWriteRightUser($index)">
@@ -515,6 +519,21 @@
</a>
</td>
</tr>
+ <tr ng-repeat="group in selectedMailFolder.writeRightGroups">
+ <td>
+ <span class="glyphicon glyphicon-folder-open"></span> {{group.fullPath}}
+ </td>
+ <td>
+ <label><input type="checkbox"> Lecture</label>
+ <label><input type="checkbox"> Écriture</label>
+ <label><input type="checkbox"> Déplacement</label>
+ </td>
+ <td>
+ <a class="pull-right btn btn-danger btn-xs" ng-click="removeWriteRightGroup($index)">
+ <span class="glyphicon glyphicon-remove"></span>
+ </a>
+ </td>
+ </tr>
</tbody>
</table>
@@ -528,10 +547,10 @@
<div class="form-group">
Nouveau groupe :
- <select ng-model="newWriteAccessGroup" ng-options="groupName for groupName in groupNames">
+ <select ng-model="newWriteRightGroup" ng-options="group as group.fullPath for group in groups">
<option></option>
</select>
- <a class="btn btn-success btn-xs" ng-click="addReplyAddress()" ng-disabled="!newWriteAccessGroup">
+ <a class="btn btn-success btn-xs" ng-click="addWriteRightGroup()" ng-disabled="!newWriteRightGroup">
<span class="glyphicon glyphicon-ok"></span>
</a>
</div>
Modified: trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js 2014-06-06 08:10:52 UTC (rev 141)
+++ trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js 2014-06-06 09:16:16 UTC (rev 142)
@@ -228,6 +228,8 @@
function($scope, $window, ConfigurationData) {
// {Array} Users
$scope.users = ConfigurationData.users;
+ // {Array} Groups
+ $scope.groups = ConfigurationData.groups;
// {Object} selected mail folder
$scope.selectedMailFolder;
// {String} add new customer responsible form value
@@ -307,6 +309,12 @@
if (!$scope.selectedMailFolder.writeRightUsers) {
$scope.selectedMailFolder.writeRightUsers = [];
}
+ if (!$scope.selectedMailFolder.writeRightGroups) {
+ $scope.selectedMailFolder.writeRightGroups = [];
+ }
+ if (!$scope.selectedMailFolder.etatAttente) {
+ $scope.selectedMailFolder.etatAttente = [];
+ }
// initialise la liste des colonnes pour le dossier courant
$scope.folderTableColumns = [];
@@ -383,9 +391,25 @@
// remove customer responsible
$scope.removeWriteRightUser = function(index) {
- $scope.selectedMailFolder.writeRightUsers.splice(index, 1);
+ if ($window.confirm("Êtes-vous sur de vouloir supprimer les droits de cet utilisateur ?")) {
+ $scope.selectedMailFolder.writeRightUsers.splice(index, 1);
+ }
};
+
+ // add reply address
+ $scope.addWriteRightGroup = function() {
+ console.log("dd")
+ $scope.selectedMailFolder.writeRightGroups.push($scope.newWriteRightGroup);
+ delete $scope.newWriteRightGroup;
+ };
+ // remove customer responsible
+ $scope.removeWriteRightGroup = function(index) {
+ if ($window.confirm("Êtes-vous sur de vouloir supprimer les droits de ce groupe ?")) {
+ $scope.selectedMailFolder.writeRightGroups.splice(index, 1);
+ }
+ };
+
// selection/deselection d'un état d'attente possible pour ce dossier
$scope.changeFolderEtatAttente = function(etatAttente) {
var index = $scope.selectedMailFolder.etatAttente.indexOf(etatAttente);
1
0
r141 - in trunk/faxtomail-ui-web/src/main/webapp: WEB-INF/content/admin js
by echatellier@users.forge.codelutin.com 06 Jun '14
by echatellier@users.forge.codelutin.com 06 Jun '14
06 Jun '14
Author: echatellier
Date: 2014-06-06 10:10:52 +0200 (Fri, 06 Jun 2014)
New Revision: 141
Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/141
Log:
refs #4662: Extension automatique du noeud parent lors de l'ajout. Edition automatique du nouveau noeud ajout?\195?\169.
Modified:
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 07:56:32 UTC (rev 140)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 08:10:52 UTC (rev 141)
@@ -206,11 +206,11 @@
<div class="col-md-4">
<h3>Dossiers <a class="btn btn-xs btn-success pull-right" ng-click="newRoot()">Nouveau</a></h3>
<script type="text/ng-template" id="nodes_renderer.html">
- <div ui-tree-handle ng-click="editMailFolder(mailFolder)" ng-class="{'bg-success' : mailFolder == selectedMailFolder}">
+ <div ui-tree-handle ng-class="{'bg-success' : mailFolder == selectedMailFolder}">
<a class="btn btn-success btn-xs" data-nodrag ng-click="toggle(this)" ng-disabled="!mailFolder.children || mailFolder.children.length == 0">
<span class="glyphicon" ng-class="{'glyphicon-chevron-right': !collapsed, 'glyphicon-chevron-down': collapsed}"></span>
</a>
- {{mailFolder.name}} <span class="badge">{{mailFolder.$cumulativeCount}}</span>
+ <a ng-click="editMailFolder(mailFolder)">{{mailFolder.name}} <span class="badge">{{mailFolder.$cumulativeCount}}</span></a>
<a class="pull-right btn btn-primary btn-xs" data-nodrag ng-click="newSubFolder(this)" style="margin-left: 8px;"><span class="glyphicon glyphicon-plus"></span></a>
<a class="pull-right btn btn-danger btn-xs" data-nodrag ng-click="deleteFolder(this)" ng-disabled="mailFolder.$cumulativeCount > 0"
tooltip="{{mailFolder.$cumulativeCount > 0 && 'Ce dossier contient ' + mailFolder.$cumulativeCount + ' demandes !'|| 'Supprimer ce dossier'}}">
Modified: trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js 2014-06-06 07:56:32 UTC (rev 140)
+++ trunk/faxtomail-ui-web/src/main/webapp/js/configuration.js 2014-06-06 08:10:52 UTC (rev 141)
@@ -27,8 +27,8 @@
/**
* Global configuration controller.
*/
-ConfigurationModule.controller('ConfigurationController', ['$scope', '$http', 'ConfigurationData',
- function($scope, $http, ConfigurationData) {
+ConfigurationModule.controller('ConfigurationController', ['$scope', 'ConfigurationData',
+ function($scope, ConfigurationData) {
//{Map} les actions possibles pour les etats d'attentes
$scope.mailActions = ConfigurationData.mailActions;
//{Map} les champs obligatoires possibles
@@ -93,8 +93,8 @@
/**
* Misc tab controller.
*/
-ConfigurationModule.controller('ConfigurationMiscController', ['$scope', '$http', '$window', 'ConfigurationData',
- function($scope, $http, $window, ConfigurationData) {
+ConfigurationModule.controller('ConfigurationMiscController', ['$scope', '$window', 'ConfigurationData',
+ function($scope, $window, ConfigurationData) {
//{Object} L'object configuration
$scope.configuration = ConfigurationData.configuration;
@@ -117,8 +117,8 @@
/**
* Etat attente tab controller.
*/
-ConfigurationModule.controller('ConfigurationEtatAttenteController', ['$scope', '$http', '$window', 'ConfigurationData',
- function($scope, $http, $window, ConfigurationData) {
+ConfigurationModule.controller('ConfigurationEtatAttenteController', ['$scope', '$window', 'ConfigurationData',
+ function($scope, $window, ConfigurationData) {
//{Object} etat d'attente selectionné
$scope.selectedEtatAttente;
@@ -177,8 +177,8 @@
/**
* Demand type tab controller.
*/
-ConfigurationModule.controller('ConfigurationDemandTypeController', ['$scope', '$http', '$window', 'ConfigurationData',
- function($scope, $http, $window, ConfigurationData) {
+ConfigurationModule.controller('ConfigurationDemandTypeController', ['$scope', '$window', 'ConfigurationData',
+ function($scope, $window, ConfigurationData) {
//{Object} demand type selectionné
$scope.selectedDemandType;
@@ -261,12 +261,19 @@
var nodeData = scope.$modelValue;
var name = $window.prompt("Nom du nouveau noeud ? ");
if (name) {
- nodeData.children.push({
- topiaId: "new_" + guid(),
- name: name,
- children: []
- });
- $scope._updateFlatMailFolders(); // update flat map
+ var newNode = {
+ topiaId: "new_" + guid(),
+ name: name,
+ children: []
+ };
+ // extend node (in faxtomail collapsed = extended)
+ scope.collapse();
+ // append new node
+ nodeData.children.push(newNode);
+ // edition automatique
+ $scope.editMailFolder(newNode);
+ // update flat map
+ $scope._updateFlatMailFolders();
}
};
1
0
r140 - in trunk: . faxtomail-ui-web faxtomail-ui-web/src/main/resources faxtomail-ui-web/src/main/webapp/WEB-INF faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin faxtomail-ui-web/src/main/webapp/WEB-INF/decorators
by echatellier@users.forge.codelutin.com 06 Jun '14
by echatellier@users.forge.codelutin.com 06 Jun '14
06 Jun '14
Author: echatellier
Date: 2014-06-06 09:56:32 +0200 (Fri, 06 Jun 2014)
New Revision: 140
Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/140
Log:
Switch to wro
Added:
trunk/faxtomail-ui-web/src/main/resources/nuiton-js.properties
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/wro.xml
Modified:
trunk/faxtomail-ui-web/pom.xml
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/import-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/ldap-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/user-folder-input.jsp
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/decorators/layout.jsp
trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/web.xml
trunk/pom.xml
Modified: trunk/faxtomail-ui-web/pom.xml
===================================================================
--- trunk/faxtomail-ui-web/pom.xml 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/pom.xml 2014-06-06 07:56:32 UTC (rev 140)
@@ -212,12 +212,13 @@
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
</dependency>
-
+
<dependency>
- <groupId>org.webjars</groupId>
- <artifactId>angularjs</artifactId>
+ <groupId>org.nuiton.js</groupId>
+ <artifactId>nuiton-js-wro</artifactId>
</dependency>
+
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
@@ -234,7 +235,12 @@
</dependency>
<dependency>
+ <artifactId>nuiton-js-angularjs</artifactId>
<groupId>org.nuiton.js</groupId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.js</groupId>
<artifactId>nuiton-js-angular-ui-tree</artifactId>
</dependency>
@@ -245,11 +251,6 @@
<dependency>
<groupId>org.webjars</groupId>
- <artifactId>angular-ui-utils</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.webjars</groupId>
<artifactId>angular-ui-sortable</artifactId>
</dependency>
</dependencies>
@@ -284,7 +285,7 @@
<goal>parserStruts2</goal>
</goals>
<configuration>
- <acceptKeyFormat>^extranetEncAhi\..*$</acceptKeyFormat>
+ <acceptKeyFormat>^faxtomail\..*$</acceptKeyFormat>
</configuration>
</execution>
<execution>
Added: trunk/faxtomail-ui-web/src/main/resources/nuiton-js.properties
===================================================================
--- trunk/faxtomail-ui-web/src/main/resources/nuiton-js.properties (rev 0)
+++ trunk/faxtomail-ui-web/src/main/resources/nuiton-js.properties 2014-06-06 07:56:32 UTC (rev 140)
@@ -0,0 +1,10 @@
+
+# dev
+disableCache=true
+minimize=false
+#preProcessors=forceCssDataUri,cssUrlRewriting,cssImport,semicolonAppender
+#postProcessors=cssVariables
+
+# prod
+#disableCache=false
+#minimize=true
Property changes on: trunk/faxtomail-ui-web/src/main/resources/nuiton-js.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/configuration-input.jsp 2014-06-06 07:56:32 UTC (rev 140)
@@ -29,21 +29,9 @@
<head>
<title>Configuration</title>
- <link rel="stylesheet" type="text/css" href="<s:url value='/webjars/select2/3.4.8/select2.css' />" />
- <link rel="stylesheet" type="text/css" href="<s:url value='/nuiton-js-angular-ui-tree/angular-ui-tree.css' />" />
- <script type="text/javascript" src="<s:url value='/webjars/select2/3.4.8/select2.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/select2/3.4.8/select2_locale_fr.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angularjs/1.2.16/angular.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/js/select2sortable.js' />"></script>
- <script type="text/javascript" src="<s:url value='/nuiton-js-angular-ui-tree/angular-ui-tree.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angular-ui-sortable/0.12.2/sortable.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angular-ui-bootstrap/0.11.0/ui-bootstrap.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.min.js' />"></script>
+ <link rel="stylesheet" type="text/css" href="<s:url value='/nuiton-js/faxtomail-configuration.css' />" />
+ <script type="text/javascript" src="<s:url value='/nuiton-js/faxtomail-configuration.js' />"></script>
- <link rel="stylesheet" type="text/css" href="<s:url value='/css/faxtomail.css' />" />
- <script type="text/javascript" src="<s:url value='/js/faxtomail.js' />"></script>
- <script type="text/javascript" src="<s:url value='/js/configuration.js' />"></script>
-
<script type="text/javascript">
ConfigurationModule.value('ConfigurationData', {
// enums
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/import-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/import-input.jsp 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/import-input.jsp 2014-06-06 07:56:32 UTC (rev 140)
@@ -28,7 +28,6 @@
<html>
<head>
<title>Import</title>
- <link rel="stylesheet" type="text/css" href="<s:url value='/css/faxtomail.css' />" />
</head>
<body>
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/ldap-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/ldap-input.jsp 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/ldap-input.jsp 2014-06-06 07:56:32 UTC (rev 140)
@@ -28,7 +28,6 @@
<html>
<head>
<title>Ldap</title>
- <link rel="stylesheet" type="text/css" href="<s:url value='/css/faxtomail.css' />" />
</head>
<body>
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/user-folder-input.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/user-folder-input.jsp 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/content/admin/user-folder-input.jsp 2014-06-06 07:56:32 UTC (rev 140)
@@ -29,18 +29,9 @@
<head>
<title>Dossiers mis en avant par utilisateur</title>
- <link rel="stylesheet" type="text/css" href="<s:url value='/webjars/select2/3.4.8/select2.css' />" />
- <script type="text/javascript" src="<s:url value='/webjars/select2/3.4.8/select2.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/select2/3.4.8/select2_locale_fr.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angularjs/1.2.16/angular.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/js/select2sortable.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angular-ui-bootstrap/0.11.0/ui-bootstrap.min.js' />"></script>
- <script type="text/javascript" src="<s:url value='/webjars/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.min.js' />"></script>
+ <link rel="stylesheet" type="text/css" href="<s:url value='/nuiton-js/faxtomail-user-folder.css' />" />
+ <script type="text/javascript" src="<s:url value='/nuiton-js/faxtomail-user-folder.js' />"></script>
- <link rel="stylesheet" type="text/css" href="<s:url value='/css/faxtomail.css' />" />
- <script type="text/javascript" src="<s:url value='/js/faxtomail.js' />"></script>
- <script type="text/javascript" src="<s:url value='/js/user-folder.js' />"></script>
-
<script type="text/javascript">
UserFolderModule.value('UserFolderData', {
'mailFolders': <s:property value="toJson(mailFolders)" escapeHtml="false"/>,
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/decorators/layout.jsp
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/decorators/layout.jsp 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/decorators/layout.jsp 2014-06-06 07:56:32 UTC (rev 140)
@@ -33,6 +33,8 @@
<title>FaxToMail : <decorator:title default="FaxToMail"/></title>
<sj:head locale="fr" jqueryui="true" loadAtOnce='true' jquerytheme="start" />
<sb:head />
+ <link rel="stylesheet" type="text/css" href="<s:url value='/nuiton-js/faxtomail.css' />" />
+ <script type="text/javascript" src="<s:url value='/nuiton-js/faxtomail.js' />"></script>
<decorator:head/>
</head>
Modified: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/web.xml 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/web.xml 2014-06-06 07:56:32 UTC (rev 140)
@@ -22,39 +22,17 @@
<http://www.gnu.org/licenses/gpl-3.0.html>.
#L%
-->
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0">
-
-<web-app version="2.5"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- metadata-complete="true">
-
<display-name>FaxToMail ${project.version}</display-name>
<session-config>
<session-timeout>600</session-timeout>
</session-config>
- <!-- prevent excessive caching of js files
<filter>
- <filter-name>ExpiresFilter</filter-name>
- <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
- <init-param>
- <param-name>ExpiresByType image</param-name>
- <param-value>access plus 10 minutes</param-value>
- </init-param>
- <init-param>
- <param-name>ExpiresByType text/css</param-name>
- <param-value>access plus 10 minutes</param-value>
- </init-param>
- <init-param>
- <param-name>ExpiresByType application/javascript</param-name>
- <param-value>access plus 10 minutes</param-value>
- </init-param>
- </filter> -->
-
- <filter>
<filter-name>struts-prepare</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
</filter>
@@ -89,10 +67,4 @@
<listener-class>com.franciaflex.faxtomail.web.FaxToMailApplicationListener</listener-class>
</listener>
- <!-- <filter-mapping>
- <filter-name>ExpiresFilter</filter-name>
- <url-pattern>/*</url-pattern>
- <dispatcher>REQUEST</dispatcher>
- </filter-mapping> -->
-
</web-app>
Added: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/wro.xml
===================================================================
--- trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/wro.xml (rev 0)
+++ trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/wro.xml 2014-06-06 07:56:32 UTC (rev 140)
@@ -0,0 +1,50 @@
+<groups xmlns="http://www.isdc.ro/wro">
+
+ <group name='webjar-select2' abstract="true">
+ <css>classpath:META-INF/resources/webjars/select2/3.4.8/select2.css</css>
+ <js>classpath:META-INF/resources/webjars/select2/3.4.8/select2.js</js>
+ <js>classpath:META-INF/resources/webjars/select2/3.4.8/select2_locale_fr.js</js>
+ </group>
+
+ <group name='webjar-angular-ui-sortable' abstract="true">
+ <group-ref>angular</group-ref>
+ <js>classpath:META-INF/resources/webjars/angular-ui-sortable/0.12.2/sortable.min.js</js>
+ </group>
+
+ <group name='webjar-angular-ui-bootstrap' abstract="true">
+ <!-- do not include bootstrap here : done by struts -->
+ <group-ref>angular</group-ref>
+ <js>classpath:META-INF/resources/webjars/angular-ui-bootstrap/0.11.0/ui-bootstrap.js</js>
+ <js>classpath:META-INF/resources/webjars/angular-ui-bootstrap/0.11.0/ui-bootstrap-tpls.js</js>
+ </group>
+
+ <group name='select2sortable' abstract="true">
+ <group-ref>angular</group-ref>
+ <group-ref>webjar-select2</group-ref>
+ <js>/js/select2sortable.js</js>
+ </group>
+
+
+
+
+
+ <group name='faxtomail'>
+ <group-ref>angular</group-ref>
+ <group-ref>webjar-angular-ui-bootstrap</group-ref>
+ <js>/js/faxtomail.js</js>
+ </group>
+
+ <group name='faxtomail-configuration'>
+ <group-ref>select2sortable</group-ref>
+ <group-ref>webjar-angular-ui-sortable</group-ref>
+ <group-ref>angular-ui-tree</group-ref>
+ <js>/js/configuration.js</js>
+ <css>/css/faxtomail.css</css>
+ </group>
+
+ <group name='faxtomail-user-folder'>
+ <group-ref>select2sortable</group-ref>
+ <js>/js/user-folder.js</js>
+ <css>/css/faxtomail.css</css>
+ </group>
+</groups>
\ No newline at end of file
Property changes on: trunk/faxtomail-ui-web/src/main/webapp/WEB-INF/wro.xml
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-06-05 16:43:31 UTC (rev 139)
+++ trunk/pom.xml 2014-06-06 07:56:32 UTC (rev 140)
@@ -514,19 +514,32 @@
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
-
+
<dependency>
- <groupId>org.webjars</groupId>
- <artifactId>angularjs</artifactId>
- <version>1.2.16-2</version>
+ <groupId>org.nuiton.js</groupId>
+ <artifactId>nuiton-js-wro</artifactId>
+ <version>1.0.2</version>
<scope>runtime</scope>
</dependency>
+
+ <dependency>
+ <groupId>ro.isdc.wro4j</groupId>
+ <artifactId>wro4j-core</artifactId>
+ <version>1.7.5</version>
+ <scope>runtime</scope>
+ </dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>angular-ui-utils</artifactId>
<version>0.1.1</version>
<scope>runtime</scope>
+ <exclusions>
+ <exclusion>
+ <artifactId>angularjs</artifactId>
+ <groupId>org.webjars</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
@@ -541,6 +554,12 @@
<artifactId>angular-ui-bootstrap</artifactId>
<version>0.11.0-2</version>
<scope>runtime</scope>
+ <exclusions>
+ <exclusion>
+ <artifactId>angularjs</artifactId>
+ <groupId>org.webjars</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
@@ -565,7 +584,14 @@
</dependency>
<dependency>
+ <artifactId>nuiton-js-angularjs</artifactId>
<groupId>org.nuiton.js</groupId>
+ <version>1.2.16-1</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.js</groupId>
<artifactId>nuiton-js-angular-ui-tree</artifactId>
<version>2.1.4-1</version>
<scope>runtime</scope>
1
0
05 Jun '14
See <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/42/changes>
Changes:
[echatellier] refs #4662: Import des utilisateurs et groupes depuis le serveur LDAP
[echatellier] Refactoring des actions et actions contextuelles.
[echatellier] Correction d'une erreur sur la gestion des pieces jointes lors de la reception des mails.
------------------------------------------
[...truncated 256 lines...]
[INFO]
[INFO] --- eugene-maven-plugin:2.9:generate (generate-entities) @ faxtomail-persistence ---
[INFO] Process phase [zargo]
[INFO] No file generated.
[INFO] Process phase [xmi]
[INFO] No file generated.
[INFO] Process phase [model]
WARN [pool-1-thread-1 for channel] (AbstractObjectModelReader.java:438) loadTagValue - Invalid tag value [com.franciaflex.faxtomail.persistence.entities.MailFilter.attribute.position.tagvalue.unique] : this tagvalue 'unique' is unknown.
[INFO] Process phase [generator]
[INFO] Apply generator JavaInterfaceTransformer
[INFO] Apply generator TopiaMetaTransformer
[INFO] No file generated.
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ faxtomail-persistence <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ faxtomail-persistence ---
[INFO] Building jar: <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…>
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ faxtomail-persistence ---
[INFO] Building jar: <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…>
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ faxtomail-persistence ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-pgp-passphrase) @ faxtomail-persistence ---
[INFO] Exporting server [gpg-signer] username in ${gpg.keyname}
[INFO] Exporting server [gpg-signer] password in ${gpg.passphrase}
[INFO]
[INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-artifacts) @ faxtomail-persistence ---
[INFO] Loaded <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/target/colle…>
[INFO] Copying faxtomail-persistence-0.1-SNAPSHOT.jar to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/target/colle…>
[INFO] Copying THIRD-PARTY.properties to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/target/colle…>
[INFO] Copying faxtomail-persistence-0.1-SNAPSHOT-sources.jar to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/target/colle…>
[INFO] Copying faxtomail-persistence-0.1-SNAPSHOT-javadoc.jar to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/target/colle…>
[INFO]
[INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-attachements) @ faxtomail-persistence ---
[WARNING] Skipping goal (No file to collect).
[INFO]
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ faxtomail-persistence ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (analyze) @ faxtomail-persistence ---
[INFO] Used declared dependencies found:
[INFO] org.nuiton.topia:topia-persistence:jar:3.0-SNAPSHOT:compile
[INFO] org.hibernate:hibernate-core:jar:4.3.5.Final:compile
[INFO] org.nuiton:nuiton-utils:jar:3.0-SNAPSHOT:compile
[INFO] org.nuiton:nuiton-config:jar:3.0-alpha-2:compile
[INFO] org.nuiton:nuiton-updater:jar:3.0-alpha-2:compile
[INFO] org.nuiton.jaxx:jaxx-application-api:jar:2.8.6:compile
[INFO] org.nuiton.i18n:nuiton-i18n:jar:3.1:compile
[INFO] com.google.guava:guava:jar:17.0:compile
[INFO] org.apache.commons:commons-collections4:jar:4.0:compile
[INFO] org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO] commons-io:commons-io:jar:2.4:compile
[INFO] commons-logging:commons-logging:jar:1.1.3:compile
[INFO] org.swinglabs.swingx:swingx-common:jar:1.6.4:compile
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ faxtomail-persistence ---
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT.jar
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT.pom
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT-third-party.properties
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT-sources.jar
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT-javadoc.jar
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT.jar.asc
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT.pom.asc
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT-third-party.properties.asc
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT-sources.jar.asc
[INFO] Installing <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-pe…> to /var/local/forge/data/codelutin.com/maven/repository/com/franciaflex/faxtomail/faxtomail-persistence/0.1-SNAPSHOT/faxtomail-persistence-0.1-SNAPSHOT-javadoc.jar.asc
[JENKINS] Archiving disabled
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FaxToMail :: Service 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ faxtomail-service ---
[INFO] Deleting <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ensure-no-container-api) @ faxtomail-service ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ faxtomail-service ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-redmine-login) @ faxtomail-service ---
[INFO] Exporting server [redmine-forge.codelutin.com] privateKey in ${redmine.apiKey}
[INFO]
[INFO] --- license-maven-plugin:1.7:update-project-license (attach-licenses) @ faxtomail-service ---
[INFO]
[INFO] --- license-maven-plugin:1.7:add-third-party (attach-licenses) @ faxtomail-service ---
[INFO] Load missing file <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] Missing file <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…> is up-to-date.
[INFO] Writing third-party file to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] Will attach third party file from <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO]
[INFO] --- license-maven-plugin:1.7:update-file-header (update-file-header-on-pom) @ faxtomail-service ---
[INFO] Will search files to update from root <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] Scan 1 file header done in 2.322ms.
[INFO] All files are up-to-date.
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserJava (scan-sources) @ faxtomail-service ---
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserValidation (scan-sources) @ faxtomail-service ---
[INFO] Load rules file validation.rules
[INFO]
[INFO] >>> i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service >>>
[INFO]
[INFO] --- i18n-maven-plugin:3.1:get (get) @ faxtomail-service ---
[INFO] Copying faxtomail-service.properties to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO]
[INFO] <<< i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service <<<
[INFO]
[INFO] --- i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service ---
[WARNING] bundle fr_FR contains 6/8 empty entries! (use -Di18n.showEmpty to see these entries)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- license-maven-plugin:1.7:update-file-header (update-file-header) @ faxtomail-service ---
[INFO] Will search files to update from root <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] Will search files to update from root <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] Scan 33 files header done in 55.74ms.
[INFO]
* uptodate header on 29 files.
* add header on 4 files.
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ faxtomail-service ---
[INFO] Compiling 24 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>: Some input files use unchecked or unsafe operations.
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ faxtomail-service ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO]
[INFO] --- jredmine-maven-plugin:1.8.2:generate-changes (jredmine-generate-changes) @ faxtomail-service ---
[INFO] Skipping goal (skipGenerateChanges flag is on).
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ faxtomail-service ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ faxtomail-service ---
[INFO] Compiling 6 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[151,35] cannot find symbol
symbol: method closeContext()
location: variable persistenceContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[157,35] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[229,30] cannot find symbol
symbol: method closeContext()
location: variable openedTransaction of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[239,31] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] FaxToMail ......................................... SUCCESS [ 6.823 s]
[INFO] FaxToMail :: Persistence .......................... SUCCESS [ 24.092 s]
[INFO] FaxToMail :: Service .............................. FAILURE [ 3.426 s]
[INFO] FaxToMail :: Web .................................. SKIPPED
[INFO] FaxToMail :: UI ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.413 s
[INFO] Finished at: 2014-06-04T01:15:54+01:00
[INFO] Final Memory: 105M/694M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project faxtomail-service: Compilation failure: Compilation failure:
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[151,35] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable persistenceContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[157,35] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[229,30] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable openedTransaction of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/ws/trunk/faxtomail-se…>:[239,31] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project faxtomail-service: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858)
at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:152)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 30 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :faxtomail-service
Sending e-mails to: faxtomail-commits(a)list.forge.codelutin.com chatellier(a)codelutin.com
channel stopped
Skipping sonar analysis due to bad build status FAILURE
1
2
Build failed in Jenkins: faxtomail-nightly » FaxToMail :: Service #42
by admin+ci-codelutin.com@codelutin.com 05 Jun '14
by admin+ci-codelutin.com@codelutin.com 05 Jun '14
05 Jun '14
See <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
Changes:
[echatellier] refs #4662: Import des utilisateurs et groupes depuis le serveur LDAP
------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FaxToMail :: Service 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ faxtomail-service ---
[INFO] Deleting <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ensure-no-container-api) @ faxtomail-service ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ faxtomail-service ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-redmine-login) @ faxtomail-service ---
[INFO] Exporting server [redmine-forge.codelutin.com] privateKey in ${redmine.apiKey}
[INFO]
[INFO] --- license-maven-plugin:1.7:update-project-license (attach-licenses) @ faxtomail-service ---
[INFO]
[INFO] --- license-maven-plugin:1.7:add-third-party (attach-licenses) @ faxtomail-service ---
[INFO] Load missing file <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] Missing file <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…> is up-to-date.
[INFO] Writing third-party file to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] Will attach third party file from <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO]
[INFO] --- license-maven-plugin:1.7:update-file-header (update-file-header-on-pom) @ faxtomail-service ---
[INFO] Will search files to update from root <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] Scan 1 file header done in 2.322ms.
[INFO] All files are up-to-date.
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserJava (scan-sources) @ faxtomail-service ---
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserValidation (scan-sources) @ faxtomail-service ---
[INFO] Load rules file validation.rules
[INFO]
[INFO] >>> i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service >>>
[INFO]
[INFO] --- i18n-maven-plugin:3.1:get (get) @ faxtomail-service ---
[INFO] Copying faxtomail-service.properties to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO]
[INFO] <<< i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service <<<
[INFO]
[INFO] --- i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service ---
[WARNING] bundle fr_FR contains 6/8 empty entries! (use -Di18n.showEmpty to see these entries)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- license-maven-plugin:1.7:update-file-header (update-file-header) @ faxtomail-service ---
[INFO] Will search files to update from root <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] Will search files to update from root <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] Scan 33 files header done in 55.74ms.
[INFO]
* uptodate header on 29 files.
* add header on 4 files.
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ faxtomail-service ---
[INFO] Compiling 24 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>: Some input files use unchecked or unsafe operations.
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ faxtomail-service ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO]
[INFO] --- jredmine-maven-plugin:1.8.2:generate-changes (jredmine-generate-changes) @ faxtomail-service ---
[INFO] Skipping goal (skipGenerateChanges flag is on).
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ faxtomail-service ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ faxtomail-service ---
[INFO] Compiling 6 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>:[151,35] cannot find symbol
symbol: method closeContext()
location: variable persistenceContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>:[157,35] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>:[229,30] cannot find symbol
symbol: method closeContext()
location: variable openedTransaction of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-nightly/com.franciaflex.faxto…>:[239,31] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[JENKINS] Archiving disabled
1
2
05 Jun '14
See <http://ci.codelutin.com/jenkins/job/faxtomail-ci/103/changes>
Changes:
[echatellier] Refactoring angularjs.
Affichage des groupes ldap dans l'interface
------------------------------------------
[...truncated 29 lines...]
[INFO] ------------------------------------------------------------------------
[INFO] Building FaxToMail 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ faxtomail ---
[INFO] Deleting <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/target>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ faxtomail ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ faxtomail ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/target/surefire-w…>
[INFO] Executed tasks
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ faxtomail ---
[JENKINS] Archiving disabled
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FaxToMail :: Persistence 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/top…
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/top…
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/top… (2 KB at 9.9 KB/sec)
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/top… (2 KB at 9.8 KB/sec)
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/top…
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/top…
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/top… (806 B at 32.8 KB/sec)
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/top… (806 B at 15.7 KB/sec)
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/nui…
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/nui…
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/nui… (2 KB at 57.7 KB/sec)
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/nui… (2 KB at 55.4 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ faxtomail-persistence ---
[INFO] Deleting <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ faxtomail-persistence ---
[INFO]
[INFO] --- eugene-maven-plugin:2.9:generate (generate-entities) @ faxtomail-persistence ---
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/top…
[INFO] Downloading: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/top…
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/repositories/snapshots/org/nuiton/top… (2 KB at 49.2 KB/sec)
[INFO] Downloaded: http://nexus.nuiton.org/nexus/content/groups/faxtomail-group/org/nuiton/top… (2 KB at 45.4 KB/sec)
[INFO] Process phase [zargo]
[INFO] Generate one file in 67.368ms.
[INFO] Process phase [xmi]
INFO [pool-1-thread-1 for channel] (Resource.java:296) getURLs - search URLs pattern: .*/default-java.xmi in 51 urls in 1.105s
[INFO] Generate one file in 2.393s.
[INFO] Process phase [model]
WARN [pool-1-thread-1 for channel] (AbstractObjectModelReader.java:438) loadTagValue - Invalid tag value [com.franciaflex.faxtomail.persistence.entities.MailFilter.attribute.position.tagvalue.unique] : this tagvalue 'unique' is unknown.
[INFO] Process phase [generator]
[INFO] Apply generator JavaInterfaceTransformer
[INFO] Apply generator TopiaMetaTransformer
[INFO] Generate 152 files in 372.996ms.
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserJava (scan-sources) @ faxtomail-persistence ---
[INFO]
[INFO] >>> i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-persistence >>>
[INFO]
[INFO] --- i18n-maven-plugin:3.1:get (get) @ faxtomail-persistence ---
[INFO] Copying faxtomail-persistence.properties to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>
[INFO]
[INFO] <<< i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-persistence <<<
[INFO]
[INFO] --- i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-persistence ---
[WARNING] bundle fr_FR contains 29/45 empty entries! (use -Di18n.showEmpty to see these entries)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ faxtomail-persistence ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 21 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ faxtomail-persistence ---
[INFO] Compiling 144 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>: Some input files use unchecked or unsafe operations.
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ faxtomail-persistence ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ faxtomail-persistence ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ faxtomail-persistence ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ faxtomail-persistence ---
[INFO] No tests to run.
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ faxtomail-persistence ---
[INFO] Building jar: <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-persist…>
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ faxtomail-persistence ---
[JENKINS] Archiving disabled
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FaxToMail :: Service 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ faxtomail-service ---
[INFO] Deleting <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ faxtomail-service ---
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserJava (scan-sources) @ faxtomail-service ---
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserValidation (scan-sources) @ faxtomail-service ---
[INFO] Load rules file validation.rules
[INFO]
[INFO] >>> i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service >>>
[INFO]
[INFO] --- i18n-maven-plugin:3.1:get (get) @ faxtomail-service ---
[INFO] Copying faxtomail-service.properties to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>
[INFO]
[INFO] <<< i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service <<<
[INFO]
[INFO] --- i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service ---
[WARNING] bundle fr_FR contains 6/8 empty entries! (use -Di18n.showEmpty to see these entries)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ faxtomail-service ---
[INFO] Compiling 24 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>: Some input files use unchecked or unsafe operations.
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ faxtomail-service ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ faxtomail-service ---
[INFO] Compiling 6 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[151,35] cannot find symbol
symbol: method closeContext()
location: variable persistenceContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[157,35] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[229,30] cannot find symbol
symbol: method closeContext()
location: variable openedTransaction of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[239,31] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] FaxToMail ......................................... SUCCESS [ 3.804 s]
[INFO] FaxToMail :: Persistence .......................... SUCCESS [ 22.698 s]
[INFO] FaxToMail :: Service .............................. FAILURE [ 2.864 s]
[INFO] FaxToMail :: Web .................................. SKIPPED
[INFO] FaxToMail :: UI ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.183 s
[INFO] Finished at: 2014-06-04T10:25:47+01:00
[INFO] Final Memory: 44M/587M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project faxtomail-service: Compilation failure: Compilation failure:
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[151,35] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable persistenceContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[157,35] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[229,30] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable openedTransaction of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/ws/trunk/faxtomail-service…>:[239,31] cannot find symbol
[ERROR] symbol: method closeContext()
[ERROR] location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project faxtomail-service: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858)
at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:152)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 30 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :faxtomail-service
Sending e-mails to: faxtomail-commits(a)list.forge.codelutin.com chatellier(a)codelutin.com
channel stopped
1
9
Build failed in Jenkins: faxtomail-ci » FaxToMail :: Service #103
by admin+ci-codelutin.com@codelutin.com 05 Jun '14
by admin+ci-codelutin.com@codelutin.com 05 Jun '14
05 Jun '14
See <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>
Changes:
[echatellier] Refactoring angularjs.
Affichage des groupes ldap dans l'interface
------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FaxToMail :: Service 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ faxtomail-service ---
[INFO] Deleting <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ faxtomail-service ---
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserJava (scan-sources) @ faxtomail-service ---
[INFO]
[INFO] --- i18n-maven-plugin:3.1:parserValidation (scan-sources) @ faxtomail-service ---
[INFO] Load rules file validation.rules
[INFO]
[INFO] >>> i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service >>>
[INFO]
[INFO] --- i18n-maven-plugin:3.1:get (get) @ faxtomail-service ---
[INFO] Copying faxtomail-service.properties to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>
[INFO]
[INFO] <<< i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service <<<
[INFO]
[INFO] --- i18n-maven-plugin:3.1:gen (scan-sources) @ faxtomail-service ---
[WARNING] bundle fr_FR contains 6/8 empty entries! (use -Di18n.showEmpty to see these entries)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ faxtomail-service ---
[INFO] Compiling 24 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>: Some input files use unchecked or unsafe operations.
[WARNING] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ faxtomail-service ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ faxtomail-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ faxtomail-service ---
[INFO] Compiling 6 source files to <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>:[151,35] cannot find symbol
symbol: method closeContext()
location: variable persistenceContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>:[157,35] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>:[229,30] cannot find symbol
symbol: method closeContext()
location: variable openedTransaction of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaPersistenceContext
[ERROR] <http://ci.codelutin.com/jenkins/job/faxtomail-ci/com.franciaflex.faxtomail$…>:[239,31] cannot find symbol
symbol: method closeContext()
location: variable applicationContext of type com.franciaflex.faxtomail.persistence.entities.FaxToMailTopiaApplicationContext
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[JENKINS] Archiving disabled
1
9
05 Jun '14
Author: kmorin
Date: 2014-06-05 18:43:31 +0200 (Thu, 05 Jun 2014)
New Revision: 139
Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/139
Log:
- am?\195?\169lioration de la vitesse de chargement des ?\195?\169l?\195?\169ments des dossiers + affichage du loading
- sauvegarde de la taille des colonnes
- taille par d?\195?\169faut des split panel
- suppression du dossier i18n dans le r?\195?\169pertoire utlisateur
Added:
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/LoadFolderEmailsAction.java
Modified:
trunk/faxtomail-persistence/src/main/resources/faxToMail.properties
trunk/faxtomail-persistence/src/main/xmi/faxtomail.properties
trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailService.java
trunk/faxtomail-service/src/test/resources/csv/email_accounts.csv
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailActionFactory.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailUIContext.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.css
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.jaxx
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIHandler.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIModel.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.css
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandesUIHandler.java
trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/AbstractFaxToMailDemandListHandler.java
trunk/faxtomail-ui-swing/src/main/resources/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel-error-validation.xml
trunk/faxtomail-ui-swing/src/main/resources/i18n/faxtomail-ui-swing_fr_FR.properties
Modified: trunk/faxtomail-persistence/src/main/resources/faxToMail.properties
===================================================================
--- trunk/faxtomail-persistence/src/main/resources/faxToMail.properties 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-persistence/src/main/resources/faxToMail.properties 2014-06-05 16:43:31 UTC (rev 139)
@@ -35,11 +35,11 @@
#hibernate.connection.password=FX2013!
hibernate.hbm2ddl.auto=update
-#hibernate.show_sql=false
+#hibernate.show_sql=true
#hibernate.format_sql=true
#hibernate.ejb.naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=1800
-hibernate.c3p0.max_statements=50
+hibernate.c3p0.max_statements=50
\ No newline at end of file
Modified: trunk/faxtomail-persistence/src/main/xmi/faxtomail.properties
===================================================================
--- trunk/faxtomail-persistence/src/main/xmi/faxtomail.properties 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-persistence/src/main/xmi/faxtomail.properties 2014-06-05 16:43:31 UTC (rev 139)
@@ -72,6 +72,17 @@
# Email
com.franciaflex.faxtomail.persistence.entities.Email.attribute.mailFolder.tagvalue.notNull=true
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.rangeRow.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.attachment.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.history.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.client.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.demandType.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.demandStatus.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.mailFolder.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.priority.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.etatAttente.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.emailGroup.tagvalue.lazy=false
+com.franciaflex.faxtomail.persistence.entities.Email.attribute.replies.tagvalue.lazy=false
# History
com.franciaflex.faxtomail.persistence.entities.History.attribute.type.tagvalue.notNull=true
Modified: trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailService.java
===================================================================
--- trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailService.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailService.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -202,22 +202,29 @@
Set<String> fieldSet = Sets.newHashSet(modifiedFields);
- History transmissionToEdi = CollectionUtils.find(email.getHistory(), new Predicate<History>() {
- @Override
- public boolean evaluate(History object) {
- return object.getType() == HistoryType.TRANSMISSION_TO_EDI;
+ if (StringUtils.isNotBlank(email.getMailFolder().getEdiFolder())) {
+ History transmissionToEdi = CollectionUtils.find(email.getHistory(), new Predicate<History>() {
+ @Override
+ public boolean evaluate(History object) {
+ return object.getType() == HistoryType.TRANSMISSION_TO_EDI;
+ }
+ });
+
+ // we transmit to EDI if:
+ // - it has never been transmitted before
+ // - all the required fields are filled
+ if (transmissionToEdi == null
+ && email.getClient() != null
+ && email.getDemandType() != null
+ && StringUtils.isNotBlank(email.getProjectReference())
+ && (!email.getDemandType().isRangeNeeded() || CollectionUtils.isNotEmpty(email.getRangeRow()))) {
+
+ email.setDemandStatus(DemandStatus.TRANSMITTED_TO_EDI);
+ transmissionToEdi = historyDao.create(History.PROPERTY_TYPE, HistoryType.TRANSMISSION_TO_EDI,
+ History.PROPERTY_MODIFICATION_DATE, new Date());
+ email.addHistory(transmissionToEdi);
+ fieldSet.add(Email.PROPERTY_DEMAND_STATUS);
}
- });
- if (transmissionToEdi == null
- && email.getClient() != null
- && email.getDemandType() != null
- && StringUtils.isNotBlank(email.getProjectReference())) {
-
- email.setDemandStatus(DemandStatus.TRANSMITTED_TO_EDI);
- transmissionToEdi = historyDao.create(History.PROPERTY_TYPE, HistoryType.TRANSMISSION_TO_EDI,
- History.PROPERTY_MODIFICATION_DATE, new Date());
- email.addHistory(transmissionToEdi);
- fieldSet.add(Email.PROPERTY_DEMAND_STATUS);
}
History history;
Modified: trunk/faxtomail-service/src/test/resources/csv/email_accounts.csv
===================================================================
--- trunk/faxtomail-service/src/test/resources/csv/email_accounts.csv 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-service/src/test/resources/csv/email_accounts.csv 2014-06-05 16:43:31 UTC (rev 139)
@@ -1,2 +1,2 @@
-protocol;host;user;password
-pop3;test.franciaflex.fr;testuser;password
+protocol;host;port;user;password
+pop3;test.franciaflex.fr;110;testuser;password
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailActionFactory.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailActionFactory.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailActionFactory.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -43,8 +43,7 @@
public <A extends AbstractApplicationAction> A createLogicAction(AbstractApplicationUIHandler handler,
Class<A> actionName) {
FaxToMailUIContext context = (FaxToMailUIContext) handler.getContext();
- if (AbstractMainUIFaxToMailAction.class.isAssignableFrom(actionName) &&
- context.getMainUI() != null) {
+ if (AbstractMainUIFaxToMailAction.class.isAssignableFrom(actionName) && context.getMainUI() != null) {
handler = context.getMainUI().getHandler();
}
@@ -52,6 +51,7 @@
// create action
A result = ConstructorUtils.invokeConstructor(actionName, (AbstractFaxToMailUIHandler) handler);
return result;
+
} catch (Exception e) {
throw new ApplicationTechnicalException(t("application.action.create.error", actionName), e);
}
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailUIContext.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailUIContext.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/FaxToMailUIContext.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -359,58 +359,16 @@
}));
//--------------------------------------------------------------------//
- // init db configuration
- //--------------------------------------------------------------------//
-
-// config.initConfig(getResourceLoader());
-
-// // clean db cache (avoid a lots of headache :(
-// File cacheDirectory = config.getServiceConfig().getPersistenceConfig().getCacheDirectory();
-// if (cacheDirectory.exists()) {
-// // clean cache directory (fix soem headaches...)
-// TuttiIOUtil.cleanDirectory(
-// cacheDirectory,
-// _("tutti.db.deleteCache.error", cacheDirectory));
-// }
-
- //--------------------------------------------------------------------//
// init i18n
//--------------------------------------------------------------------//
- File i18nDirectory = config.getI18nDirectory();
- if (!config.isFullLaunchMode()) {
- i18nDirectory = new File(config.getDataDirectory(), "i18n");
-
- if (i18nDirectory.exists()) {
- // clean i18n cache
- ApplicationIOUtil.cleanDirectory(
- i18nDirectory,
- t("faxtomail.i18n.deleteCache.error", i18nDirectory));
- }
- }
-
- ApplicationIOUtil.forceMkdir(i18nDirectory,
- t("faxtomail.i18n.mkDir.error", i18nDirectory));
-
- if (log.isDebugEnabled()) {
- log.debug("I18N directory: " + i18nDirectory);
- }
-
Locale i18nLocale = config.getI18nLocale();
if (log.isInfoEnabled()) {
- log.info(String.format("Starts i18n with locale [%s] at [%s]",
- i18nLocale, i18nDirectory));
+ log.info(String.format("Starts i18n with locale [%s]", i18nLocale));
}
- try {
- I18n.init(new UserI18nInitializer(
- i18nDirectory, new DefaultI18nInitializer("faxtomail-i18n")),
- i18nLocale);
- } catch (RuntimeException ex) {
- // strange ide behaviour case (eclipse)
- I18n.init(new ClassPathI18nInitializer(), i18nLocale);
- }
+ I18n.init(new ClassPathI18nInitializer(), i18nLocale);
// //--------------------------------------------------------------------//
// // init help
Added: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/LoadFolderEmailsAction.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/LoadFolderEmailsAction.java (rev 0)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/actions/LoadFolderEmailsAction.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -0,0 +1,68 @@
+package com.franciaflex.faxtomail.ui.swing.actions;
+
+import com.franciaflex.faxtomail.persistence.entities.Email;
+import com.franciaflex.faxtomail.persistence.entities.MailFolder;
+import com.franciaflex.faxtomail.ui.swing.content.demande.DemandeListUI;
+import com.franciaflex.faxtomail.ui.swing.content.demande.DemandeListUIHandler;
+import com.franciaflex.faxtomail.ui.swing.content.demande.DemandeListUIModel;
+import com.franciaflex.faxtomail.ui.swing.content.demande.DemandeUIModel;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jdesktop.swingx.JXTable;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.nuiton.i18n.I18n.t;
+
+/**
+ * @author Kevin Morin (Code Lutin)
+ * @since x.x
+ */
+public class LoadFolderEmailsAction extends AbstractFaxToMailAction<DemandeListUIModel, DemandeListUI, DemandeListUIHandler> {
+
+ private final static Log log = LogFactory.getLog(LoadFolderEmailsAction.class);
+
+ public LoadFolderEmailsAction(DemandeListUIHandler handler) {
+ super(handler, false);
+ }
+
+ @Override
+ public boolean prepareAction() throws Exception {
+
+ DemandeListUIModel model = getModel();
+ MailFolder folder = model.getSelectedFolder();
+ JXTable dataTable = getUI().getDataTable();
+
+ setActionDescription(t("faxtomail.action.loadFolderEmails.tip", folder.getName()));
+
+ // change name to save the state of the column width for every folder
+ // (as every folder can have a different header)
+ getContext().getSwingSession().updateState();
+ String columns = handler.populateColumnModel(dataTable, false);
+ dataTable.setName("dataTable" + columns);
+ getContext().getSwingSession().add(dataTable, true);
+
+ return true;
+ }
+
+ @Override
+ public void doAction() throws Exception {
+ DemandeListUIHandler handler = getHandler();
+ DemandeListUIModel model = getModel();
+ MailFolder folder = model.getSelectedFolder();
+
+ List<Email> emails = getContext().getEmailService().getEmailForFolder(folder);
+ log.info(emails.size() + " emails in folder " + folder.getName());
+
+ List<DemandeUIModel> demands = new ArrayList<DemandeUIModel>();
+ for (Email email : emails) {
+ DemandeUIModel demand = new DemandeUIModel();
+ demand.fromEntity(email, false);
+ demand.setValid(handler.isDemandeValid(demand));
+ demands.add(demand);
+ }
+
+ model.setEmails(demands);
+ }
+}
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.css
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.css 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.css 2014-06-05 16:43:31 UTC (rev 139)
@@ -23,6 +23,10 @@
text: " | ";
}
+#mainSplitPane {
+ resizeWeight: 0.2;
+}
+
#navigationTree {
font-size: "11";
rootVisible: false;
@@ -99,4 +103,5 @@
#archiveMenu {
text: "faxtomail.demandeList.action.archive";
toolTipText: "faxtomail.demandeList.action.archive.tip";
+ enabled: { model.isArchiveEnabled() };
}
\ No newline at end of file
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.jaxx
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.jaxx 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUI.jaxx 2014-06-05 16:43:31 UTC (rev 139)
@@ -66,7 +66,7 @@
onActionPerformed='handler.archive()'/>
</JPopupMenu>
- <JSplitPane constraints='BorderLayout.CENTER'>
+ <JSplitPane constraints='BorderLayout.CENTER' id="mainSplitPane">
<JScrollPane>
<JTree id="navigationTree"
onMouseClicked='handler.autoSelectNodeInTree(event, treePopup)'/>
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIHandler.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIHandler.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIHandler.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -36,6 +36,7 @@
import com.franciaflex.faxtomail.persistence.entities.MailFolder;
import com.franciaflex.faxtomail.ui.swing.actions.ArchiveFromListAction;
import com.franciaflex.faxtomail.ui.swing.actions.ComputeQuantitiesByRangeAction;
+import com.franciaflex.faxtomail.ui.swing.actions.LoadFolderEmailsAction;
import com.franciaflex.faxtomail.ui.swing.actions.SaveDemandeFromListAction;
import com.franciaflex.faxtomail.ui.swing.content.reply.ReplyFormUI;
import com.franciaflex.faxtomail.ui.swing.content.reply.ReplyFormUIModel;
@@ -114,21 +115,10 @@
model.addPropertyChangeListener(DemandeListUIModel.PROPERTY_SELECTED_FOLDER, new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
- DemandeListUIModel model = (DemandeListUIModel) evt.getSource();
- MailFolder folder = (MailFolder) evt.getNewValue();
-
- populateColumnModel(getUI().getDataTable(), false);
-
- List<Email> emails = getContext().getEmailService().getEmailForFolder(folder);
- log.info(emails.size() + " emails in folder " + folder.getName());
- List<DemandeUIModel> demands = new ArrayList<DemandeUIModel>();
- for (Email email : emails) {
- DemandeUIModel demand = new DemandeUIModel();
- demand.fromEntity(email);
- demand.setValid(isDemandeValid(demand));
- demands.add(demand);
- }
- model.setEmails(demands);
+ LoadFolderEmailsAction loadFolderEmailsAction =
+ getContext().getActionFactory().createLogicAction(DemandeListUIHandler.this,
+ LoadFolderEmailsAction.class);
+ getContext().getActionEngine().runAction(loadFolderEmailsAction);
}
});
@@ -165,7 +155,6 @@
@Override
public void modelChanged(TableModel model) {
// do nothing
- log.info("modelChanged");
}
};
@@ -253,6 +242,7 @@
public void valueChanged(TreeSelectionEvent e) {
FolderTreeNode folderNode = (FolderTreeNode) e.getPath().getLastPathComponent();
MailFolder folder = folderNode.getMailFolder();
+
getModel().setSelectedFolder(folder);
getContext().setCurrentMailFolder(folder);
@@ -362,8 +352,10 @@
int selectedRowCount = getUI().getDataTable().getSelectedRowCount();
DemandeListUIModel model = getModel();
- model.setAddAttachmentEnabled(selectedRowCount == 1);
- model.setReplyEnabled(selectedRowCount == 1);
+ //TODO kmorin 20140605 prendre en compte la conf en fonction des états d'attente
+ model.setReplyEnabled(selectedRowCount == 1 && model.getCurrentEmails().get(0).isEditable());
+ model.setArchiveEnabled(selectedRowCount > 1 ||
+ selectedRowCount > 0 && model.getCurrentEmails().get(0).isEditable());
}
public void autoSelectNodeInTree(MouseEvent e, JPopupMenu popup) {
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIModel.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIModel.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeListUIModel.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -45,7 +45,7 @@
public static final String PROPERTY_PF_NB = "pfNb";
public static final String PROPERTY_SAV_NB = "savNb";
public static final String PROPERTY_REPLY_ENABLED = "replyEnabled";
- public static final String PROPERTY_ADD_ATTACHMENT_ENABLED = "addAttachmentEnabled";
+ public static final String PROPERTY_ARCHIVE_ENABLED = "archiveEnabled";
protected List<MailFolder> folders;
@@ -59,7 +59,7 @@
protected boolean replyEnabled;
- protected boolean addAttachmentEnabled;
+ protected boolean archiveEnabled;
protected int quotationNb;
@@ -156,14 +156,14 @@
firePropertyChange(PROPERTY_REPLY_ENABLED, oldValue, replyEnabled);
}
- public boolean isAddAttachmentEnabled() {
- return addAttachmentEnabled;
+ public boolean isArchiveEnabled() {
+ return archiveEnabled;
}
- public void setAddAttachmentEnabled(boolean addAttachmentEnabled) {
- Object oldValue = isAddAttachmentEnabled();
- this.addAttachmentEnabled = addAttachmentEnabled;
- firePropertyChange(PROPERTY_ADD_ATTACHMENT_ENABLED, oldValue, addAttachmentEnabled);
+ public void setArchiveEnabled(boolean qrchiveEnabled) {
+ Object oldValue = isArchiveEnabled();
+ this.archiveEnabled = archiveEnabled;
+ firePropertyChange(PROPERTY_ARCHIVE_ENABLED, oldValue, archiveEnabled);
}
public int getQuotationNb() {
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.css
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.css 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.css 2014-06-05 16:43:31 UTC (rev 139)
@@ -275,6 +275,7 @@
#leftVerticalSplitPanel {
dividerSize : { model.isRangePanelVisible() ? 10 : 0 };
+ resizeWeight: 0.8;
}
#rangePanel {
@@ -329,4 +330,8 @@
#toolbarContainer {
rightDecoration: { topToolBar };
+}
+
+#rightVerticalSplitPanel {
+ resizeWeight: 0.8;
}
\ No newline at end of file
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -365,6 +365,21 @@
}
);
+ final JSplitPane leftVerticalSplitPanel = getUI().getLeftVerticalSplitPanel();
+ model.addPropertyChangeListener(DemandeUIModel.PROPERTY_RANGE_PANEL_VISIBLE, new PropertyChangeListener() {
+ @Override
+ public void propertyChange(PropertyChangeEvent evt) {
+ leftVerticalSplitPanel.setName("leftVerticalSplitPanel" + evt.getNewValue());
+ getContext().getSwingSession().add(leftVerticalSplitPanel, true);
+ if (Boolean.FALSE.equals(evt.getNewValue())) {
+ leftVerticalSplitPanel.setDividerLocation(leftVerticalSplitPanel.getHeight());
+ }
+ }
+ });
+
+ leftVerticalSplitPanel.setName("leftVerticalSplitPanel" + model.isRangePanelVisible());
+ getContext().getSwingSession().add(leftVerticalSplitPanel, true);
+
listModelIsModify(getModel());
}
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -186,15 +186,34 @@
}
+ @Override
+ public void fromEntity(Email entity) {
+ fromEntity(entity, true);
+ }
+
/**
* Surcharge pour dupliquer correctement les pieces jointes.
- *
+ *
* FIXME echatellier 20140520 c'est pas terrible, mais c'est comme ca :p
*/
- @Override
- public void fromEntity(Email entity) {
+ public void fromEntity(Email entity, boolean full) {
//super.fromEntity(entity);
- fromBeanBinder.copyExcluding(entity, this, Email.PROPERTY_ATTACHMENT);
+ String[] propertiesToIgnore;
+// if (full) {
+ propertiesToIgnore = new String[] {
+ Email.PROPERTY_ATTACHMENT
+ };
+
+// } else {
+// propertiesToIgnore = new String[] {
+// Email.PROPERTY_ATTACHMENT,
+// Email.PROPERTY_EMAIL_GROUP,
+// Email.PROPERTY_REPLIES,
+// Email.PROPERTY_MAIL_FOLDER,
+// Email.PROPERTY_HISTORY
+// };
+// }
+ fromBeanBinder.copyExcluding(entity, this, propertiesToIgnore);
// specific attachment copy
Collection<Attachment> attachmentCopy = new ArrayList<Attachment>();
if (entity.getAttachment() != null) {
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandesUIHandler.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandesUIHandler.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandesUIHandler.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -109,6 +109,8 @@
JTabbedPane tabPanel = getTabPanel();
if (added) {
DemandeUI demandeUI = new DemandeUI(getUI(), demand);
+ demandeUI.setName("demandPanel" + index);
+ getContext().getSwingSession().add(demandeUI, true);
demand.addPropertyChangeListener(demandEnabledAndValidListener);
tabPanel.add(demandeUI);
setCustomTab(index, demand);
Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/AbstractFaxToMailDemandListHandler.java
===================================================================
--- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/AbstractFaxToMailDemandListHandler.java 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/AbstractFaxToMailDemandListHandler.java 2014-06-05 16:43:31 UTC (rev 139)
@@ -152,7 +152,7 @@
protected abstract Collection<String> getColumns();
- protected void populateColumnModel(JXTable table, boolean sortable) {
+ public String populateColumnModel(JXTable table, boolean sortable) {
Collection<String> columns = getColumns();
TableColumnModelExt columnModel = new DefaultTableColumnModelExt();
@@ -256,6 +256,8 @@
getEditableTableProperties());
table.setModel(tableModel);
table.setColumnModel(columnModel);
+
+ return StringUtils.join(columns, "-");
}
protected MouseListener getDataTableMouseListener() {
Modified: trunk/faxtomail-ui-swing/src/main/resources/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel-error-validation.xml
===================================================================
--- trunk/faxtomail-ui-swing/src/main/resources/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel-error-validation.xml 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/resources/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel-error-validation.xml 2014-06-05 16:43:31 UTC (rev 139)
@@ -30,11 +30,11 @@
<validators>
- <field name="object">
- <field-validator type="requiredstring" short-circuit="true">
- <message>faxtomail.validator.error.email.object.required</message>
- </field-validator>
- </field>
+ <!--<field name="object">-->
+ <!--<field-validator type="requiredstring" short-circuit="true">-->
+ <!--<message>faxtomail.validator.error.email.object.required</message>-->
+ <!--</field-validator>-->
+ <!--</field>-->
<field name="clientCode">
<field-validator type="requiredstring" short-circuit="true">
Modified: trunk/faxtomail-ui-swing/src/main/resources/i18n/faxtomail-ui-swing_fr_FR.properties
===================================================================
--- trunk/faxtomail-ui-swing/src/main/resources/i18n/faxtomail-ui-swing_fr_FR.properties 2014-06-05 15:57:29 UTC (rev 138)
+++ trunk/faxtomail-ui-swing/src/main/resources/i18n/faxtomail-ui-swing_fr_FR.properties 2014-06-05 16:43:31 UTC (rev 139)
@@ -18,6 +18,7 @@
faxtomail.action.goto.previousScreen.tip=Retourner à l'écran précédent
faxtomail.action.goto.search.tip=Aller à l'écran de recherche
faxtomail.action.group.tip=Grouper l'élément
+faxtomail.action.loadFolderEmails.tip=Chargement des demandes du dossier %s
faxtomail.action.reloadFaxToMail=Recharger FaxToMail
faxtomail.action.reply.tip=Envoyer la réponse
faxtomail.action.save.tip=Enregistrer
1
0