«
Précédent
|
Suivant
»
Révision 675e977d
Ajouté par Remy Menard il y a presque 11 ans
- ID 675e977d6baa946d508d77b8721408cbe9155a8e
- Parent 8fd1d584
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/xacml/ihm/factory/RecordTimeTreeNode.java | ||
---|---|---|
|
||
@Override
|
||
public String getLabel() {
|
||
Calendar cal = Calendar.getInstance();
|
||
cal.setTime(minDate);
|
||
StringBuilder res = new StringBuilder();
|
||
int m = cal.get(Calendar.MONTH);
|
||
if (m < 10) {
|
||
res.append("0");
|
||
}
|
||
res.append(m);
|
||
res.append("/");
|
||
int d = cal.get(Calendar.DAY_OF_MONTH);
|
||
if (d < 10) {
|
||
res.append("0");
|
||
}
|
||
res.append(d);
|
||
res.append("/");
|
||
res.append(cal.get(Calendar.YEAR));
|
||
|
||
res.append(" -> ");
|
||
|
||
cal.setTime(maxDate);
|
||
m = cal.get(Calendar.MONTH);
|
||
if (m < 10) {
|
||
res.append("0");
|
||
}
|
||
res.append(m);
|
||
res.append("/");
|
||
d = cal.get(Calendar.DAY_OF_MONTH);
|
||
if (d < 10) {
|
||
res.append("0");
|
||
}
|
||
res.append(d);
|
||
res.append("/");
|
||
res.append(cal.get(Calendar.YEAR));
|
||
return res.toString();
|
||
Calendar calMin = Calendar.getInstance();
|
||
calMin.setTime(minDate);
|
||
Calendar calMax = Calendar.getInstance();
|
||
calMax.setTime(maxDate);
|
||
return String.format("%1$tm/%1$td/%1$tY -> %2$tm/%2$td/%2$tY", calMin, calMax);
|
||
}
|
||
|
||
@Override
|
Formats disponibles : Unified diff
Version 2.1
- a few bugs fixed!
- uses the new DS events
- improves the session management
- the account creation by the web interface adds access policies to
the interface ("admin" policies), this is always done even if a
corresponding account exists in the LDAP directory
- simplifies the service
- upgrades Apache Tomcat to 7.0.42