01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.admin.model;
07:
08: import com.sun.portal.search.rdm.*;
09: import com.sun.portal.search.admin.*;
10: import com.sun.portal.log.common.PortalLogger;
11:
12: import java.util.*;
13: import java.util.logging.Logger;
14: import java.util.logging.Level;
15: import java.lang.*;
16:
17: /**
18: * Subclass this to implement specific callback functions
19: */
20: public class TaxonomyStore implements RDMCallback {
21: public Object data;
22: private ArrayList tax = new ArrayList();
23:
24: // Create a Logger for this class
25: private static Logger debugLogger = PortalLogger
26: .getLogger(TaxonomyStore.class);
27:
28: public void callback(Object rdmclass) {
29: RDMClassification c = (RDMClassification) rdmclass;
30: tax.add(c.getId());
31: }
32:
33: public ArrayList getTax() {
34: debugLogger.log(Level.FINER, "PSSH_CSPSAM0056", Integer
35: .toString(tax.size()));
36: return tax;
37: }
38: }
|