Simexplorer-si-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
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- 1607 discussions
r335 - in trunk: simexplorer-is-security simexplorer-is-security/src/java simexplorer-is-security/src/java/META-INF simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service simexplorer-is-web simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/
by glandais@users.labs.libre-entreprise.org 21 Jan '08
by glandais@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: glandais
Date: 2008-01-21 18:44:16 +0000 (Mon, 21 Jan 2008)
New Revision: 335
Added:
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/AppModule.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/GroupValueEncoder.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteSecurityService.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteService.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteStorageService.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/UserValueEncoder.java
Removed:
trunk/simexplorer-is-web/deploy.sh
trunk/simexplorer-is-web/redeploy.sh
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/beans/
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/errors/
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/ServiceFactory.java
trunk/simexplorer-is-web/tomcatstart.sh
trunk/simexplorer-is-web/tomcatstop.sh
trunk/simexplorer-is-web/undeploy.sh
Modified:
trunk/simexplorer-is-security/pom.xml
trunk/simexplorer-is-security/src/java/META-INF/orm.xml
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Actor.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Group.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/User.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java
trunk/simexplorer-is-security/src/java/h2-ds.xml
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/components/Layout.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/grid/ElementDataSource.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ApplicationImport.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ElementDetail.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupList.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/Login.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserList.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/AdminPage.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/ProtectedPage.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/SuperAdminPage.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/UserPage.java
trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml
trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml
trunk/simexplorer-is-web/src/main/webapp/WEB-INF/web.xml
trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/components/css/Layout.css
trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.properties
trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.properties
Log:
User/group edit
Modified: trunk/simexplorer-is-security/pom.xml
===================================================================
--- trunk/simexplorer-is-security/pom.xml 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/pom.xml 2008-01-21 18:44:16 UTC (rev 335)
@@ -47,7 +47,7 @@
<groupId>jboss</groupId>
<artifactId>jbossall-client</artifactId>
<version>4.2.2.GA</version>
- <scope>test</scope>
+ <scope>provided</scope>
</dependency>
</dependencies>
</project>
Modified: trunk/simexplorer-is-security/src/java/META-INF/orm.xml
===================================================================
--- trunk/simexplorer-is-security/src/java/META-INF/orm.xml 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/META-INF/orm.xml 2008-01-21 18:44:16 UTC (rev 335)
@@ -10,7 +10,9 @@
<package>fr.cemagref.simexplorer.is.security.entities</package>
- <mapped-superclass class="Actor">
+ <entity class="Actor">
+ <table name="ACTORS" />
+ <inheritance strategy="JOINED" />
<attributes>
<id name="id">
<generated-value strategy="SEQUENCE" />
@@ -21,12 +23,14 @@
</cascade>
</many-to-many>
</attributes>
- </mapped-superclass>
+ </entity>
<entity class="Group">
<table name="GROUPS" />
<attributes>
- <basic name="name"></basic>
+ <basic name="name">
+ <column unique="true" />
+ </basic>
<one-to-one name="owner" fetch="EAGER" />
</attributes>
</entity>
@@ -34,7 +38,9 @@
<entity class="User">
<table name="USERS" />
<attributes>
- <basic name="login"></basic>
+ <basic name="login">
+ <column unique="true" />
+ </basic>
<basic name="mail"></basic>
<basic name="passwordHash"></basic>
<basic name="admin"></basic>
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -22,6 +22,8 @@
public Group getGroup(Integer id);
+ public Group getGroup(String name);
+
public Group updateGroup(Group group);
public void deleteGroup(Integer id);
@@ -32,6 +34,8 @@
public void saveToken(LoginAction loginAction);
+ public void deleteToken(String token);
+
public List<Group> getGroups();
public List<Group> getGroupsOwnedBy(User user);
@@ -42,4 +46,6 @@
public List<Group> getGroupsOfUser(User user);
+ public List<Group> getGroupsOfGroup(Group group);
+
}
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -34,6 +34,13 @@
return em.find(Group.class, id);
}
+ public Group getGroup(String name) {
+ Group group = (Group) em.createQuery(
+ "select g from Group g where g.name=:name").setParameter(
+ "name", name).getSingleResult();
+ return group;
+ }
+
public User getUser(Integer id) {
return em.find(User.class, id);
}
@@ -78,6 +85,15 @@
em.persist(loginAction);
}
+ public void deleteToken(String token) {
+ LoginAction loginAction = (LoginAction) em.createQuery(
+ "select la from LoginAction la where la.token=:token")
+ .setParameter("token", token).getSingleResult();
+ if (loginAction != null) {
+ em.remove(loginAction);
+ }
+ }
+
public User getUser(String login) {
User user = (User) em.createQuery(
"select u from User u where u.login=:login").setParameter(
@@ -111,4 +127,10 @@
.setParameter("user", user).getResultList();
}
+ public List<Group> getGroupsOfGroup(Group group) {
+ return em.createQuery(
+ "select distinct g.groups from Group g where g = :group")
+ .setParameter("group", group).getResultList();
+ }
+
}
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Actor.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Actor.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Actor.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -8,7 +8,7 @@
private static final long serialVersionUID = 813823268950750281L;
- private Integer id;
+ protected Integer id;
private List<Group> groups;
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Group.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Group.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/Group.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -22,4 +22,34 @@
this.owner = owner;
}
+ @Override
+ public String toString() {
+ return name;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((id == null) ? 0 : id.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Actor other = (Actor) obj;
+ if (id == null) {
+ if (other.id != null)
+ return false;
+ } else if (!id.equals(other.id))
+ return false;
+ return true;
+ }
+
}
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/User.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/User.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/entities/User.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -49,4 +49,34 @@
this.superAdmin = superAdmin;
}
+ @Override
+ public String toString() {
+ return login;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((id == null) ? 0 : id.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Actor other = (Actor) obj;
+ if (id == null) {
+ if (other.id != null)
+ return false;
+ } else if (!id.equals(other.id))
+ return false;
+ return true;
+ }
+
}
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -15,7 +15,7 @@
public void resetPassword(String login);
public void changePassword(String login, String password);
-
+
public User getUser(Integer id);
public User getUser(String login);
@@ -23,29 +23,35 @@
public User updateUser(User user);
public void deleteUser(Integer id);
-
+
public User[] getUsers();
public User[] getUsersOfGroup(Group group);
-
+
public void setUsersOfGroup(Group group, Integer[] usersInGroup);
-
+
+ public void setGroupsOfGroup(Group group, Integer[] groupsIds);
+
public Group[] getGroupsOfUser(User user);
+ public Group[] getGroupsOfGroup(Group group);
+
public void setGroupsOfUser(User user, Integer[] groupsIds);
-
+
public Group saveGroup(String name, User owner);
public Group getGroup(Integer id);
+ public Group getGroup(String name);
+
public Group updateGroup(Group group);
public void deleteGroup(Integer id);
public Group[] getGroups();
-
+
public Group[] getGroupsOwnedBy(User user);
-
+
public String loginUser(String login, String password);
public User getLoggedUser(String token);
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -3,13 +3,17 @@
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Date;
-import java.util.Iterator;
import java.util.List;
import java.util.UUID;
+import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.Remote;
+import javax.ejb.SessionContext;
import javax.ejb.Stateless;
+import javax.ejb.Timeout;
+import javax.ejb.Timer;
+import javax.ejb.TimerService;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
@@ -29,6 +33,9 @@
@EJB
private DaoSecurity dao;
+ @Resource
+ private SessionContext sessionContext;
+
private void sendMail(String login, String mail, String password) {
/*
javax.mail.Session mailSession = (javax.mail.Session) new InitialContext().lookup("java:/Mail");
@@ -88,6 +95,10 @@
return dao.getGroup(id);
}
+ public Group getGroup(String name) {
+ return dao.getGroup(name);
+ }
+
public User getUser(Integer id) {
return dao.getUser(id);
}
@@ -142,10 +153,19 @@
loginAction.setToken(UUID.randomUUID().toString());
dao.saveToken(loginAction);
token = loginAction.getToken();
+ // FIXME session length
+ TimerService timerService = sessionContext.getTimerService();
+ //timerService.createTimer(10 * 60 * 1000, token);
}
return token;
}
+ @Timeout
+ public void timeoutHandler(Timer timer) {
+ String token = (String) timer.getInfo();
+ dao.deleteToken(token);
+ }
+
public User requestAccount(String login, String mail) {
User user = new User();
user.setLogin(login);
@@ -236,9 +256,9 @@
realUser.getGroups().clear();
for (int i = 0; i < groupsIds.length; i++) {
Group group = dao.getGroup(groupsIds[i]);
- realUser.getGroups().add(group);
+ realUser.getGroups().add(group);
}
- dao.updateUser(user);
+ dao.updateUser(realUser);
}
@@ -246,4 +266,19 @@
return dao.getGroupsOfUser(user).toArray(new Group[0]);
}
+ public Group[] getGroupsOfGroup(Group group) {
+ return dao.getGroupsOfGroup(group).toArray(new Group[0]);
+ }
+
+ public void setGroupsOfGroup(Group group, Integer[] groupsIds) {
+ Group realGroup = dao.getGroup(group.getId());
+ realGroup.getGroups().clear();
+ for (int i = 0; i < groupsIds.length; i++) {
+ Group groupOwned = dao.getGroup(groupsIds[i]);
+ realGroup.getGroups().add(groupOwned);
+ }
+ dao.updateGroup(realGroup);
+ }
+
+
}
Modified: trunk/simexplorer-is-security/src/java/h2-ds.xml
===================================================================
--- trunk/simexplorer-is-security/src/java/h2-ds.xml 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-security/src/java/h2-ds.xml 2008-01-21 18:44:16 UTC (rev 335)
@@ -16,7 +16,7 @@
<local-tx-datasource>
<jndi-name>h2datasource</jndi-name>
<connection-url>
- jdbc:h2:/var/local/simexplorer/security/database
+ jdbc:h2:/var/local/simexplorer/h2/security
</connection-url>
<driver-class>org.h2.Driver</driver-class>
<user-name></user-name>
Deleted: trunk/simexplorer-is-web/deploy.sh
===================================================================
--- trunk/simexplorer-is-web/deploy.sh 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/deploy.sh 2008-01-21 18:44:16 UTC (rev 335)
@@ -1 +0,0 @@
-mvn war:inplace tomcat:inplace
Deleted: trunk/simexplorer-is-web/redeploy.sh
===================================================================
--- trunk/simexplorer-is-web/redeploy.sh 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/redeploy.sh 2008-01-21 18:44:16 UTC (rev 335)
@@ -1 +0,0 @@
-mvn war:inplace tomcat:redeploy
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/components/Layout.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/components/Layout.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/components/Layout.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -32,7 +32,6 @@
import org.apache.tapestry.services.PersistentLocale;
import fr.cemagref.simexplorer.is.ui.web.pages.ElementList;
-import fr.cemagref.simexplorer.is.ui.web.pages.security.ProtectedPage;
/**
* AbstractPage.java
@@ -123,19 +122,19 @@
}
public String getLoginName() {
- return ProtectedPage.getUserLogged(getToken()).getLogin();
+ return elementList.getUserLogged().getLogin();
}
public boolean getLogged() {
- return ProtectedPage.isUserLogged(getToken());
+ return elementList.isUserLogged();
}
public boolean getAdministrator() {
- return ProtectedPage.isUserAdmin(getToken());
+ return elementList.isUserAdmin();
}
public boolean getSuperAdministrator() {
- return ProtectedPage.isUserSuperAdmin(getToken());
+ return elementList.isUserSuperAdmin();
}
public String getToken() {
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/grid/ElementDataSource.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/grid/ElementDataSource.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/grid/ElementDataSource.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -4,9 +4,10 @@
import org.apache.tapestry.beaneditor.PropertyModel;
import org.apache.tapestry.grid.GridDataSource;
+import org.apache.tapestry.ioc.annotations.Inject;
import fr.cemagref.simexplorer.is.entities.metadata.MetaDataEntity;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteStorageService;
public class ElementDataSource implements GridDataSource {
@@ -28,11 +29,9 @@
int result = 0;
try {
if (query.equals("")) {
- result = ServiceFactory.getStorageService()
- .findApplicationsCount(false);
+ result = RemoteStorageService.getStorageService().findApplicationsCount(false);
} else {
- result = ServiceFactory.getStorageService().findFullTextCount(
- query, false);
+ result = RemoteStorageService.getStorageService().findFullTextCount(query, false);
}
} catch (NamingException e) {
// TODO Auto-generated catch block
@@ -68,11 +67,11 @@
}
if (query.equals("")) {
- entities = ServiceFactory.getStorageService()
+ entities = RemoteStorageService.getStorageService()
.findApplications(false, startIndex,
1 + endIndex - startIndex, dateOrder);
} else {
- entities = ServiceFactory.getStorageService().findFullText(
+ entities = RemoteStorageService.getStorageService().findFullText(
query, false, startIndex, 1 + endIndex - startIndex,
dateOrder);
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ApplicationImport.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ApplicationImport.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ApplicationImport.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,12 +1,13 @@
package fr.cemagref.simexplorer.is.ui.web.pages;
+import org.apache.tapestry.ioc.annotations.Inject;
import org.apache.tapestry.upload.services.UploadedFile;
import com.healthmarketscience.rmiio.RemoteInputStreamServer;
import com.healthmarketscience.rmiio.SimpleRemoteInputStream;
import fr.cemagref.simexplorer.is.ui.web.pages.security.UserPage;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteStorageService;
public class ApplicationImport extends UserPage {
@@ -33,7 +34,7 @@
if (fileEA != null) {
RemoteInputStreamServer zipRemoteStream = new SimpleRemoteInputStream(
fileEA.getStream());
- ServiceFactory.getStorageService().saveElement(
+ RemoteStorageService.getStorageService().saveElement(
zipRemoteStream.export());
}
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ElementDetail.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ElementDetail.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/ElementDetail.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -29,7 +29,7 @@
import fr.cemagref.simexplorer.is.entities.data.Structure;
import fr.cemagref.simexplorer.is.entities.metadata.MetaDataEntity;
import fr.cemagref.simexplorer.is.ui.web.pages.security.UserPage;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteStorageService;
import fr.cemagref.simexplorer.is.ui.web.tools.XMLAttachment;
public class ElementDetail extends UserPage {
@@ -41,7 +41,7 @@
private LoggableElement element;
public void setup(String uuid, String version) throws Exception {
- element = ServiceFactory.getStorageService().getElement(uuid, version);
+ element = RemoteStorageService.getStorageService().getElement(uuid, version);
}
public List<String> getHeaders() {
@@ -65,10 +65,10 @@
ByteArrayOutputStream bos = new ByteArrayOutputStream();
RemoteOutputStreamServer xmlRemoteOutputStream = new SimpleRemoteOutputStream(
bos);
- ServiceFactory.getStorageService().exportElement(
+ RemoteStorageService.getStorageService().exportElement(
xmlRemoteOutputStream.export(), uuid, version);
- MetaDataEntity mde = ServiceFactory.getStorageService().getMetadata(
+ MetaDataEntity mde = RemoteStorageService.getStorageService().getMetadata(
uuid, version);
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
response = new XMLAttachment(bis, mde.getType() + "." + mde.getUuid()
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -6,14 +6,16 @@
import javax.naming.NamingException;
+import org.apache.tapestry.ValueEncoder;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.annotations.Persist;
-import org.apache.tapestry.internal.services.StringValueEncoder;
import fr.cemagref.simexplorer.is.security.entities.Group;
import fr.cemagref.simexplorer.is.security.entities.User;
import fr.cemagref.simexplorer.is.ui.web.pages.security.AdminPage;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.GroupValueEncoder;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteSecurityService;
+import fr.cemagref.simexplorer.is.ui.web.services.UserValueEncoder;
public class GroupEdit extends AdminPage {
@@ -23,56 +25,67 @@
@InjectPage
private GroupList groupList;
- private StringValueEncoder stringEncoder = new StringValueEncoder();
-
@Persist
- private List<String> usersInGroup;
+ private List<User> usersInGroup;
@Persist
- private List<String> groupsInGroup;
+ private List<Group> groupsInGroup;
- void setup(int groupId) throws NamingException {
- this.usersInGroup = new ArrayList<String>();
+ private static final UserValueEncoder userEncoder = new UserValueEncoder();
+
+ private static final GroupValueEncoder groupEncoder = new GroupValueEncoder();
+
+ void setup(int groupId) throws Exception {
+ this.usersInGroup = new ArrayList<User>();
+ this.groupsInGroup = new ArrayList<Group>();
if (groupId == -1) {
this.group = new Group();
+ this.group.setOwner(getUserLogged());
} else {
- this.group = ServiceFactory.getSecurityService().getGroup(groupId);
- User[] users = ServiceFactory.getSecurityService().getUsersOfGroup(
- group);
+ this.group = RemoteSecurityService.getSecurityService().getGroup(
+ groupId);
+
+ User[] users = RemoteSecurityService.getSecurityService()
+ .getUsersOfGroup(group);
for (User user : users) {
- this.usersInGroup.add(user.getId() + "/" + user.getLogin());
+ this.usersInGroup.add(user);
}
+
+ Group[] groups = RemoteSecurityService.getSecurityService()
+ .getGroupsOfGroup(group);
+ for (Group group : groups) {
+ this.groupsInGroup.add(group);
+ }
}
}
- public Object onSuccess() throws NamingException {
+ public Object onSuccess() throws Exception {
if (group.getId() == null) {
- ServiceFactory.getSecurityService().saveGroup(group.getName(),
- getUserLogged(getToken()));
+ group = RemoteSecurityService.getSecurityService().saveGroup(
+ group.getName(), getUserLogged());
} else {
- ServiceFactory.getSecurityService().updateGroup(group);
+ group = RemoteSecurityService.getSecurityService().updateGroup(
+ group);
}
-
+
Integer[] usersIds = new Integer[usersInGroup.size()];
int i = 0;
- for (String user : usersInGroup) {
- StringTokenizer st = new StringTokenizer(user, "/");
- usersIds[i] = new Integer(st.nextToken());
+ for (User user : usersInGroup) {
+ usersIds[i] = new Integer(user.getId());
i++;
}
- ServiceFactory.getSecurityService().setUsersOfGroup(group, usersIds);
+ RemoteSecurityService.getSecurityService().setUsersOfGroup(group,
+ usersIds);
- /*
Integer[] groupsIds = new Integer[groupsInGroup.size()];
i = 0;
- for (String group : groupsInGroup) {
- StringTokenizer st = new StringTokenizer(group, "/");
- groupsIds[i] = new Integer(st.nextToken());
+ for (Group group : groupsInGroup) {
+ groupsIds[i] = new Integer(group.getId());
i++;
}
- ServiceFactory.getSecurityService().setGroupsOfGroup(group, groupsIds);
- */
-
+ RemoteSecurityService.getSecurityService().setGroupsOfGroup(group,
+ groupsIds);
+
return groupList;
}
@@ -80,20 +93,41 @@
return groupList;
}
- public List<String> getUsers() throws NamingException {
- User[] users = ServiceFactory.getSecurityService().getUsers();
- List<String> result = new ArrayList<String>();
- for (int i = 0; i < users.length; i++) {
- result.add(users[i].getId() + "/" + users[i].getLogin());
+ public List<User> getUsers() throws Exception {
+ User[] users = RemoteSecurityService.getSecurityService().getUsers();
+ List<User> result = new ArrayList<User>();
+ for (User user : users) {
+ result.add(user);
}
return result;
}
- public List<String> getUsersInGroup() throws NamingException {
+ public List<Group> getGroups() throws Exception {
+ Group[] groups = RemoteSecurityService.getSecurityService().getGroups();
+ List<Group> result = new ArrayList<Group>();
+ for (Group group : groups) {
+ result.add(group);
+ }
+ return result;
+ }
+
+ public ValueEncoder getUserEncoder() {
+ return userEncoder;
+ }
+
+ public ValueEncoder getGroupEncoder() {
+ return groupEncoder;
+ }
+
+ public boolean getSuperAdmin() {
+ return isUserSuperAdmin();
+ }
+
+ public List<User> getUsersInGroup() throws NamingException {
return usersInGroup;
}
- public void setUsersInGroup(List<String> usersInGroup)
+ public void setUsersInGroup(List<User> usersInGroup)
throws NamingException {
this.usersInGroup = usersInGroup;
}
@@ -102,10 +136,6 @@
return group;
}
- public StringValueEncoder getStringEncoder() {
- return stringEncoder;
- }
-
public GroupList getGroupList() {
return groupList;
}
@@ -114,4 +144,20 @@
this.groupList = groupList;
}
+ public List<Group> getGroupsInGroup() {
+ return groupsInGroup;
+ }
+
+ public void setGroupsInGroup(List<Group> groupsInGroup) {
+ this.groupsInGroup = groupsInGroup;
+ }
+
+ public User getOwner() {
+ return this.group.getOwner();
+ }
+
+ public void setOwner(User owner) {
+ this.group.setOwner(owner);
+ }
+
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupList.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupList.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupList.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -3,8 +3,6 @@
import java.util.ArrayList;
import java.util.List;
-import javax.naming.NamingException;
-
import org.apache.tapestry.ComponentResources;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.annotations.Retain;
@@ -12,10 +10,9 @@
import org.apache.tapestry.ioc.annotations.Inject;
import org.apache.tapestry.services.BeanModelSource;
-import fr.cemagref.simexplorer.is.entities.metadata.MetaDataEntity;
import fr.cemagref.simexplorer.is.security.entities.Group;
import fr.cemagref.simexplorer.is.ui.web.pages.security.AdminPage;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteSecurityService;
public class GroupList extends AdminPage {
@@ -23,7 +20,7 @@
private BeanModel model;
private Group group;
-
+
@Inject
private BeanModelSource beanModelSource;
@@ -32,7 +29,7 @@
@InjectPage
private GroupEdit groupEdit;
-
+
void pageLoaded() {
model = beanModelSource.create(Group.class, true, resources);
List<String> wantedProperties = new ArrayList<String>();
@@ -46,32 +43,33 @@
model.add("edit", null);
model.add("delete", null);
}
-
- public Group[] getGroups() throws NamingException {
+
+ public Group[] getGroups() throws Exception {
Group[] groups = null;
- if (isUserSuperAdmin(getToken())) {
- groups = ServiceFactory.getSecurityService().getGroups();
+ if (isUserSuperAdmin()) {
+ groups = RemoteSecurityService.getSecurityService().getGroups();
} else {
- groups = ServiceFactory.getSecurityService().getGroupsOwnedBy(getUserLogged(getToken()));
- }
+ groups = RemoteSecurityService.getSecurityService()
+ .getGroupsOwnedBy(getUserLogged());
+ }
return groups;
}
public Object onActionFromDelete(Integer context) throws Exception {
- ServiceFactory.getSecurityService().deleteGroup(context);
+ RemoteSecurityService.getSecurityService().deleteGroup(context);
return null;
}
-
+
public Object onActionFromEdit(Integer context) throws Exception {
groupEdit.setup(context);
return groupEdit;
}
-
+
public Object onActionFromAdd() throws Exception {
groupEdit.setup(-1);
return groupEdit;
}
-
+
public Group getGroup() {
return group;
}
@@ -91,5 +89,5 @@
public void setGroupEdit(GroupEdit groupEdit) {
this.groupEdit = groupEdit;
}
-
+
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/Login.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/Login.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/Login.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,12 +1,11 @@
package fr.cemagref.simexplorer.is.ui.web.pages;
-import javax.naming.NamingException;
-
import org.apache.tapestry.annotations.ApplicationState;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.annotations.Persist;
+import org.apache.tapestry.ioc.annotations.Inject;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteSecurityService;
public class Login {
@@ -19,10 +18,10 @@
@ApplicationState
private String token;
-
- public Object onSuccess() throws NamingException {
+
+ public Object onSuccess() throws Exception {
Object result = null;
- token = ServiceFactory.getSecurityService().loginUser(user,
+ token = RemoteSecurityService.getSecurityService().loginUser(user,
password);
if (token != null) {
result = elementList;
@@ -53,5 +52,5 @@
public String getWindowTitle() {
return "Login";
}
-
+
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -2,18 +2,16 @@
import java.util.ArrayList;
import java.util.List;
-import java.util.StringTokenizer;
-import javax.naming.NamingException;
-
+import org.apache.tapestry.ValueEncoder;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.annotations.Persist;
-import org.apache.tapestry.internal.services.StringValueEncoder;
import fr.cemagref.simexplorer.is.security.entities.Group;
import fr.cemagref.simexplorer.is.security.entities.User;
import fr.cemagref.simexplorer.is.ui.web.pages.security.AdminPage;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.GroupValueEncoder;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteSecurityService;
public class UserEdit extends AdminPage {
@@ -23,55 +21,64 @@
@InjectPage
private UserList userList;
- private StringValueEncoder stringEncoder = new StringValueEncoder();
-
@Persist
- private List<String> groupsOfUser;
+ private List<Group> groupsOfUser;
- void setup(int groupId) throws NamingException {
- this.groupsOfUser = new ArrayList<String>();
+ private static final GroupValueEncoder groupEncoder = new GroupValueEncoder();
+
+ void setup(int groupId) throws Exception {
+ this.groupsOfUser = new ArrayList<Group>();
if (groupId == -1) {
this.user = new User();
} else {
- this.user = ServiceFactory.getSecurityService().getUser(groupId);
- Group[] groups = ServiceFactory.getSecurityService()
+ this.user = RemoteSecurityService.getSecurityService().getUser(
+ groupId);
+ Group[] groups = RemoteSecurityService.getSecurityService()
.getGroupsOfUser(this.user);
for (Group group : groups) {
- groupsOfUser.add(group.getId() + "/" + group.getName());
+ groupsOfUser.add(group);
}
}
}
- public Object onSuccess() throws NamingException {
+ public Object onSuccess() throws Exception {
if (user.getId() == null) {
- ServiceFactory.getSecurityService().saveUser(user.getLogin(),
- user.getMail());
+ user = RemoteSecurityService.getSecurityService().saveUser(
+ user.getLogin(), user.getMail());
} else {
- ServiceFactory.getSecurityService().updateUser(user);
+ user = RemoteSecurityService.getSecurityService().updateUser(user);
}
Integer[] groupsIds = new Integer[groupsOfUser.size()];
int i = 0;
- for (String group : groupsOfUser) {
- StringTokenizer st = new StringTokenizer(group, "/");
- groupsIds[i] = new Integer(st.nextToken());
+ for (Group group : groupsOfUser) {
+ groupsIds[i] = group.getId();
i++;
}
- ServiceFactory.getSecurityService().setGroupsOfUser(user, groupsIds);
+ RemoteSecurityService.getSecurityService().setGroupsOfUser(user,
+ groupsIds);
return userList;
}
- public List<String> getGroups() throws NamingException {
- Group[] groups = ServiceFactory.getSecurityService().getGroups();
- List<String> result = new ArrayList<String>();
- for (int i = 0; i < groups.length; i++) {
- result.add(groups[i].getId() + "/" + groups[i].getName());
+ public List<Group> getGroups() throws Exception {
+ Group[] groups = RemoteSecurityService.getSecurityService().getGroups();
+ List<Group> result = new ArrayList<Group>();
+ for (Group group : groups) {
+ result.add(group);
}
return result;
}
+ public ValueEncoder getGroupEncoder() {
+ return groupEncoder;
+ }
+
+ public boolean getCreating() {
+ return (user.getId() == null);
+ }
+
public Object onActionFromCancel() {
return userList;
}
@@ -88,16 +95,12 @@
return user;
}
- public List<String> getGroupsOfUser() {
+ public List<Group> getGroupsOfUser() {
return groupsOfUser;
}
- public void setGroupsOfUser(List<String> groupsOfUser) {
+ public void setGroupsOfUser(List<Group> groupsOfUser) {
this.groupsOfUser = groupsOfUser;
}
- public StringValueEncoder getStringEncoder() {
- return stringEncoder;
- }
-
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserList.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserList.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserList.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -3,8 +3,6 @@
import java.util.ArrayList;
import java.util.List;
-import javax.naming.NamingException;
-
import org.apache.tapestry.ComponentResources;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.annotations.Retain;
@@ -14,7 +12,7 @@
import fr.cemagref.simexplorer.is.security.entities.User;
import fr.cemagref.simexplorer.is.ui.web.pages.security.AdminPage;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteSecurityService;
public class UserList extends AdminPage {
@@ -50,14 +48,14 @@
model.add("delete", null);
}
- public User[] getUsers() throws NamingException {
+ public User[] getUsers() throws Exception {
User[] users = null;
- users = ServiceFactory.getSecurityService().getUsers();
+ users = RemoteSecurityService.getSecurityService().getUsers();
return users;
}
public Object onActionFromDelete(Integer context) throws Exception {
- ServiceFactory.getSecurityService().deleteUser(context);
+ RemoteSecurityService.getSecurityService().deleteUser(context);
return null;
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/AdminPage.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/AdminPage.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/AdminPage.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -3,7 +3,7 @@
public abstract class AdminPage extends ProtectedPage {
public boolean hasAccessToPage() {
- return isUserAdmin(getToken());
+ return isUserAdmin();
}
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/ProtectedPage.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/ProtectedPage.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/ProtectedPage.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,11 +1,10 @@
package fr.cemagref.simexplorer.is.ui.web.pages.security;
-import javax.naming.NamingException;
-
import org.apache.tapestry.annotations.ApplicationState;
+import org.apache.tapestry.ioc.annotations.Inject;
import fr.cemagref.simexplorer.is.security.entities.User;
-import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
+import fr.cemagref.simexplorer.is.ui.web.services.RemoteSecurityService;
public abstract class ProtectedPage {
@@ -18,12 +17,12 @@
return null;
}
- public static User getUserLogged(String aToken) {
+ public User getUserLogged() {
User loggedUser = null;
- if (aToken != null) {
+ if (token != null) {
try {
- loggedUser = ServiceFactory.getSecurityService().getLoggedUser(
- aToken);
+ loggedUser = RemoteSecurityService.getSecurityService().getLoggedUser(
+ token);
} catch (Exception e) {
// TODO: handle exception
}
@@ -31,10 +30,10 @@
return loggedUser;
}
- public static boolean isUserLogged(String aToken) {
+ public boolean isUserLogged() {
boolean result = false;
try {
- if (getUserLogged(aToken) != null) {
+ if (getUserLogged() != null) {
result = true;
}
} catch (Exception e) {
@@ -43,10 +42,10 @@
return result;
}
- public static boolean isUserAdmin(String aToken) {
+ public boolean isUserAdmin() {
boolean result = false;
try {
- User user = getUserLogged(aToken);
+ User user = getUserLogged();
if (user != null && user.isAdmin()) {
result = true;
}
@@ -56,10 +55,10 @@
return result;
}
- public static boolean isUserSuperAdmin(String aToken) {
+ public boolean isUserSuperAdmin() {
boolean result = false;
try {
- User user = getUserLogged(aToken);
+ User user = getUserLogged();
if (user != null && user.isSuperAdmin()) {
result = true;
}
@@ -71,12 +70,4 @@
abstract boolean hasAccessToPage();
- public String getToken() {
- return token;
- }
-
- public void setToken(String token) {
- this.token = token;
- }
-
}
\ No newline at end of file
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/SuperAdminPage.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/SuperAdminPage.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/SuperAdminPage.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -3,7 +3,7 @@
public abstract class SuperAdminPage extends ProtectedPage {
public boolean hasAccessToPage() {
- return isUserSuperAdmin(getToken());
+ return isUserSuperAdmin();
}
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/UserPage.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/UserPage.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/security/UserPage.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -3,7 +3,7 @@
public abstract class UserPage extends ProtectedPage {
public boolean hasAccessToPage() {
- return isUserLogged(getToken());
+ return isUserLogged();
}
}
Added: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/AppModule.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/AppModule.java (rev 0)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/AppModule.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -0,0 +1,106 @@
+package fr.cemagref.simexplorer.is.ui.web.services;
+
+import java.io.IOException;
+
+import org.apache.tapestry.internal.services.GenericValueEncoderFactory;
+import org.apache.tapestry.ioc.MappedConfiguration;
+import org.apache.tapestry.ioc.OrderedConfiguration;
+import org.apache.tapestry.ioc.ServiceBinder;
+import org.apache.tapestry.ioc.annotations.InjectService;
+import org.apache.tapestry.services.Request;
+import org.apache.tapestry.services.RequestFilter;
+import org.apache.tapestry.services.RequestHandler;
+import org.apache.tapestry.services.Response;
+import org.apache.tapestry.services.ValueEncoderFactory;
+import org.slf4j.Logger;
+
+import fr.cemagref.simexplorer.is.security.entities.Group;
+import fr.cemagref.simexplorer.is.security.entities.User;
+
+public class AppModule {
+ public static void bind(ServiceBinder binder) {
+ /*
+ binder.bind(RemoteStorageService.class, RemoteStorageServiceImpl.class);
+ binder.bind(RemoteSecurityService.class, RemoteSecurityServiceImpl.class);
+ */
+
+ // Make bind() calls on the binder object to define most IoC services.
+ // Use service builder methods (example below) when the implementation
+ // is provided inline, or requires more initialization than simply
+ // invoking the constructor.
+ }
+
+ public static void contributeApplicationDefaults(
+ MappedConfiguration<String, String> configuration) {
+ configuration.add("tapestry.supported-locales", "en");
+ configuration.add("tapestry.supported-locales", "fr");
+ }
+
+ public static void contributeValueEncoderSource(
+ MappedConfiguration<Class, ValueEncoderFactory> configuration) {
+ configuration.add(User.class, new GenericValueEncoderFactory<User>(
+ new UserValueEncoder()));
+ configuration.add(Group.class, new GenericValueEncoderFactory<Group>(
+ new GroupValueEncoder()));
+ }
+
+ /**
+ * This is a service definition, the service will be named "TimingFilter".
+ * The interface, RequestFilter, is used within the RequestHandler service
+ * pipeline, which is built from the RequestHandler service configuration.
+ * Tapestry IoC is responsible for passing in an appropriate Log instance.
+ * Requests for static resources are handled at a higher level, so this
+ * filter will only be invoked for Tapestry related requests.
+ *
+ * <p>
+ * Service builder methods are useful when the implementation is inline as
+ * an inner class (as here) or require some other kind of special
+ * initialization. In most cases, use the static bind() method instead.
+ *
+ * <p>
+ * If this method was named "build", then the service id would be taken from
+ * the service interface and would be "RequestFilter". Since Tapestry
+ * already defines a service named "RequestFilter" we use an explicit
+ * service id that we can reference inside the contribution method.
+ */
+ public RequestFilter buildTimingFilter(final Logger log) {
+ return new RequestFilter() {
+ public boolean service(Request request, Response response,
+ RequestHandler handler) throws IOException {
+ long startTime = System.currentTimeMillis();
+
+ try {
+ // The reponsibility of a filter is to invoke the
+ // corresponding method
+ // in the handler. When you chain multiple filters together,
+ // each filter
+ // received a handler that is a bridge to the next filter.
+
+ return handler.service(request, response);
+ } finally {
+ long elapsed = System.currentTimeMillis() - startTime;
+
+ log.info(String.format("Request time: %d ms", elapsed));
+ }
+ }
+ };
+ }
+
+ /**
+ * This is a contribution to the RequestHandler service configuration. This
+ * is how we extend Tapestry using the timing filter. A common use for this
+ * kind of filter is transaction management or security.
+ */
+ public void contributeRequestHandler(
+ OrderedConfiguration<RequestFilter> configuration,
+ @InjectService("TimingFilter")
+ RequestFilter filter) {
+ // Each contribution to an ordered configuration has a name, When
+ // necessary, you may
+ // set constraints to precisely control the invocation order of the
+ // contributed filter
+ // within the pipeline.
+
+ configuration.add("Timing", filter);
+ }
+}
Added: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/GroupValueEncoder.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/GroupValueEncoder.java (rev 0)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/GroupValueEncoder.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -0,0 +1,23 @@
+package fr.cemagref.simexplorer.is.ui.web.services;
+
+import org.apache.tapestry.ValueEncoder;
+
+import fr.cemagref.simexplorer.is.security.entities.Group;
+
+public class GroupValueEncoder implements ValueEncoder<Group> {
+
+ public String toClient(Group arg0) {
+ return Integer.toString(arg0.getId());
+ }
+
+ public Group toValue(String arg0) {
+ Group group = null;
+ try {
+ group = RemoteSecurityService.getSecurityService().getGroup(Integer.decode(arg0));
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+ return group;
+ }
+
+}
Added: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteSecurityService.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteSecurityService.java (rev 0)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteSecurityService.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -0,0 +1,10 @@
+package fr.cemagref.simexplorer.is.ui.web.services;
+
+import fr.cemagref.simexplorer.is.security.service.AuthenticationService;
+
+public class RemoteSecurityService extends RemoteService {
+
+ public static AuthenticationService getSecurityService() throws Exception {
+ return (AuthenticationService) getService("AuthenticationService");
+ }
+}
Added: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteService.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteService.java (rev 0)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteService.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -0,0 +1,31 @@
+package fr.cemagref.simexplorer.is.ui.web.services;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public abstract class RemoteService {
+
+ protected static Map<String, Object> services = new HashMap<String, Object>();
+
+ protected static Object getService(String serviceName)
+ throws NamingException {
+ if (services.get(serviceName) == null) {
+ Properties properties = (Properties) System.getProperties().clone();
+ properties.put("java.naming.provider.url", "jnp://localhost:1099");
+ properties.put("java.naming.factory.initial",
+ "org.jnp.interfaces.NamingContextFactory");
+ properties
+ .put("java.naming.factory.url.pkgs", "org.jnp.interfaces");
+
+ Context context = new InitialContext(properties);
+ services.put(serviceName, context.lookup(serviceName));
+ }
+ return services.get(serviceName);
+ }
+
+}
Added: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteStorageService.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteStorageService.java (rev 0)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/RemoteStorageService.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -0,0 +1,10 @@
+package fr.cemagref.simexplorer.is.ui.web.services;
+
+import fr.cemagref.simexplorer.is.service.StorageService;
+
+public class RemoteStorageService extends RemoteService {
+
+ public static StorageService getStorageService() throws Exception {
+ return (StorageService) getService("StorageService");
+ }
+}
Deleted: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/ServiceFactory.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/ServiceFactory.java 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/ServiceFactory.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,42 +0,0 @@
-package fr.cemagref.simexplorer.is.ui.web.services;
-
-import java.util.Properties;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-import fr.cemagref.simexplorer.is.security.service.AuthenticationService;
-import fr.cemagref.simexplorer.is.service.StorageService;
-
-public class ServiceFactory {
-
- private static StorageService serviceProjets = null;
- private static AuthenticationService securityProjets = null;
-
- public static StorageService getStorageService() throws NamingException {
- if (serviceProjets == null) {
- serviceProjets = (StorageService) getService("StorageService");
- }
- return serviceProjets;
- }
-
- public static AuthenticationService getSecurityService() throws NamingException {
- if (securityProjets == null) {
- securityProjets = (AuthenticationService) getService("AuthenticationService");
- }
- return securityProjets;
- }
-
- private static Object getService(String serviceName) throws NamingException {
- Properties properties = (Properties) System.getProperties().clone();
- properties.put("java.naming.provider.url", "jnp://localhost:1099");
- properties.put("java.naming.factory.initial",
- "org.jnp.interfaces.NamingContextFactory");
- properties.put("java.naming.factory.url.pkgs", "org.jnp.interfaces");
-
- Context context = new InitialContext(properties);
- return context.lookup(serviceName);
- }
-
-}
Added: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/UserValueEncoder.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/UserValueEncoder.java (rev 0)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/services/UserValueEncoder.java 2008-01-21 18:44:16 UTC (rev 335)
@@ -0,0 +1,24 @@
+package fr.cemagref.simexplorer.is.ui.web.services;
+
+import org.apache.tapestry.ValueEncoder;
+
+import fr.cemagref.simexplorer.is.security.entities.User;
+
+public class UserValueEncoder implements ValueEncoder<User> {
+
+ public String toClient(User arg0) {
+ return Integer.toString(arg0.getId());
+ }
+
+ public User toValue(String arg0) {
+ User user = null;
+ try {
+ user = RemoteSecurityService.getSecurityService().getUser(
+ Integer.decode(arg0));
+ } catch (Exception e) {
+ // TODO: handle exception
+ }
+ return user;
+ }
+
+}
Modified: trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml
===================================================================
--- trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml 2008-01-21 18:44:16 UTC (rev 335)
@@ -4,20 +4,22 @@
<t:form>
<t:errors />
- <t:errors/>
-
- <p>${message:name} :
- <input t:type="TextField" t:id="name" t:validate="required,minlength=3"
- t:value="group.name" size="30"/></p>
+ <t:errors />
- <p>${message:userMembers} :
- <input t:type="Palette" model="users" selected="usersInGroup" encoder="stringEncoder"/>
- </p>
+ <p>${message:name} : <input t:type="TextField" t:id="name"
+ t:validate="required,minlength=3" t:value="group.name" size="30" /></p>
- <p>${message:groupMembers} :
- <input t:type="Palette" model="groups" selected="groupsInGroup" encoder="stringEncoder"/>
- </p>
-
+ <t:if test="superAdmin">
+ <p><t:label for="owner" /> : <input t:type="Select" t:id="owner"
+ t:value="owner" model="users" /></p>
+ </t:if>
+
+ <p>${message:userMembers} : <input t:type="Palette" model="users"
+ selected="usersInGroup" encoder="userEncoder" /></p>
+
+ <p>${message:groupMembers} : <input t:type="Palette"
+ model="groups" selected="groupsInGroup" encoder="groupEncoder" /></p>
+
<input t:type="Submit" t:value="message:submit" />
<a t:type="actionlink" t:id="cancel">${message:cancel}</a>
Modified: trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml
===================================================================
--- trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml 2008-01-21 18:44:16 UTC (rev 335)
@@ -4,7 +4,13 @@
<t:form>
<t:errors />
- <p>${message:name} : ${user.login}</p>
+ <p>${message:name} : <t:if test="creating">
+ <input t:type="TextField" t:id="login"
+ t:validate="required,minlength=4" t:value="user.login" size="40" />
+ <t:parameter name="else">
+ ${user.login}
+ </t:parameter>
+ </t:if></p>
<p><t:label for="mail" />: <input t:type="TextField" t:id="mail"
t:validate="required,minlength=4" t:value="user.mail" size="40" /></p>
@@ -18,11 +24,10 @@
<p>${message:password} : <a t:type="ActionLink"
t:id="resetPassword" t:context="user.id">${message:resetPassword}</a>
</p>
-
- <p>${message:memberOf} :
- <input t:type="Palette" model="groups" selected="groupsOfUser" encoder="stringEncoder"/>
- </p>
-
+
+ <p>${message:memberOf} : <input t:type="Palette" model="groups"
+ selected="groupsOfUser" encoder="groupEncoder" /></p>
+
<input t:type="Submit" t:value="message:submit" />
<a t:type="actionlink" t:id="cancel">${message:cancel}</a>
</t:form>
Modified: trunk/simexplorer-is-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/simexplorer-is-web/src/main/webapp/WEB-INF/web.xml 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/main/webapp/WEB-INF/web.xml 2008-01-21 18:44:16 UTC (rev 335)
@@ -13,11 +13,12 @@
</context-param>
<filter>
- <filter-name>tapestryfilter</filter-name>
+ <filter-name>app</filter-name>
<filter-class>org.apache.tapestry.TapestryFilter</filter-class>
</filter>
<filter-mapping>
- <filter-name>tapestryfilter</filter-name>
+ <!-- do not change app as it uses for finding AppModule -->
+ <filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Modified: trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/components/css/Layout.css
===================================================================
--- trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/components/css/Layout.css 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/components/css/Layout.css 2008-01-21 18:44:16 UTC (rev 335)
@@ -166,6 +166,10 @@
font-family: verdana, arial, helvetica, sans-serif;
}
+menu.Menu>li>a.Link:Visited {
+ color: black;
+}
+
.Hide {
display: none;
}
Modified: trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.properties
===================================================================
--- trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.properties 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.properties 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,3 +1,5 @@
name=Name
+userMembers=User members
+groupMembers=Group members
cancel=Cancel
submit=Submit
\ No newline at end of file
Modified: trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.properties
===================================================================
--- trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.properties 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/src/resources/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.properties 2008-01-21 18:44:16 UTC (rev 335)
@@ -7,4 +7,5 @@
submit=Submit
cancel=Cancel
password=Password
-resetPassword=Reset password
\ No newline at end of file
+resetPassword=Reset password
+memberOf=Member of
\ No newline at end of file
Deleted: trunk/simexplorer-is-web/tomcatstart.sh
===================================================================
--- trunk/simexplorer-is-web/tomcatstart.sh 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/tomcatstart.sh 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,3 +0,0 @@
-export JPDA_TRANSPORT=dt_socket
-export JPDA_ADDRESS=8786
-/opt/apache-tomcat-5.5.25/bin/catalina.sh jpda start
Deleted: trunk/simexplorer-is-web/tomcatstop.sh
===================================================================
--- trunk/simexplorer-is-web/tomcatstop.sh 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/tomcatstop.sh 2008-01-21 18:44:16 UTC (rev 335)
@@ -1,4 +0,0 @@
-export JPDA_TRANSPORT=dt_socket
-export JPDA_ADDRESS=8786
-/opt/apache-tomcat-5.5.25/bin/catalina.sh jpda stop
-
Deleted: trunk/simexplorer-is-web/undeploy.sh
===================================================================
--- trunk/simexplorer-is-web/undeploy.sh 2008-01-21 09:35:17 UTC (rev 334)
+++ trunk/simexplorer-is-web/undeploy.sh 2008-01-21 18:44:16 UTC (rev 335)
@@ -1 +0,0 @@
-mvn tomcat:undeploy
1
0
r334 - in trunk: simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service simexplorer-is-security/src/test/fr/cemagref/simexplorer/is/security/test simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages simexplorer-is-web/src/main/webapp
by glandais@users.labs.libre-entreprise.org 21 Jan '08
by glandais@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: glandais
Date: 2008-01-21 09:35:17 +0000 (Mon, 21 Jan 2008)
New Revision: 334
Modified:
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java
trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java
trunk/simexplorer-is-security/src/test/fr/cemagref/simexplorer/is/security/test/SecurityTestCase.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java
trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java
trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml
trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml
Log:
User/group edit
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurity.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -40,4 +40,6 @@
public List<User> getUsersOfGroup(Group group);
+ public List<Group> getGroupsOfUser(User user);
+
}
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/dao/DaoSecurityImpl.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -105,4 +105,10 @@
.setParameter("group", group).getResultList();
}
+ public List<Group> getGroupsOfUser(User user) {
+ return em.createQuery(
+ "select distinct u.groups from User u where u = :user")
+ .setParameter("user", user).getResultList();
+ }
+
}
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationService.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -30,6 +30,10 @@
public void setUsersOfGroup(Group group, Integer[] usersInGroup);
+ public Group[] getGroupsOfUser(User user);
+
+ public void setGroupsOfUser(User user, Integer[] groupsIds);
+
public Group saveGroup(String name, User owner);
public Group getGroup(Integer id);
Modified: trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java
===================================================================
--- trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-security/src/java/fr/cemagref/simexplorer/is/security/service/AuthenticationServiceImpl.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -222,13 +222,28 @@
for (Integer idUser : usersToAdd) {
User user = dao.getUser(idUser);
user.getGroups().add(group);
- dao.saveUser(user);
+ dao.updateUser(user);
}
for (Integer idUser : usersToRemove) {
User user = dao.getUser(idUser);
removeUserFromGroup(user, group);
- dao.saveUser(user);
+ dao.updateUser(user);
}
}
+ public void setGroupsOfUser(User user, Integer[] groupsIds) {
+ User realUser = dao.getUser(user.getId());
+ realUser.getGroups().clear();
+ for (int i = 0; i < groupsIds.length; i++) {
+ Group group = dao.getGroup(groupsIds[i]);
+ realUser.getGroups().add(group);
+ }
+ dao.updateUser(user);
+
+ }
+
+ public Group[] getGroupsOfUser(User user) {
+ return dao.getGroupsOfUser(user).toArray(new Group[0]);
+ }
+
}
Modified: trunk/simexplorer-is-security/src/test/fr/cemagref/simexplorer/is/security/test/SecurityTestCase.java
===================================================================
--- trunk/simexplorer-is-security/src/test/fr/cemagref/simexplorer/is/security/test/SecurityTestCase.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-security/src/test/fr/cemagref/simexplorer/is/security/test/SecurityTestCase.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -29,6 +29,14 @@
}
public void testSecurityEntities() {
+ /*
+ User user = authenticationService.getUser("user3");
+ Group[] groups = authenticationService.getGroupsOfUser(user);
+ for (Group group : groups) {
+ System.out.println(group.getName());
+ }
+ */
+
User[] simpleUsers = new User[20];
for (int i = 0; i < 20; i++) {
simpleUsers[i] = authenticationService.saveUser("user" + i,
@@ -60,6 +68,7 @@
superAdminUser.setAdmin(true);
superAdminUser.setSuperAdmin(true);
authenticationService.updateUser(superAdminUser);
+
/*
User[] users = new User[10];
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/GroupEdit.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -1,5 +1,7 @@
package fr.cemagref.simexplorer.is.ui.web.pages;
+import java.util.ArrayList;
+import java.util.List;
import java.util.StringTokenizer;
import javax.naming.NamingException;
@@ -24,20 +26,21 @@
private StringValueEncoder stringEncoder = new StringValueEncoder();
@Persist
- private String[] usersInGroup;
+ private List<String> usersInGroup;
+ @Persist
+ private List<String> groupsInGroup;
+
void setup(int groupId) throws NamingException {
+ this.usersInGroup = new ArrayList<String>();
if (groupId == -1) {
this.group = new Group();
- this.usersInGroup = new String[0];
} else {
this.group = ServiceFactory.getSecurityService().getGroup(groupId);
User[] users = ServiceFactory.getSecurityService().getUsersOfGroup(
group);
- this.usersInGroup = new String[users.length];
- for (int i = 0; i < users.length; i++) {
- this.usersInGroup[i] = users[i].getId() + "/"
- + users[i].getLogin();
+ for (User user : users) {
+ this.usersInGroup.add(user.getId() + "/" + user.getLogin());
}
}
}
@@ -49,12 +52,27 @@
} else {
ServiceFactory.getSecurityService().updateGroup(group);
}
- Integer[] usersIds = new Integer[usersInGroup.length];
- for (int i = 0; i < usersIds.length; i++) {
- StringTokenizer st = new StringTokenizer(usersInGroup[i], "/");
+
+ Integer[] usersIds = new Integer[usersInGroup.size()];
+ int i = 0;
+ for (String user : usersInGroup) {
+ StringTokenizer st = new StringTokenizer(user, "/");
usersIds[i] = new Integer(st.nextToken());
+ i++;
}
ServiceFactory.getSecurityService().setUsersOfGroup(group, usersIds);
+
+ /*
+ Integer[] groupsIds = new Integer[groupsInGroup.size()];
+ i = 0;
+ for (String group : groupsInGroup) {
+ StringTokenizer st = new StringTokenizer(group, "/");
+ groupsIds[i] = new Integer(st.nextToken());
+ i++;
+ }
+ ServiceFactory.getSecurityService().setGroupsOfGroup(group, groupsIds);
+ */
+
return groupList;
}
@@ -62,20 +80,21 @@
return groupList;
}
- public String[] getUsers() throws NamingException {
+ public List<String> getUsers() throws NamingException {
User[] users = ServiceFactory.getSecurityService().getUsers();
- String[] result = new String[users.length];
+ List<String> result = new ArrayList<String>();
for (int i = 0; i < users.length; i++) {
- result[i] = users[i].getId() + "/" + users[i].getLogin();
+ result.add(users[i].getId() + "/" + users[i].getLogin());
}
return result;
}
- public String[] getUsersInGroup() throws NamingException {
+ public List<String> getUsersInGroup() throws NamingException {
return usersInGroup;
}
- public void setUsersInGroup(String[] usersInGroup) throws NamingException {
+ public void setUsersInGroup(List<String> usersInGroup)
+ throws NamingException {
this.usersInGroup = usersInGroup;
}
Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java
===================================================================
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/UserEdit.java 2008-01-21 09:35:17 UTC (rev 334)
@@ -1,10 +1,16 @@
package fr.cemagref.simexplorer.is.ui.web.pages;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
import javax.naming.NamingException;
import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.annotations.Persist;
+import org.apache.tapestry.internal.services.StringValueEncoder;
+import fr.cemagref.simexplorer.is.security.entities.Group;
import fr.cemagref.simexplorer.is.security.entities.User;
import fr.cemagref.simexplorer.is.ui.web.pages.security.AdminPage;
import fr.cemagref.simexplorer.is.ui.web.services.ServiceFactory;
@@ -17,24 +23,55 @@
@InjectPage
private UserList userList;
+ private StringValueEncoder stringEncoder = new StringValueEncoder();
+
+ @Persist
+ private List<String> groupsOfUser;
+
void setup(int groupId) throws NamingException {
+ this.groupsOfUser = new ArrayList<String>();
if (groupId == -1) {
this.user = new User();
} else {
this.user = ServiceFactory.getSecurityService().getUser(groupId);
+ Group[] groups = ServiceFactory.getSecurityService()
+ .getGroupsOfUser(this.user);
+ for (Group group : groups) {
+ groupsOfUser.add(group.getId() + "/" + group.getName());
+ }
}
}
public Object onSuccess() throws NamingException {
+
if (user.getId() == null) {
ServiceFactory.getSecurityService().saveUser(user.getLogin(),
user.getMail());
} else {
ServiceFactory.getSecurityService().updateUser(user);
}
+
+ Integer[] groupsIds = new Integer[groupsOfUser.size()];
+ int i = 0;
+ for (String group : groupsOfUser) {
+ StringTokenizer st = new StringTokenizer(group, "/");
+ groupsIds[i] = new Integer(st.nextToken());
+ i++;
+ }
+ ServiceFactory.getSecurityService().setGroupsOfUser(user, groupsIds);
+
return userList;
}
+ public List<String> getGroups() throws NamingException {
+ Group[] groups = ServiceFactory.getSecurityService().getGroups();
+ List<String> result = new ArrayList<String>();
+ for (int i = 0; i < groups.length; i++) {
+ result.add(groups[i].getId() + "/" + groups[i].getName());
+ }
+ return result;
+ }
+
public Object onActionFromCancel() {
return userList;
}
@@ -51,4 +88,16 @@
return user;
}
+ public List<String> getGroupsOfUser() {
+ return groupsOfUser;
+ }
+
+ public void setGroupsOfUser(List<String> groupsOfUser) {
+ this.groupsOfUser = groupsOfUser;
+ }
+
+ public StringValueEncoder getStringEncoder() {
+ return stringEncoder;
+ }
+
}
Modified: trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml
===================================================================
--- trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-web/src/main/webapp/GroupEdit.tml 2008-01-21 09:35:17 UTC (rev 334)
@@ -14,11 +14,10 @@
<input t:type="Palette" model="users" selected="usersInGroup" encoder="stringEncoder"/>
</p>
-<!--
<p>${message:groupMembers} :
- <input t:type="Palette" model="groups" selected="paletteSelectedValues" encoder="stringEncoder"/>
+ <input t:type="Palette" model="groups" selected="groupsInGroup" encoder="stringEncoder"/>
</p>
- -->
+
<input t:type="Submit" t:value="message:submit" />
<a t:type="actionlink" t:id="cancel">${message:cancel}</a>
Modified: trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml
===================================================================
--- trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml 2008-01-21 04:50:07 UTC (rev 333)
+++ trunk/simexplorer-is-web/src/main/webapp/UserEdit.tml 2008-01-21 09:35:17 UTC (rev 334)
@@ -19,6 +19,10 @@
t:id="resetPassword" t:context="user.id">${message:resetPassword}</a>
</p>
+ <p>${message:memberOf} :
+ <input t:type="Palette" model="groups" selected="groupsOfUser" encoder="stringEncoder"/>
+ </p>
+
<input t:type="Submit" t:value="message:submit" />
<a t:type="actionlink" t:id="cancel">${message:cancel}</a>
</t:form>
1
0
r333 - trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:50:07 +0000 (Mon, 21 Jan 2008)
New Revision: 333
Removed:
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java
Log:
creation paquetage pagination
Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java 2008-01-21 04:49:55 UTC (rev 332)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java 2008-01-21 04:50:07 UTC (rev 333)
@@ -1,51 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit, Gabriel Landais
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package fr.cemagref.simexplorer.is.ui.swing.action.application;
-
-import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
-import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
-import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
-import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
-
-/**
- * Action pour lancer une recherche d'application
- *
- * @author chemit
- */
- at SelectActionConfig(
- actionCommand = "changeSizor",
- container = SimExplorerUI.class,
- name = "simexplorer.action.pagination.changeSizor",
- shortDescription = "simexplorer.action.pagination.changeSizor.tooltip",
- longDescription = "simexplorer.action.pagination.changeSizor.help",
- selectedIndex = 3
-)
-public class ChangeSizorAction extends SimExplorerAbstractAction {
- private static final long serialVersionUID = 5137512273375524199L;
-
- public ChangeSizorAction(String name) {
- super(name);
- }
-
- @Override
- public void actionPerformed(java.awt.event.ActionEvent e) {
- super.actionPerformed(e);
- //TODO
- }
-}
\ No newline at end of file
Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java 2008-01-21 04:49:55 UTC (rev 332)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java 2008-01-21 04:50:07 UTC (rev 333)
@@ -1,53 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit, Gabriel Landais
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package fr.cemagref.simexplorer.is.ui.swing.action.application;
-
-import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
-import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
-import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
-
-/**
- * Action pour lancer une recherche d'application
- *
- * @author chemit
- */
- at ActionConfig(
- actionCommand = "goFirstPage",
- container = SimExplorerUI.class,
- name = "simexplorer.action.pagination.goFirstPage",
- shortDescription = "simexplorer.action.pagination.goFirstPage.tooltip",
- longDescription = "simexplorer.action.pagination.goFirstPage.help",
- smallIcon = "action/go-first.png",
- mnemonic='f',
- hideActionText = true
-)
-public class GoFirstPageAction extends SimExplorerAbstractAction {
-
- private static final long serialVersionUID = -7292269279566418188L;
-
- public GoFirstPageAction(String name) {
- super(name);
- }
-
- @Override
- public void actionPerformed(java.awt.event.ActionEvent e) {
- super.actionPerformed(e);
- //TODO
- }
-}
\ No newline at end of file
Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java 2008-01-21 04:49:55 UTC (rev 332)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java 2008-01-21 04:50:07 UTC (rev 333)
@@ -1,53 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit, Gabriel Landais
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package fr.cemagref.simexplorer.is.ui.swing.action.application;
-
-import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
-import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
-import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
-
-/**
- * Action pour lancer une recherche d'application
- *
- * @author chemit
- */
- at ActionConfig(
- actionCommand = "goLastPage",
- container = SimExplorerUI.class,
- name = "simexplorer.action.pagination.goLastPage",
- shortDescription = "simexplorer.action.pagination.goLastPage.tooltip",
- longDescription = "simexplorer.action.pagination.goLastPage.help",
- smallIcon = "action/go-last.png",
- mnemonic='f',
- hideActionText = true
-)
-public class GoLastPageAction extends SimExplorerAbstractAction {
-
- private static final long serialVersionUID = 3453164752580608948L;
-
- public GoLastPageAction(String name) {
- super(name);
- }
-
- @Override
- public void actionPerformed(java.awt.event.ActionEvent e) {
- super.actionPerformed(e);
- //TODO
- }
-}
\ No newline at end of file
Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java 2008-01-21 04:49:55 UTC (rev 332)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java 2008-01-21 04:50:07 UTC (rev 333)
@@ -1,53 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit, Gabriel Landais
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package fr.cemagref.simexplorer.is.ui.swing.action.application;
-
-import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
-import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
-import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
-
-/**
- * Action pour lancer une recherche d'application
- *
- * @author chemit
- */
- at ActionConfig(
- actionCommand = "goNextPage",
- container = SimExplorerUI.class,
- name = "simexplorer.action.pagination.goNextPage",
- shortDescription = "simexplorer.action.pagination.goNextPage.tooltip",
- longDescription = "simexplorer.action.pagination.goNextPage.help",
- smallIcon = "action/go-next.png",
- mnemonic='f',
- hideActionText = true
-)
-public class GoNextPageAction extends SimExplorerAbstractAction {
-
- private static final long serialVersionUID = 836465304625059733L;
-
- public GoNextPageAction(String name) {
- super(name);
- }
-
- @Override
- public void actionPerformed(java.awt.event.ActionEvent e) {
- super.actionPerformed(e);
- //TODO
- }
-}
\ No newline at end of file
Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java 2008-01-21 04:49:55 UTC (rev 332)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java 2008-01-21 04:50:07 UTC (rev 333)
@@ -1,52 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit, Gabriel Landais
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package fr.cemagref.simexplorer.is.ui.swing.action.application;
-
-import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
-import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
-import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
-import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
-
-/**
- * Action pour lancer une recherche d'application
- *
- * @author chemit
- */
- at SelectActionConfig(
- actionCommand = "goPage",
- container = SimExplorerUI.class,
- name = "simexplorer.action.pagination.goPage",
- shortDescription = "simexplorer.action.pagination.goPage.tooltip",
- longDescription = "simexplorer.action.pagination.goPage.help",
- selectedIndex = 0
-)
-public class GoPageAction extends SimExplorerAbstractAction {
-
- private static final long serialVersionUID = 448524625085364914L;
-
- public GoPageAction(String name) {
- super(name);
- }
-
- @Override
- public void actionPerformed(java.awt.event.ActionEvent e) {
- super.actionPerformed(e);
- //TODO
- }
-}
\ No newline at end of file
Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java 2008-01-21 04:49:55 UTC (rev 332)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java 2008-01-21 04:50:07 UTC (rev 333)
@@ -1,53 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit, Gabriel Landais
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package fr.cemagref.simexplorer.is.ui.swing.action.application;
-
-import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
-import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
-import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
-
-/**
- * Action pour lancer une recherche d'application
- *
- * @author chemit
- */
- at ActionConfig(
- actionCommand = "goPreviousPage",
- container = SimExplorerUI.class,
- name = "simexplorer.action.pagination.goPreviousPage",
- shortDescription = "simexplorer.action.pagination.goPreviousPage.tooltip",
- longDescription = "simexplorer.action.pagination.goPreviousPage.help",
- smallIcon = "action/go-previous.png",
- mnemonic='f',
- hideActionText = true
-)
-public class GoPreviousPageAction extends SimExplorerAbstractAction {
-
- private static final long serialVersionUID = 3318383412609641337L;
-
- public GoPreviousPageAction(String name) {
- super(name);
- }
-
- @Override
- public void actionPerformed(java.awt.event.ActionEvent e) {
- super.actionPerformed(e);
- //TODO
- }
-}
\ No newline at end of file
1
0
r332 - trunk/simexplorer-is-swing/src/resources
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:49:55 +0000 (Mon, 21 Jan 2008)
New Revision: 332
Modified:
trunk/simexplorer-is-swing/src/resources/actions.properties
Log:
creation paquetage pagination
Modified: trunk/simexplorer-is-swing/src/resources/actions.properties
===================================================================
--- trunk/simexplorer-is-swing/src/resources/actions.properties 2008-01-21 04:48:18 UTC (rev 331)
+++ trunk/simexplorer-is-swing/src/resources/actions.properties 2008-01-21 04:49:55 UTC (rev 332)
@@ -26,12 +26,12 @@
action.resetSearchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.ResetSearchApplicationAction
action.advancedSearchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.AdvancedSearchApplicationAction
-action.goFirstPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoFirstPageAction
-action.goPreviousPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoPreviousPageAction
-action.goPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoPageAction
-action.goNextPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoNextPageAction
-action.goLastPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoLastPageAction
-action.changeSizor=fr.cemagref.simexplorer.is.ui.swing.action.application.ChangeSizorAction
+action.goFirstPage=fr.cemagref.simexplorer.is.ui.swing.action.pagination.GoFirstPageAction
+action.goPreviousPage=fr.cemagref.simexplorer.is.ui.swing.action.pagination.GoPreviousPageAction
+action.goPage=fr.cemagref.simexplorer.is.ui.swing.action.pagination.GoPageAction
+action.goNextPage=fr.cemagref.simexplorer.is.ui.swing.action.pagination.GoNextPageAction
+action.goLastPage=fr.cemagref.simexplorer.is.ui.swing.action.pagination.GoLastPageAction
+action.changeSizor=fr.cemagref.simexplorer.is.ui.swing.action.pagination.ChangeSizorAction
action.collapseAll=fr.cemagref.simexplorer.is.ui.swing.action.application.CollapseAllAction
action.expandAll=fr.cemagref.simexplorer.is.ui.swing.action.application.ExpandAllAction
1
0
r331 - in trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action: . pagination
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:48:18 +0000 (Mon, 21 Jan 2008)
New Revision: 331
Added:
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/ChangeSizorAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoFirstPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoLastPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoNextPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPreviousPageAction.java
Log:
creation paquetage pagination
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/ChangeSizorAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/ChangeSizorAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/ChangeSizorAction.java 2008-01-21 04:48:18 UTC (rev 331)
@@ -0,0 +1,51 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.pagination;
+
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at SelectActionConfig(
+ actionCommand = "changeSizor",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.changeSizor",
+ shortDescription = "simexplorer.action.pagination.changeSizor.tooltip",
+ longDescription = "simexplorer.action.pagination.changeSizor.help",
+ selectedIndex = 3
+)
+public class ChangeSizorAction extends SimExplorerAbstractAction {
+ private static final long serialVersionUID = 5137512273375524199L;
+
+ public ChangeSizorAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoFirstPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoFirstPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoFirstPageAction.java 2008-01-21 04:48:18 UTC (rev 331)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.pagination;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goFirstPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goFirstPage",
+ shortDescription = "simexplorer.action.pagination.goFirstPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goFirstPage.help",
+ smallIcon = "action/go-first.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoFirstPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = -7292269279566418188L;
+
+ public GoFirstPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoLastPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoLastPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoLastPageAction.java 2008-01-21 04:48:18 UTC (rev 331)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.pagination;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goLastPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goLastPage",
+ shortDescription = "simexplorer.action.pagination.goLastPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goLastPage.help",
+ smallIcon = "action/go-last.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoLastPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 3453164752580608948L;
+
+ public GoLastPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoNextPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoNextPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoNextPageAction.java 2008-01-21 04:48:18 UTC (rev 331)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.pagination;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goNextPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goNextPage",
+ shortDescription = "simexplorer.action.pagination.goNextPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goNextPage.help",
+ smallIcon = "action/go-next.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoNextPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 836465304625059733L;
+
+ public GoNextPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPageAction.java 2008-01-21 04:48:18 UTC (rev 331)
@@ -0,0 +1,52 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.pagination;
+
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at SelectActionConfig(
+ actionCommand = "goPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goPage",
+ shortDescription = "simexplorer.action.pagination.goPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goPage.help",
+ selectedIndex = 0
+)
+public class GoPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 448524625085364914L;
+
+ public GoPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPreviousPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPreviousPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/pagination/GoPreviousPageAction.java 2008-01-21 04:48:18 UTC (rev 331)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.pagination;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goPreviousPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goPreviousPage",
+ shortDescription = "simexplorer.action.pagination.goPreviousPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goPreviousPage.help",
+ smallIcon = "action/go-previous.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoPreviousPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 3318383412609641337L;
+
+ public GoPreviousPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
1
0
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:44:29 +0000 (Mon, 21 Jan 2008)
New Revision: 330
Modified:
trunk/simexplorer-is-swing/src/i18n/language-en_GB.properties
trunk/simexplorer-is-swing/src/i18n/language-fr_FR.properties
Log:
suppression des derni?\195?\168res toolbar, int?\195?\169gration toolbar de pagination
Modified: trunk/simexplorer-is-swing/src/i18n/language-en_GB.properties
===================================================================
--- trunk/simexplorer-is-swing/src/i18n/language-en_GB.properties 2008-01-21 04:44:12 UTC (rev 329)
+++ trunk/simexplorer-is-swing/src/i18n/language-en_GB.properties 2008-01-21 04:44:29 UTC (rev 330)
@@ -1,4 +1,4 @@
-#Mon Jan 21 01:10:09 GMT 2008
+#Mon Jan 21 04:38:09 GMT 2008
can\ not\ find\ a\ registered\ action\ for\ key\ {0}\ =
could\ not\ found\ for\ action\ key\ {0}\ class\ {1}\ =
could\ not\ load\ actions.properties\ file\ for\ reason\ {0}\ =
@@ -58,6 +58,24 @@
simexplorer.action.i18n.fr=French
simexplorer.action.i18n.fr.help=
simexplorer.action.i18n.fr.tooltip=Change to french language
+simexplorer.action.pagination.changeSizor=Change Page size
+simexplorer.action.pagination.changeSizor.help=
+simexplorer.action.pagination.changeSizor.tooltip=Select the number of results to display in a page
+simexplorer.action.pagination.goFirstPage=First page
+simexplorer.action.pagination.goFirstPage.help=
+simexplorer.action.pagination.goFirstPage.tooltip=Access to first page in the list of results
+simexplorer.action.pagination.goLastPage=Last page
+simexplorer.action.pagination.goLastPage.help=
+simexplorer.action.pagination.goLastPage.tooltip=Access to last page in the list of results
+simexplorer.action.pagination.goNextPage=Next page
+simexplorer.action.pagination.goNextPage.help=
+simexplorer.action.pagination.goNextPage.tooltip=Access to next page in the list of results
+simexplorer.action.pagination.goPage=Page
+simexplorer.action.pagination.goPage.help=
+simexplorer.action.pagination.goPage.tooltip=Select page to display in the list of results
+simexplorer.action.pagination.goPreviousPage=Previous page
+simexplorer.action.pagination.goPreviousPage.help=
+simexplorer.action.pagination.goPreviousPage.tooltip=Access to previous page in the list of results
simexplorer.action.quit=Quit
simexplorer.action.quit.help=
simexplorer.action.quit.tooltip=Quit SimExplorer SI
Modified: trunk/simexplorer-is-swing/src/i18n/language-fr_FR.properties
===================================================================
--- trunk/simexplorer-is-swing/src/i18n/language-fr_FR.properties 2008-01-21 04:44:12 UTC (rev 329)
+++ trunk/simexplorer-is-swing/src/i18n/language-fr_FR.properties 2008-01-21 04:44:29 UTC (rev 330)
@@ -1,4 +1,4 @@
-#Mon Jan 21 01:10:09 GMT 2008
+#Mon Jan 21 04:38:09 GMT 2008
can\ not\ find\ a\ registered\ action\ for\ key\ {0}\ =
could\ not\ found\ for\ action\ key\ {0}\ class\ {1}\ =
could\ not\ load\ actions.properties\ file\ for\ reason\ {0}\ =
@@ -58,6 +58,24 @@
simexplorer.action.i18n.fr=Fran\u00E7ais
simexplorer.action.i18n.fr.help=
simexplorer.action.i18n.fr.tooltip=Traduire l'application en fran\u00E7ais
+simexplorer.action.pagination.changeSizor=Change fen\u00EAtre
+simexplorer.action.pagination.changeSizor.help=
+simexplorer.action.pagination.changeSizor.tooltip=Choisir le nombre de r\u00E9sultats par page
+simexplorer.action.pagination.goFirstPage=Premi\u00E8re page
+simexplorer.action.pagination.goFirstPage.help=
+simexplorer.action.pagination.goFirstPage.tooltip=Acc\u00E9der \u00E0 la premi\u00E8re page de la liste des r\u00E9sultats
+simexplorer.action.pagination.goLastPage=Derni\u00E8re Page
+simexplorer.action.pagination.goLastPage.help=
+simexplorer.action.pagination.goLastPage.tooltip=Acc\u00E9der \u00E0 la derni\u00E8re page de la liste des r\u00E9sultats
+simexplorer.action.pagination.goNextPage=Prochaine page
+simexplorer.action.pagination.goNextPage.help=
+simexplorer.action.pagination.goNextPage.tooltip=Acc\u00E9der \u00E0 la prochaine page de la liste des r\u00E9sultats
+simexplorer.action.pagination.goPage=Page
+simexplorer.action.pagination.goPage.help=
+simexplorer.action.pagination.goPage.tooltip=Choisir la page \u00E0 acc\u00E9der dans la liste des r\u00E9sultats
+simexplorer.action.pagination.goPreviousPage=Pr\u00E9c\u00E9dente page
+simexplorer.action.pagination.goPreviousPage.help=
+simexplorer.action.pagination.goPreviousPage.tooltip=Acc\u00E9der \u00E0 la page pr\u00E9c\u00E9dente de la liste des r\u00E9sultats
simexplorer.action.quit=Quitter
simexplorer.action.quit.help=
simexplorer.action.quit.tooltip=Pour quitter l'application
1
0
r329 - trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:44:12 +0000 (Mon, 21 Jan 2008)
New Revision: 329
Modified:
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java
Log:
ajout annotation de configuration pour ComboBox
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java 2008-01-21 04:43:52 UTC (rev 328)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java 2008-01-21 04:44:12 UTC (rev 329)
@@ -23,6 +23,7 @@
import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
import fr.cemagref.simexplorer.is.ui.swing.util.GlueActionConfig;
import fr.cemagref.simexplorer.is.ui.swing.util.MyToggleButton;
+import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
import jaxx.runtime.JAXXObject;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -31,6 +32,7 @@
import javax.swing.AbstractButton;
import javax.swing.Action;
import javax.swing.Icon;
+import javax.swing.JComboBox;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
@@ -99,37 +101,52 @@
for (Map.Entry<String, Class<? extends SimExplorerAbstractAction>> entry : impls.entrySet()) {
String actionKey = entry.getKey();
Object comp = ui.getObjectById(actionKey);
- if (comp == null || !(comp instanceof AbstractButton)) {
+ if (comp == null || !(comp instanceof AbstractButton || comp instanceof JComboBox)) {
continue;
}
- AbstractButton component = (AbstractButton) comp;
+ if (comp instanceof AbstractButton) {
+ AbstractButton component = (AbstractButton) comp;
- SimExplorerAbstractAction action = newAction(actionKey, component);
+ SimExplorerAbstractAction action = newAction(actionKey, component);
- component.setAction(action);
+ component.setAction(action);
- if (component instanceof MyToggleButton) {
- MyToggleButton glueComponent = (MyToggleButton) component;
- glueComponent.setIcon((Icon) action.getValue(Action.SMALL_ICON ));
- Integer integer = (Integer) action.getValue(Action.MNEMONIC_KEY);
- if (integer!=null) {
- glueComponent.setNormalMnemonic(integer);
+ if (component instanceof MyToggleButton) {
+ MyToggleButton glueComponent = (MyToggleButton) component;
+ glueComponent.setIcon((Icon) action.getValue(Action.SMALL_ICON));
+ Integer integer = (Integer) action.getValue(Action.MNEMONIC_KEY);
+ if (integer != null) {
+ glueComponent.setNormalMnemonic(integer);
+ }
+ glueComponent.setSelectedIcon((Icon) action.getValue(Action.SMALL_ICON + 2));
+ integer = (Integer) action.getValue(Action.MNEMONIC_KEY + 2);
+ if (integer != null) {
+ glueComponent.setGlueMnemonic(integer);
+ }
+ glueComponent.setGlueText((String) action.getValue(Action.NAME + 2));
+ glueComponent.setGlueTooltipText((String) action.getValue(Action.SHORT_DESCRIPTION + 2));
+
+ glueComponent.setNormalText((String) action.getValue(Action.NAME));
+ glueComponent.setNormalTooltipText((String) action.getValue(Action.SHORT_DESCRIPTION));
}
- glueComponent.setSelectedIcon((Icon) action.getValue(Action.SMALL_ICON + 2));
- integer = (Integer) action.getValue(Action.MNEMONIC_KEY + 2);
- if (integer!=null) {
- glueComponent.setGlueMnemonic(integer);
+
+ Boolean value = (Boolean) action.getValue("hideActionText");
+
+ component.setHideActionText(value != null && value);
+ continue;
+ }
+ if (comp instanceof JComboBox) {
+ JComboBox component = (JComboBox) comp;
+
+ SimExplorerAbstractAction action = newAction(actionKey, component);
+
+ component.setAction(action);
+ Integer val = (Integer) action.getValue("selectedIndex");
+ if (val != null && val<component.getItemCount()) {
+ component.setSelectedIndex(val);
}
- glueComponent.setGlueText((String)action.getValue(Action.NAME+ 2));
- glueComponent.setGlueTooltipText((String)action.getValue(Action.SHORT_DESCRIPTION+ 2));
-
- glueComponent.setNormalText((String)action.getValue(Action.NAME));
- glueComponent.setNormalTooltipText((String)action.getValue(Action.SHORT_DESCRIPTION));
}
- Boolean value = (Boolean) action.getValue("hideActionText");
-
- component.setHideActionText(value != null && value);
}
}
@@ -167,10 +184,10 @@
result.putValue("hideActionText", component.getHideActionText());
if (component instanceof MyToggleButton) {
MyToggleButton glueComponent = (MyToggleButton) component;
- result.putValue(Action.SHORT_DESCRIPTION , glueComponent.getNormalTooltipText());
- result.putValue(Action.NAME , glueComponent.getNormalText());
- result.putValue(Action.SMALL_ICON , glueComponent.getIcon());
- result.putValue(Action.MNEMONIC_KEY , glueComponent.getNormalMnemonic());
+ result.putValue(Action.SHORT_DESCRIPTION, glueComponent.getNormalTooltipText());
+ result.putValue(Action.NAME, glueComponent.getNormalText());
+ result.putValue(Action.SMALL_ICON, glueComponent.getIcon());
+ result.putValue(Action.MNEMONIC_KEY, glueComponent.getNormalMnemonic());
result.putValue(Action.SHORT_DESCRIPTION + 2, glueComponent.getGlueTooltipText());
result.putValue(Action.NAME + 2, glueComponent.getGlueText());
result.putValue(Action.SMALL_ICON + 2, glueComponent.getSelectedIcon());
@@ -194,6 +211,39 @@
}
}
+ /**
+ * @param actionKey le nom de l'action tel que définie dans le fichier
+ * de mapping (sans le prefix action.)
+ * @param component le button où rattacher l'action
+ * @return une nouvelle instance de l'action associée à sa clef.
+ */
+ public static SimExplorerAbstractAction newAction(String actionKey, JComboBox component) {
+
+ // on vérifie que l'action existe bien
+ checkRegistredAction(actionKey);
+
+ // on récupère la classe d'implantation de l'action
+ Class<? extends SimExplorerAbstractAction> klazz = impls.get(actionKey);
+
+ try {
+ SimExplorerAbstractAction result = klazz.getConstructor(String.class).newInstance(actionKey);
+ //result.putValue(Action.ACTION_COMMAND_KEY, actionKey);
+
+ log.debug(actionKey + " : " + result);
+ // recherche de l'annotation de configuration
+ SelectActionConfig anno = initSelectActionConfig(component, klazz, result);
+ if (anno == null) {
+ result.putValue(Action.ACTION_COMMAND_KEY, component.getName());
+ result.putValue(Action.SHORT_DESCRIPTION, component.getToolTipText());
+ result.putValue("selectedIndex", component.getSelectedIndex());
+
+ }
+ return result;
+ } catch (Exception e) {
+ throw new SimExplorerRuntimeException(e);
+ }
+ }
+
private static GlueActionConfig initGlueActionConfig(AbstractButton component, Class<? extends SimExplorerAbstractAction> klazz, SimExplorerAbstractAction result) {
GlueActionConfig anno = klazz.getAnnotation(GlueActionConfig.class);
if (anno != null) {
@@ -268,6 +318,25 @@
return anno;
}
+ private static SelectActionConfig initSelectActionConfig(JComboBox component, Class<? extends SimExplorerAbstractAction> klazz, SimExplorerAbstractAction result) {
+ SelectActionConfig anno = klazz.getAnnotation(SelectActionConfig.class);
+ if (anno != null) {
+ // inject les données
+ if (!anno.name().isEmpty()) {
+ result.putValue(Action.NAME, _(anno.name()));
+ }
+ if (!anno.shortDescription().isEmpty()) {
+ result.putValue(Action.SHORT_DESCRIPTION, _(anno.shortDescription()));
+ } else {
+ result.putValue(Action.SHORT_DESCRIPTION, _(component.getToolTipText()));
+ }
+ result.putValue("selectedIndex", anno.selectedIndex());
+ //TODO Convert it from String result.putValue(Action.ACCELERATOR_KEY, anno.accelerator());
+ result.setEnabled(anno.enabled());
+ }
+ return anno;
+ }
+
protected static void checkInit() {
if (impls == null) {
throw new SimExplorerRuntimeException("you must init first the " + SimExplorerActionManager.class.getName() + " class via init method");
1
0
r328 - trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/util
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:43:52 +0000 (Mon, 21 Jan 2008)
New Revision: 328
Added:
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/util/SelectActionConfig.java
Log:
ajout annotation de configuration pour ComboBox
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/util/SelectActionConfig.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/util/SelectActionConfig.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/util/SelectActionConfig.java 2008-01-21 04:43:52 UTC (rev 328)
@@ -0,0 +1,91 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.util;
+
+import jaxx.runtime.JAXXObject;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Pour enregister une action.
+ * <p/>
+ * Placer cette annotation sur la classe implantant l'action,
+ * <p/>
+ * les informations décrites seront utilisées pour instancier l'action
+ *
+ * @author chemit
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+
+ at Target(ElementType.TYPE)
+
+public @interface SelectActionConfig {
+
+ /**
+ * @return la clef de la commande (doit être unique)
+ * @see javax.swing.Action#ACTION_COMMAND_KEY
+ */
+ public abstract String actionCommand();
+
+ /**
+ * @return la clef i18n du texte de l'action, si vide ignoré
+ * @see javax.swing.Action#NAME
+ */
+ public abstract String name() default "";
+
+ /**
+ * @return la clef i18n du tooltip de l'action, si vide ignoré
+ * @see javax.swing.Action#SHORT_DESCRIPTION
+ */
+ public abstract String shortDescription() default "";
+
+ /**
+ * @return la clef i18n du texte de l'action, si vide ignoré
+ * @see javax.swing.Action#LONG_DESCRIPTION
+ */
+ public abstract String longDescription() default "";
+
+ /**
+ * @return
+ * @see javax.swing.Action#ACCELERATOR_KEY
+ */
+ public abstract String accelerator() default "";
+
+ /**
+ * @return la valeur par défaut pour les component selectable
+ * @see javax.swing.Action#SELECTED_KEY
+ */
+ public abstract int selectedIndex() default 0;
+
+ /**
+ * @return
+ * @see javax.swing.Action#isEnabled()
+ */
+ public abstract boolean enabled() default true;
+
+ /**
+ * @return la class du container jaxx associé
+ * @see javax.swing.Action#NAME
+ */
+ public abstract Class<? extends JAXXObject> container();
+
+}
\ No newline at end of file
1
0
r327 - in trunk/simexplorer-is-swing/src: java/fr/cemagref/simexplorer/is/ui/swing/action/admin java/fr/cemagref/simexplorer/is/ui/swing/action/application resources/icons
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:43:29 +0000 (Mon, 21 Jan 2008)
New Revision: 327
Added:
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java
Removed:
trunk/simexplorer-is-swing/src/resources/icons/collapseall.png
trunk/simexplorer-is-swing/src/resources/icons/expandall.png
trunk/simexplorer-is-swing/src/resources/icons/go-last.png
trunk/simexplorer-is-swing/src/resources/icons/go-next.png
Modified:
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/AdvancedSearchApplicationAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ExportApplicationAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ImportApplicationAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ResetSearchApplicationAction.java
trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/SearchApplicationAction.java
Log:
suppression des derni?\195?\168res toolbar, int?\195?\169gration toolbar de pagination
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java 2008-01-21 04:42:53 UTC (rev 326)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -33,7 +33,7 @@
name = "simexplorer.action.users",
shortDescription = "simexplorer.action.users.tooltip",
longDescription = "simexplorer.action.users.help",
- //smallIcon = "action/users.png",
+ smallIcon = "action/users.png",
mnemonic = 'U',
hideActionText = false
)
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/AdvancedSearchApplicationAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/AdvancedSearchApplicationAction.java 2008-01-21 04:42:53 UTC (rev 326)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/AdvancedSearchApplicationAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -22,6 +22,8 @@
import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+import javax.swing.JComboBox;
+
/**
* Action pour réinitialiser une recherche d'application
*
@@ -33,9 +35,9 @@
name = "simexplorer.action.application.advancedSearch",
shortDescription = "simexplorer.action.application.advancedSearch.tooltip",
longDescription = "simexplorer.action.application.advancedSearch.help",
- //smallIcon = "action/advancedSearch.png",
+ smallIcon = "action/advanced-search.png",
mnemonic='v',
- hideActionText = false
+ hideActionText = true
)
public class AdvancedSearchApplicationAction extends SimExplorerAbstractAction {
@@ -43,6 +45,8 @@
public AdvancedSearchApplicationAction(String name) {
super(name);
+ JComboBox c=null;
+
}
@Override
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ChangeSizorAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -0,0 +1,51 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.application;
+
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at SelectActionConfig(
+ actionCommand = "changeSizor",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.changeSizor",
+ shortDescription = "simexplorer.action.pagination.changeSizor.tooltip",
+ longDescription = "simexplorer.action.pagination.changeSizor.help",
+ selectedIndex = 3
+)
+public class ChangeSizorAction extends SimExplorerAbstractAction {
+ private static final long serialVersionUID = 5137512273375524199L;
+
+ public ChangeSizorAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ExportApplicationAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ExportApplicationAction.java 2008-01-21 04:42:53 UTC (rev 326)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ExportApplicationAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -33,8 +33,7 @@
name = "simexplorer.action.application.export",
shortDescription = "simexplorer.action.application.export.tooltip",
longDescription = "simexplorer.action.application.export.help",
- //smallIcon = "action/export-application.png",
- smallIcon = "action/fileexport.png",
+ smallIcon = "action/export-application.png",
mnemonic='x',
hideActionText = false
)
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoFirstPageAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.application;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goFirstPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goFirstPage",
+ shortDescription = "simexplorer.action.pagination.goFirstPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goFirstPage.help",
+ smallIcon = "action/go-first.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoFirstPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = -7292269279566418188L;
+
+ public GoFirstPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoLastPageAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.application;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goLastPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goLastPage",
+ shortDescription = "simexplorer.action.pagination.goLastPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goLastPage.help",
+ smallIcon = "action/go-last.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoLastPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 3453164752580608948L;
+
+ public GoLastPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoNextPageAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.application;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goNextPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goNextPage",
+ shortDescription = "simexplorer.action.pagination.goNextPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goNextPage.help",
+ smallIcon = "action/go-next.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoNextPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 836465304625059733L;
+
+ public GoNextPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPageAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -0,0 +1,52 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.application;
+
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.util.SelectActionConfig;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at SelectActionConfig(
+ actionCommand = "goPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goPage",
+ shortDescription = "simexplorer.action.pagination.goPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goPage.help",
+ selectedIndex = 0
+)
+public class GoPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 448524625085364914L;
+
+ public GoPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java (rev 0)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/GoPreviousPageAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -0,0 +1,53 @@
+/*
+* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
+* Tony Chemit, Gabriel Landais
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* ##% */
+package fr.cemagref.simexplorer.is.ui.swing.action.application;
+
+import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction;
+import fr.cemagref.simexplorer.is.ui.swing.util.ActionConfig;
+import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUI;
+
+/**
+ * Action pour lancer une recherche d'application
+ *
+ * @author chemit
+ */
+ at ActionConfig(
+ actionCommand = "goPreviousPage",
+ container = SimExplorerUI.class,
+ name = "simexplorer.action.pagination.goPreviousPage",
+ shortDescription = "simexplorer.action.pagination.goPreviousPage.tooltip",
+ longDescription = "simexplorer.action.pagination.goPreviousPage.help",
+ smallIcon = "action/go-previous.png",
+ mnemonic='f',
+ hideActionText = true
+)
+public class GoPreviousPageAction extends SimExplorerAbstractAction {
+
+ private static final long serialVersionUID = 3318383412609641337L;
+
+ public GoPreviousPageAction(String name) {
+ super(name);
+ }
+
+ @Override
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ super.actionPerformed(e);
+ //TODO
+ }
+}
\ No newline at end of file
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ImportApplicationAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ImportApplicationAction.java 2008-01-21 04:42:53 UTC (rev 326)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ImportApplicationAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -33,9 +33,8 @@
name = "simexplorer.action.application.import",
shortDescription = "simexplorer.action.application.import.tooltip",
longDescription = "simexplorer.action.application.import.help",
- //smallIcon = "action/import-application.png",
- smallIcon = "action/fileimport.png",
- mnemonic='x',
+ smallIcon = "action/import-application.png",
+ mnemonic='i',
hideActionText = false
)
public class ImportApplicationAction extends SimExplorerAbstractAction {
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ResetSearchApplicationAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ResetSearchApplicationAction.java 2008-01-21 04:42:53 UTC (rev 326)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ResetSearchApplicationAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -33,9 +33,9 @@
name = "simexplorer.action.application.resetSearch",
shortDescription = "simexplorer.action.application.resetSearch.tooltip",
longDescription = "simexplorer.action.application.resetSearch.help",
- smallIcon = "action/resetSearch.png",
+ smallIcon = "action/reset-search.png",
mnemonic='e',
- hideActionText = false
+ hideActionText = true
)
public class ResetSearchApplicationAction extends SimExplorerAbstractAction {
Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/SearchApplicationAction.java
===================================================================
--- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/SearchApplicationAction.java 2008-01-21 04:42:53 UTC (rev 326)
+++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/SearchApplicationAction.java 2008-01-21 04:43:29 UTC (rev 327)
@@ -35,7 +35,7 @@
longDescription = "simexplorer.action.application.search.help",
smallIcon = "action/search.png",
mnemonic='e',
- hideActionText = false
+ hideActionText = true
)
public class SearchApplicationAction extends SimExplorerAbstractAction {
Deleted: trunk/simexplorer-is-swing/src/resources/icons/collapseall.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/expandall.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/go-last.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/go-next.png
===================================================================
(Binary files differ)
1
0
r326 - in trunk/simexplorer-is-swing/src/resources: . icons icons/action
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
by tchemit@users.labs.libre-entreprise.org 21 Jan '08
21 Jan '08
Author: tchemit
Date: 2008-01-21 04:42:53 +0000 (Mon, 21 Jan 2008)
New Revision: 326
Added:
trunk/simexplorer-is-swing/src/resources/icons/action/advanced-search.png
trunk/simexplorer-is-swing/src/resources/icons/action/collapseall.png
trunk/simexplorer-is-swing/src/resources/icons/action/connect_creating.png
trunk/simexplorer-is-swing/src/resources/icons/action/connect_established.png
trunk/simexplorer-is-swing/src/resources/icons/action/connect_no.png
trunk/simexplorer-is-swing/src/resources/icons/action/expandall.png
trunk/simexplorer-is-swing/src/resources/icons/action/export-application.png
trunk/simexplorer-is-swing/src/resources/icons/action/go-first.png
trunk/simexplorer-is-swing/src/resources/icons/action/go-last.png
trunk/simexplorer-is-swing/src/resources/icons/action/go-next.png
trunk/simexplorer-is-swing/src/resources/icons/action/go-previous.png
trunk/simexplorer-is-swing/src/resources/icons/action/import-application.png
trunk/simexplorer-is-swing/src/resources/icons/action/reset-search.png
trunk/simexplorer-is-swing/src/resources/icons/action/users.png
Removed:
trunk/simexplorer-is-swing/src/resources/icons/action/fileexport.png
trunk/simexplorer-is-swing/src/resources/icons/action/fileimport.png
trunk/simexplorer-is-swing/src/resources/icons/action/resetSearch.png
trunk/simexplorer-is-swing/src/resources/icons/folder_inbox.png
trunk/simexplorer-is-swing/src/resources/icons/folder_outbox.png
trunk/simexplorer-is-swing/src/resources/icons/go-first.png
trunk/simexplorer-is-swing/src/resources/icons/go-previous.png
Modified:
trunk/simexplorer-is-swing/src/resources/actions.properties
trunk/simexplorer-is-swing/src/resources/icons/action/search.png
Log:
suppression des derni?\195?\168res toolbar, int?\195?\169gration toolbar de pagination
Modified: trunk/simexplorer-is-swing/src/resources/actions.properties
===================================================================
--- trunk/simexplorer-is-swing/src/resources/actions.properties 2008-01-21 04:42:35 UTC (rev 325)
+++ trunk/simexplorer-is-swing/src/resources/actions.properties 2008-01-21 04:42:53 UTC (rev 326)
@@ -26,6 +26,13 @@
action.resetSearchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.ResetSearchApplicationAction
action.advancedSearchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.AdvancedSearchApplicationAction
+action.goFirstPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoFirstPageAction
+action.goPreviousPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoPreviousPageAction
+action.goPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoPageAction
+action.goNextPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoNextPageAction
+action.goLastPage=fr.cemagref.simexplorer.is.ui.swing.action.application.GoLastPageAction
+action.changeSizor=fr.cemagref.simexplorer.is.ui.swing.action.application.ChangeSizorAction
+
action.collapseAll=fr.cemagref.simexplorer.is.ui.swing.action.application.CollapseAllAction
action.expandAll=fr.cemagref.simexplorer.is.ui.swing.action.application.ExpandAllAction
Added: trunk/simexplorer-is-swing/src/resources/icons/action/advanced-search.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/advanced-search.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: trunk/simexplorer-is-swing/src/resources/icons/action/collapseall.png (from rev 317, trunk/simexplorer-is-swing/src/resources/icons/collapseall.png)
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/collapseall.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/simexplorer-is-swing/src/resources/icons/action/connect_creating.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/connect_creating.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/simexplorer-is-swing/src/resources/icons/action/connect_established.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/connect_established.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/simexplorer-is-swing/src/resources/icons/action/connect_no.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/connect_no.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: trunk/simexplorer-is-swing/src/resources/icons/action/expandall.png (from rev 317, trunk/simexplorer-is-swing/src/resources/icons/expandall.png)
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/expandall.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/simexplorer-is-swing/src/resources/icons/action/export-application.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/export-application.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/simexplorer-is-swing/src/resources/icons/action/fileexport.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/action/fileimport.png
===================================================================
(Binary files differ)
Copied: trunk/simexplorer-is-swing/src/resources/icons/action/go-first.png (from rev 317, trunk/simexplorer-is-swing/src/resources/icons/go-first.png)
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/go-first.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: trunk/simexplorer-is-swing/src/resources/icons/action/go-last.png (from rev 317, trunk/simexplorer-is-swing/src/resources/icons/go-last.png)
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/go-last.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: trunk/simexplorer-is-swing/src/resources/icons/action/go-next.png (from rev 317, trunk/simexplorer-is-swing/src/resources/icons/go-next.png)
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/go-next.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: trunk/simexplorer-is-swing/src/resources/icons/action/go-previous.png (from rev 317, trunk/simexplorer-is-swing/src/resources/icons/go-previous.png)
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/go-previous.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/simexplorer-is-swing/src/resources/icons/action/import-application.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/import-application.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/simexplorer-is-swing/src/resources/icons/action/reset-search.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/reset-search.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/simexplorer-is-swing/src/resources/icons/action/resetSearch.png
===================================================================
(Binary files differ)
Modified: trunk/simexplorer-is-swing/src/resources/icons/action/search.png
===================================================================
(Binary files differ)
Added: trunk/simexplorer-is-swing/src/resources/icons/action/users.png
===================================================================
(Binary files differ)
Property changes on: trunk/simexplorer-is-swing/src/resources/icons/action/users.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/simexplorer-is-swing/src/resources/icons/folder_inbox.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/folder_outbox.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/go-first.png
===================================================================
(Binary files differ)
Deleted: trunk/simexplorer-is-swing/src/resources/icons/go-previous.png
===================================================================
(Binary files differ)
1
0