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"); } }