blob: c40658e3b21aba8e5062d337c57c6aa87b66af42 (
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
|
package com.c2kernel.persistency;
import com.c2kernel.entity.C2KLocalObject;
/** 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
public short queryClusterSupport(String clusterType) {
return (short)(super.queryClusterSupport(clusterType) & READ);
}
/**
* @see com.c2kernel.persistency.ClusterStorage#delete(Integer, String)
*/
public void delete(Integer sysKey, String path)
throws ClusterStorageException {
throw new ClusterStorageException("Writing not supported in ClientReader");
}
/**
* @see com.c2kernel.persistency.ClusterStorage#getName()
*/
public String getName() {
return "LDAP Client Cluster Reader";
}
/**
* @see com.c2kernel.persistency.ClusterStorage#put(Integer, String, C2KLocalObject)
*/
public void put(Integer sysKey, String path, C2KLocalObject obj)
throws ClusterStorageException {
throw new ClusterStorageException("Writing not supported in ClientReader");
}
}
|