blob: fd62699db8184d913c63ad4304b63a402ced46e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package org.cristalise.lookup.ldap;
import org.cristalise.kernel.common.PersistencyException;
import org.cristalise.kernel.entity.C2KLocalObject;
import org.cristalise.kernel.lookup.ItemPath;
/** Allows clients to directly load properties and collections from the LDAP
* so no CORBA calls need to be made during normal browsing
*/
public class LDAPClientReader extends LDAPClusterStorage {
// return all readwrite support as readonly
@Override
public short queryClusterSupport(String clusterType) {
return (short)(super.queryClusterSupport(clusterType) & READ);
}
/**
* @see org.cristalise.kernel.persistency.ClusterStorage#delete(Integer, String)
*/
@Override
public void delete(ItemPath itemPath, String path)
throws PersistencyException {
throw new PersistencyException("Writing not supported in ClientReader");
}
/**
* @see org.cristalise.kernel.persistency.ClusterStorage#getName()
*/
@Override
public String getName() {
return "LDAP Client Cluster Reader";
}
/**
* @see org.cristalise.kernel.persistency.ClusterStorage#put(Integer, String, C2KLocalObject)
*/
public void put(ItemPath itemPath, String path, C2KLocalObject obj)
throws PersistencyException {
throw new PersistencyException("Writing not supported in ClientReader");
}
}
|