/* * Facebook Login Servlet - Shiboleth Identity Provider integrator with Facebook * Copyright (C) 2012 Poznan Supercomputing and Networking Center - Application * Department * * contact: adamski@man.poznan.pl * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. You should have received a copy of the GNU General Public License * along with this program. If not, see . * * * Poznan Supercomputing and Networking Center - Application Department, * ul.Dąbrowskiego 79a, 60-529 Poznań, Poland. (+48 61) 858-20-72 * http://apps.man.poznan.pl/ * * This application was developed as a part of the SYNAT project * http://www.synat.pl/en * * Poznan Supercomputing and Networking Center, hereby disclaims all copyright * interest in the Facebook Login Servlet written by Jakub "Erwin" Aftowicz. * (erwin37@gmail.com) * * Marcin Adamski , 21 MAY 2012 (adamski@man.poznan.pl) */ package pl.psnc.synat.idp; public class FbParameter { @Override public String toString() { return "[name=" + name + ", isReturned=" + isReturned + ", Statement[" + isInStatement + "]=" + numberInStatement + ", BlackList[" + isInBlackListStatement + "]=" + numberInBlackListStatement + ", Insert[" + isInInsertStatement + "]=" + numberInInsertStatement + "]"; } FbParameter(String n, boolean returned) { this.name = n; this.isReturned = returned; } private String name; private boolean isReturned; private boolean isInStatement = false; private boolean isInBlackListStatement = false; private boolean isInInsertStatement = false; private int numberInStatement; private int numberInBlackListStatement; private int numberInInsertStatement; public void setNumberInStatement(int num) { this.isInStatement = true; this.numberInStatement = num; } public void setNumberInBlackListStatement(int num) { this.isInBlackListStatement = true; this.numberInBlackListStatement = num; } public void setNumberInInsertStatement(int numberInInsertStatement) { this.isInInsertStatement = true; this.numberInInsertStatement = numberInInsertStatement; } public String getName() { return name; } public boolean isReturned() { return isReturned; } public boolean isInStatement() { return isInStatement; } public boolean isInBlackListStatement() { return isInBlackListStatement; } public boolean isInInsertStatement() { return isInInsertStatement; } public int getNumberInStatement() { return numberInStatement; } public int getNumberInBlackListStatement() { return numberInBlackListStatement; } public int getNumberInInsertStatement() { return numberInInsertStatement; } }