Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/authentication/LdapAuthentication.java @ 223:d9d1a46af55d
Moved isReadOnly for LProbe from authentication to service.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 04 Jul 2013 14:50:05 +0200 |
parents | f0482fa04e2b |
children |
comparison
equal
deleted
inserted
replaced
220:f0482fa04e2b | 223:d9d1a46af55d |
---|---|
15 import javax.persistence.criteria.CriteriaQuery; | 15 import javax.persistence.criteria.CriteriaQuery; |
16 import javax.persistence.criteria.Predicate; | 16 import javax.persistence.criteria.Predicate; |
17 import javax.persistence.criteria.Root; | 17 import javax.persistence.criteria.Root; |
18 import javax.ws.rs.core.HttpHeaders; | 18 import javax.ws.rs.core.HttpHeaders; |
19 | 19 |
20 import org.omg.PortableServer.LifespanPolicyOperations; | |
21 | |
20 import de.intevation.lada.data.QueryBuilder; | 22 import de.intevation.lada.data.QueryBuilder; |
21 import de.intevation.lada.model.Auth; | 23 import de.intevation.lada.model.Auth; |
24 import de.intevation.lada.model.LMessung; | |
22 import de.intevation.lada.model.LProbe; | 25 import de.intevation.lada.model.LProbe; |
23 import de.intevation.lada.model.LProbeInfo; | 26 import de.intevation.lada.model.LProbeInfo; |
24 | 27 |
25 /** | 28 /** |
26 * This implementation of the authentication interface reads LDAP users | 29 * This implementation of the authentication interface reads LDAP users |
105 return true; | 108 return true; |
106 } | 109 } |
107 return false; | 110 return false; |
108 } | 111 } |
109 | 112 |
110 /** | |
111 * Determine if the LProbe identified by probeId is writeable for the user. | |
112 * | |
113 * @param headers The HTTP header containing LDAP user information. | |
114 * @param probeId The probe id. | |
115 */ | |
116 public boolean isReadOnly(HttpHeaders headers, String probeId) { | |
117 //TODO: test if probe has messung with status 'fertig'. | |
118 return false; | |
119 } | |
120 | 113 |
121 /** | 114 /** |
122 * Get the user from HTTP header. | 115 * Get the user from HTTP header. |
123 * | 116 * |
124 * @param headers The HTTP header containing user information. | 117 * @param headers The HTTP header containing user information. |