KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > web > admin > services > servicetypes > CRLUpdateWorkerType


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13 package org.ejbca.ui.web.admin.services.servicetypes;
14
15 import java.io.IOException JavaDoc;
16 import java.util.ArrayList JavaDoc;
17 import java.util.Collection JavaDoc;
18 import java.util.Properties JavaDoc;
19
20 /**
21  * @author Philip Vendil
22  *
23  * $id$
24  */

25 public class CRLUpdateWorkerType extends WorkerType {
26     
27     
28     public static final String JavaDoc NAME = "CRLUPDATEWORKER";
29     
30     private Collection JavaDoc compatibleActionTypeNames = new ArrayList JavaDoc();
31     private Collection JavaDoc compatibleIntervalTypeNames = new ArrayList JavaDoc();
32     
33     private transient Properties JavaDoc properties = new Properties JavaDoc();
34     
35     public CRLUpdateWorkerType() {
36         super("crlupdateworker.jsp", NAME, true);
37         
38         compatibleActionTypeNames.add(NoActionType.NAME);
39         
40         compatibleIntervalTypeNames.add(PeriodicalIntervalType.NAME);
41     }
42
43     /**
44      * @see org.ejbca.ui.web.admin.services.servicetypes.WorkerType#getCompatibleActionTypeNames()
45      */

46     public Collection JavaDoc getCompatibleActionTypeNames() {
47         return compatibleActionTypeNames;
48     }
49
50     /**
51      * @see org.ejbca.ui.web.admin.services.servicetypes.WorkerType#getCompatibleIntervalTypeNames()
52      */

53     public Collection JavaDoc getCompatibleIntervalTypeNames() {
54         return compatibleIntervalTypeNames;
55     }
56
57     /**
58      *
59      * @see org.ejbca.ui.web.admin.services.servicetypes.ServiceType#getClassPath()
60      */

61     public String JavaDoc getClassPath() {
62         return "org.ejbca.core.model.services.workers.CRLUpdateWorker";
63     }
64
65     /**
66      * @see org.ejbca.ui.web.admin.services.servicetypes.ServiceType#getProperties()
67      */

68     public Properties JavaDoc getProperties(ArrayList JavaDoc errorMessages) throws IOException JavaDoc {
69         return properties;
70     }
71
72     /**
73      * @see org.ejbca.ui.web.admin.services.servicetypes.ServiceType#isCustom()
74      */

75     public boolean isCustom() {
76         return false;
77     }
78
79     /**
80      * @see org.ejbca.ui.web.admin.services.servicetypes.ServiceType#setProperties(java.util.Properties)
81      */

82     public void setProperties(Properties JavaDoc properties) throws IOException JavaDoc {
83         this.properties = properties;
84     }
85
86 }
87
Popular Tags