KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > protocol > ws > objects > UserMatch


1 package org.ejbca.core.protocol.ws.objects;
2
3
4 import org.ejbca.util.query.BasicMatch;
5
6 public class UserMatch {
7
8     public static final int MATCH_WITH_USERNAME = org.ejbca.util.query.UserMatch.MATCH_WITH_USERNAME;
9     public static final int MATCH_WITH_EMAIL = org.ejbca.util.query.UserMatch.MATCH_WITH_EMAIL;
10     public static final int MATCH_WITH_STATUS = org.ejbca.util.query.UserMatch.MATCH_WITH_STATUS; // Value must the number representation.
11
public static final int MATCH_WITH_ENDENTITYPROFILE = org.ejbca.util.query.UserMatch.MATCH_WITH_ENDENTITYPROFILE; // Matches the end entity profile name.
12
public static final int MATCH_WITH_CERTIFICATEPROFILE = org.ejbca.util.query.UserMatch.MATCH_WITH_CERTIFICATEPROFILE; // Matches the certificate profile name.
13
public static final int MATCH_WITH_CA = org.ejbca.util.query.UserMatch.MATCH_WITH_CA; // Matches the CA name.
14
public static final int MATCH_WITH_TOKEN = org.ejbca.util.query.UserMatch.MATCH_WITH_TOKEN;
15     public static final int MATCH_WITH_DN = org.ejbca.util.query.UserMatch.MATCH_WITH_DN;
16     // Subject DN fields.
17
public static final int MATCH_WITH_UID = org.ejbca.util.query.UserMatch.MATCH_WITH_UID;
18     public static final int MATCH_WITH_COMMONNAME = org.ejbca.util.query.UserMatch.MATCH_WITH_COMMONNAME;
19     public static final int MATCH_WITH_DNSERIALNUMBER = org.ejbca.util.query.UserMatch.MATCH_WITH_DNSERIALNUMBER;
20     public static final int MATCH_WITH_GIVENNAME = org.ejbca.util.query.UserMatch.MATCH_WITH_GIVENNAME;
21     public static final int MATCH_WITH_INITIALS = org.ejbca.util.query.UserMatch.MATCH_WITH_INITIALS;
22     public static final int MATCH_WITH_SURNAME = org.ejbca.util.query.UserMatch.MATCH_WITH_SURNAME;
23     public static final int MATCH_WITH_TITLE = org.ejbca.util.query.UserMatch.MATCH_WITH_TITLE;
24     public static final int MATCH_WITH_ORGANIZATIONUNIT = org.ejbca.util.query.UserMatch.MATCH_WITH_ORGANIZATIONUNIT;
25     public static final int MATCH_WITH_ORGANIZATION = org.ejbca.util.query.UserMatch.MATCH_WITH_ORGANIZATION;
26     public static final int MATCH_WITH_LOCALE = org.ejbca.util.query.UserMatch.MATCH_WITH_LOCALE;
27     public static final int MATCH_WITH_STATE = org.ejbca.util.query.UserMatch.MATCH_WITH_STATE;
28     public static final int MATCH_WITH_DOMAINCOMPONENT = org.ejbca.util.query.UserMatch.MATCH_WITH_DOMAINCOMPONENT;
29     public static final int MATCH_WITH_COUNTRY = org.ejbca.util.query.UserMatch.MATCH_WITH_COUNTRY;
30     
31     public static final int MATCH_TYPE_EQUALS = BasicMatch.MATCH_TYPE_EQUALS;
32     public static final int MATCH_TYPE_BEGINSWITH = BasicMatch.MATCH_TYPE_BEGINSWITH;
33     public static final int MATCH_TYPE_CONTAINS = BasicMatch.MATCH_TYPE_CONTAINS;
34     
35     private int matchwith;
36     private int matchtype;
37     private String JavaDoc matchvalue;
38     
39     /** Default Web Service Constructor */
40     public UserMatch(){}
41     
42     /**
43      * Constuctor to use to create a UserMatch.
44      *
45      * @param matchwith one of MATCH_WITH_ constants.
46      * @param matchtype one of MATCH_TYPE_ constants.
47      * @param matchvalue a string to search for.
48      */

49     public UserMatch(int matchwith, int matchtype, String JavaDoc matchvalue){
50         this.matchwith = matchwith;
51         this.matchtype = matchtype;
52         this.matchvalue = matchvalue;
53     }
54
55     /**
56      * @return Returns the matchtype, one of MATCH_TYPE_ constants.
57      */

58     public int getMatchtype() {
59         return matchtype;
60     }
61
62     /**
63      * @param matchtype The matchtype to set, one of MATCH_TYPE_ constants.
64      */

65     public void setMatchtype(int matchtype) {
66         this.matchtype = matchtype;
67     }
68
69     /**
70      * @return Returns the matchvalue.
71      */

72     public String JavaDoc getMatchvalue() {
73         return matchvalue;
74     }
75
76     /**
77      * @param matchvalue The matchvalue to set.
78      */

79     public void setMatchvalue(String JavaDoc matchvalue) {
80         this.matchvalue = matchvalue;
81     }
82
83     /**
84      * @return Returns the matchwith, one of MATCH_WITH_ constants.
85      */

86     public int getMatchwith() {
87         return matchwith;
88     }
89
90     /**
91      * @param matchwith The matchwith to set, one of MATCH_WITH_ constants.
92      */

93     public void setMatchwith(int matchwith) {
94         this.matchwith = matchwith;
95     }
96     
97
98 }
99
Popular Tags