001: /*
002: * This file is part of the WfMOpen project.
003: * Copyright (C) 2001-2006 Danet GmbH (www.danet.de), BU BTS.
004: * All rights reserved.
005: *
006: * This program is free software; you can redistribute it and/or modify
007: * it under the terms of the GNU General Public License as published by
008: * the Free Software Foundation; either version 2 of the License, or
009: * (at your option) any later version.
010: *
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: *
020: * $Id: QueryInfos.java,v 1.1 2007/09/02 22:19:53 mlipp Exp $
021: *
022: * $Log: QueryInfos.java,v $
023: * Revision 1.1 2007/09/02 22:19:53 mlipp
024: * Made LDAP EIS RA realy work.
025: *
026: */
027: package de.danet.an.workflow.rmsimpls.ldaprmsra;
028:
029: /**
030: * This class provides informations for queries of a cerain type
031: * (user, group or role).
032: *
033: * @author mnl
034: *
035: */
036: public class QueryInfos {
037:
038: private int resType = 0;
039: private String ctxDN = null;
040: private String filter = null;
041: private String searchAttribute = null;
042: private String resourceNameAttribute = null;
043: private String memberAttribute = null;
044:
045: /**
046: * Create a new instance with all attributes initialized
047: * to defaults or the given values.
048: *
049: * @param ctxDN
050: * @param filter
051: * @param searchAttribute
052: * @param resourceNameAttribute
053: * @param memberAttribute
054: */
055: public QueryInfos(int resType, String ctxDN, String filter,
056: String searchAttribute, String resourceNameAttribute,
057: String memberAttribute) {
058: this .resType = resType;
059: this .ctxDN = ctxDN;
060: this .filter = filter;
061: this .searchAttribute = searchAttribute;
062: this .resourceNameAttribute = resourceNameAttribute;
063: this .memberAttribute = memberAttribute;
064: }
065:
066: /**
067: * @return Returns the resType.
068: */
069: public int getResType() {
070: return resType;
071: }
072:
073: /**
074: * @param resType The resType to set.
075: */
076: public void setResType(int resType) {
077: this .resType = resType;
078: }
079:
080: /**
081: * @return Returns the ctxDN.
082: */
083: public String getCtxDN() {
084: return ctxDN;
085: }
086:
087: /**
088: * @param ctxDN The ctxDN to set.
089: */
090: public void setCtxDN(String ctxDN) {
091: this .ctxDN = ctxDN;
092: }
093:
094: /**
095: * @return Returns the filter.
096: */
097: public String getFilter() {
098: return filter;
099: }
100:
101: /**
102: * @param filter The filter to set.
103: */
104: public void setFilter(String filter) {
105: this .filter = filter;
106: }
107:
108: /**
109: * @return Returns the searchAttribute.
110: */
111: public String getSearchAttribute() {
112: return searchAttribute;
113: }
114:
115: /**
116: * @param searchAttribute The searchAttribute to set.
117: */
118: public void setSearchAttribute(String searchAttribute) {
119: this .searchAttribute = searchAttribute;
120: }
121:
122: /**
123: * @return Returns the resourceNameAttribute.
124: */
125: public String getResourceNameAttribute() {
126: return resourceNameAttribute;
127: }
128:
129: /**
130: * @param resourceNameAttribute The resourceNameAttribute to set.
131: */
132: public void setResourceNameAttribute(String resourceNameAttribute) {
133: this .resourceNameAttribute = resourceNameAttribute;
134: }
135:
136: /**
137: * @return Returns the memberAttribute.
138: */
139: public String getMemberAttribute() {
140: return memberAttribute;
141: }
142:
143: /**
144: * @param memberAttribute The memberAttribute to set.
145: */
146: public void setMemberAttribute(String memberAttribute) {
147: this.memberAttribute = memberAttribute;
148: }
149:
150: }
|