text
stringlengths
3
1.18M
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.database.Cursor; import android.os.Bundle; import com.ch_linghu.fanfoudroid.data.Tweet; import com.ch_linghu.fanfoudroid.db.StatusTable; import com.ch_linghu.fanfoudroid.fanfou.Status; import com.ch_linghu.fanfoudroi...
package com.ch_linghu.fanfoudroid.data2; public class Photo { private String thumburl; private String imageurl; private String largeurl; public Photo() { } public String getThumburl() { return thumburl; } public void setThumburl(String thumburl) { this.thumburl = thumburl; } public String getImageurl...
package com.ch_linghu.fanfoudroid.data2; import java.util.Date; public class User { private String id; private String name; private String screen_name; private String location; private String desription; private String profile_image_url; private String url; private boolean isProtected; private int friends_co...
package com.ch_linghu.fanfoudroid.data2; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class DataUtils { static SimpleDateFormat sdf = new SimpleDateFormat( "EEE MMM dd HH:mm:ss z yyyy", Locale.US); public st...
package com.ch_linghu.fanfoudroid.data2; import java.util.Date; public class Status { private Date created_at; private String id; private String text; private String source; private boolean truncated; private String in_reply_to_status_id; private String in_reply_to_user_id; private boolean favorited; privat...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
package com.ch_linghu.fanfoudroid.app; import android.graphics.Bitmap; import android.widget.ImageView; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback; public class SimpleImageLoader { public static void display(final ImageView imageVie...
package com.ch_linghu.fanfoudroid.app; import java.lang.Thread.State; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import android.graphi...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
package com.ch_linghu.fanfoudroid.app; import java.util.HashMap; import android.graphics.Bitmap; public class MemoryImageCache implements ImageCache { private HashMap<String, Bitmap> mCache; public MemoryImageCache() { mCache = new HashMap<String, Bitmap>(); } @Override public Bitmap get(Str...
package com.ch_linghu.fanfoudroid.app; import android.text.Spannable; import android.text.method.LinkMovementMethod; import android.text.method.MovementMethod; import android.view.MotionEvent; import android.widget.TextView; public class TestMovementMethod extends LinkMovementMethod { private double mY; ...
package com.ch_linghu.fanfoudroid.app; import android.graphics.Bitmap; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterApplication; public interface ImageCache { public static Bitmap mDefaultBitmap = ImageManager .drawableToBitmap(TwitterApplication.mContext.getResources() ...
package com.ch_linghu.fanfoudroid.app; import android.app.Activity; import android.content.Intent; import android.widget.Toast; import com.ch_linghu.fanfoudroid.LoginActivity; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.fanfou.RefuseError; import com.ch_linghu.fanfoudroid.http.HttpAuthExcepti...
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import and...
package com.ch_linghu.fanfoudroid; import java.text.MessageFormat; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.app.ProgressDialog; import android.content.ContentValues; import android.content.DialogInterface; import android.content.Intent; import a...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package com.ch_linghu.fanfoudroid; import android.app.Activity; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import an...
package com.ch_linghu.fanfoudroid.dao; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Database Helper * * @see SQLiteDatabase */ public ...
package com.ch_linghu.fanfoudroid.dao; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.text.TextUtils; import android.util.Log; import com.ch_linghu.fanfoudroid.dao.SQLiteTemplat...
package com.ch_linghu.fanfoudroid.task; public enum TaskResult { OK, FAILED, CANCELLED, NOT_FOLLOWED_ERROR, IO_ERROR, AUTH_ERROR }
package com.ch_linghu.fanfoudroid.task; import android.app.ProgressDialog; import android.content.Context; import android.util.Log; import android.widget.Toast; import com.ch_linghu.fanfoudroid.ui.base.WithHeaderActivity; public abstract class TaskFeedback { private static TaskFeedback _instance = null; public st...
package com.ch_linghu.fanfoudroid.task; public abstract class TaskAdapter implements TaskListener { public abstract String getName(); public void onPreExecute(GenericTask task) { }; public void onPostExecute(GenericTask task, TaskResult result) { }; public void onProgressUpdate(GenericTask task, Object param...
package com.ch_linghu.fanfoudroid.task; import android.util.Log; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.data.Tweet; import com.ch_linghu.fanfoudroid.db.StatusTable; import com.ch_linghu.fanfoudroid.http.HttpException; import com.ch_linghu.fanfoudroid.ui.base.BaseActivity...
package com.ch_linghu.fanfoudroid.task; import java.util.HashMap; import org.json.JSONException; import com.ch_linghu.fanfoudroid.http.HttpException; /** * 暂未使用,待观察是否今后需要此类 * * @author lds * */ public class TaskParams { private HashMap<String, Object> params = null; public TaskParams() { params = new H...
package com.ch_linghu.fanfoudroid.task; public interface TaskListener { String getName(); void onPreExecute(GenericTask task); void onPostExecute(GenericTask task, TaskResult result); void onProgressUpdate(GenericTask task, Object param); void onCancelled(GenericTask task); }
package com.ch_linghu.fanfoudroid.task; import java.util.Observable; import java.util.Observer; import android.os.AsyncTask; import android.util.Log; import android.widget.Toast; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.ui.module.Feedback; public abstract class GenericTa...
package com.ch_linghu.fanfoudroid.task; import java.util.Observable; import java.util.Observer; import android.util.Log; public class TaskManager extends Observable { private static final String TAG = "TaskManager"; public static final Integer CANCEL_ALL = 1; public void cancelAll() { Log.d(TAG, "All task Can...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import and...
package com.ch_linghu.fanfoudroid; import java.text.MessageFormat; import java.util.List; import android.content.Intent; import android.os.Bundle; import com.ch_linghu.fanfoudroid.fanfou.Paging; import com.ch_linghu.fanfoudroid.http.HttpException; import com.ch_linghu.fanfoudroid.ui.base.UserArrayBaseActivity; impor...
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.SearchManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.KeyEvent; import android.view.Lay...
package com.ch_linghu.fanfoudroid.ui.module; import java.util.ArrayList; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Color; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; impor...
package com.ch_linghu.fanfoudroid.ui.module; import android.widget.ListAdapter; public interface TweetAdapter extends ListAdapter { void refresh(); }
package com.ch_linghu.fanfoudroid.ui.module; import android.app.Activity; import android.view.MotionEvent; import com.ch_linghu.fanfoudroid.BrowseActivity; import com.ch_linghu.fanfoudroid.MentionActivity; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterActivity; /** * MyActivityFlipper ...
package com.ch_linghu.fanfoudroid.ui.module; import android.graphics.Color; import android.text.Editable; import android.text.InputFilter; import android.text.Selection; import android.text.TextWatcher; import android.view.View.OnKeyListener; import android.widget.EditText; import android.widget.TextView; ...
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; public interface Widget { Context getContext(); // TEMP public static interface OnGestureListener { /** * @param e1 * The fi...
package com.ch_linghu.fanfoudroid.ui.module; import com.ch_linghu.fanfoudroid.R; import android.app.Activity; import android.util.Log; import android.view.GestureDetector; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; import android.view.View; import android.view.View.O...
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.AbsListView; import android.widget.ListView; public class MyListView extends ListView implements ListView.OnScrollListener { private int mSc...
package com.ch_linghu.fanfoudroid.ui.module; public interface IFlipper { void showNext(); void showPrevious(); }
package com.ch_linghu.fanfoudroid.ui.module; import java.util.ArrayList; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; import android.graphic...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
/** * */ package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.graphics.Bitmap; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import...
package com.ch_linghu.fanfoudroid.ui.module; public interface Feedback { public boolean isAvailable(); public void start(CharSequence text); public void cancel(CharSequence text); public void success(CharSequence text); public void failed(CharSequence text); public void update(Object arg0); public void se...
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.text.Layout; import android.text.Spannable; import android.text.Spanned; import android.text.style.Foregrou...
package com.ch_linghu.fanfoudroid.ui.module; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Intent; import android.util.Log; import android.view.Gravity; import android.widget.ImageView; import android.widget.Toast; import android.widget.ViewSwitcher.ViewFactory...
package com.ch_linghu.fanfoudroid.ui.module; import java.util.List; import android.app.Activity; import android.content.Context; import android.util.Log; import android.view.View; import android.widget.ProgressBar; import android.widget.Toast; import com.ch_linghu.fanfoudroid.R; public class SimpleFeedback implemen...
/** * */ package com.ch_linghu.fanfoudroid.ui.module; import java.text.ParseException; import java.util.Date; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.text.TextUtils; import android.util.Log; import android.view.LayoutInflater; import ...
package com.ch_linghu.fanfoudroid.ui.module; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.drawable.AnimationDrawable; import android.text.TextPaint; import android.util.Log; import android.view.View; import android.view.animation.Animation; import ...
package com.ch_linghu.fanfoudroid.ui.module; import android.content.Context; import android.util.Log; public class FeedbackFactory { private static final String TAG = "FeedbackFactory"; public static enum FeedbackType { DIALOG, PROGRESS, REFRESH }; public static Feedback create(Context context, FeedbackType t...
package com.ch_linghu.fanfoudroid.ui.base; import android.app.Activity; import android.content.Intent; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.BitmapDrawable; import android.text.TextPaint; import android.util.Log; import android.view.View; import android.view.ViewGroup; im...
package com.ch_linghu.fanfoudroid.ui.base; import java.util.ArrayList; import java.util.List; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; import android.widget.ProgressBar; import android.widget.TextView; import com.ch_linghu.fanfoudroid.R;...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package com.ch_linghu.fanfoudroid.ui.base; public interface Refreshable { void doRetrieve(); }
package com.ch_linghu.fanfoudroid.ui.base; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.content.SharedPreferences; import and...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package com.ch_linghu.fanfoudroid.ui.base; import android.app.ListActivity; /** * TODO: 准备重构现有的几个ListActivity * * 目前几个ListActivity存在的问题是 : 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法, * 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity" * 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListView即可, * 而...
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package com.ch_linghu.fanfoudroid.ui.base; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.ContextMenu; import andro...
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 2009 Google, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 2009 Google, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
package com.hlidskialf.android.hardware; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; public class ShakeListener implements SensorEventListener { private static final int FORCE...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Hoja representa el fondo de el escenario * * @author Guadalupe Mtz. Rangel * @version 19 de mayo de 2012 */ public class Hoja extends Actor { private GreenfootImage fondo; //variable para el fondo ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Fish representa otro tipo de comida * * @author Guadalupe Mtz. Rangel * @version mayo 2012 */ public class Fish extends Comida { /** * Constructor que asiga la imagen a la clase Fish ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Texto sirve para creau un mensaje * * @author Guadalupe Mtz. Rangel * @version 29 de abril de 2012 */ public class Texto extends Actor { private String cadena; //mensaje que se mostrara en pantalla ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Comida here. * * @author (your name) * @version (a version number or a date) */ public abstract class Comida extends Actor { protected int puntos; //variable que representa...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.*; // (Date) /** * Clase que representa un cronometro * * @author (Programacion Orientada A Objetos - Gonzalez Donat - Neri Andriano) * @version (9/05/12) */ public class Cronometro extends Actor { pri...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Montaña * * @author Guadalupe Mtz. Rangel * @version 18 de mayo de 2012 */ public class Mountain extends Actor { private GreenfootImage imagen1;//sirve para crear las montañas private in...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase que representa los hoyos en el juego * * @author Guadalupe Mtz. rangel * @version 30 de mayo 2012 */ public class Hoyo extends Actor { private int contador; //variable para inicializar el contador ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *Claae FishYellow es una subclase de Comida, que le da 15 puntos al jugador * * @author Guadalupe Mtz. Rangel * @version 29 de abril de 2012 */ public class FishYellow extends Comida { /** * Constructor para ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Claae FishGreen es una subclase de Comida, que le da 10 puntos al jugador * * @author Guadalupe Mtz. Rangel * @version 06 de mayo de 2012 */ public class FishGreen extends Comida { /** * Constructor para ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Pinguino representa el personaje principal del juego * * @author Guadalupe Mtz. Rangel * @version 29 de abril de 2012 */ public class Penguin extends Actor { private int x; //coordenada x inicial ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Menu crea un menu con varias opciones * * @author Guadalupe Martinez Rangwl * @version (a version number or a date) */ public class Menu extends Actor { int opc; //opcion de menu ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Escenario representa el escenario del juego * * @author Poul Henriksen * Guadalupe Mtz. Rangel * @version 29 de abril de 2012 */ public class Escenario extends World { private static final Greenfoo...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Food representa los tipos de comida que podra comer el pinguino * * @author Guadalupe Mtz. R. * @version 29 de abril de 2012 */ public abstract class Food extends Actor { /** * Act - do whatever the F...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Contador representa un conatdor * * @author Guadalupe Mtz. Rangel * @version 06 de mayo de 2012 */ public class Contador extends Actor { private int valor; //valor inicial del contador /** ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase obstaculo representa los obstaculos que apareceran en el juego * * @author Guadalupe Mtz. Rangel * @version 06 de mayo de 2012 */ public class Obstaculo extends Actor { private int dx; //vari...
package JUnitTest; import static org.junit.Assert.*; import java.util.ArrayList; import org.junit.Test; import core.dto.Database; import core.dto.OperatorDTO; import exceptions.UserNotFoundException; public class testDatabase { private Database db; private OperatorDTO user1; @org.junit.Befor...
package JUnitTest; import static org.junit.Assert.*; import org.junit.Test; public class testWeightFunctionality { @Test public void test() { fail("Not yet implemented"); } }
package JUnitTest; import static org.junit.Assert.*; import org.junit.Test; import core.dal.OperatorFunctionality; import core.dto.Database; import core.dto.IOperatorDTO; import core.dto.OperatorDTO; import exceptions.UserNotFoundException; public class testOperatorFunctionality { private Database d...
package JUnitTest; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import utilities.PasswordGenerator; public class testPassGenerator { PasswordGenerator pG; @Before public void before(){ pG = new PasswordGenerator(); } @Test public void testNewPassw...
package JUnitTest; import static org.junit.Assert.*; import org.junit.Test; public class testAdminFunctionality { @Test public void test() { fail("Not yet implemented"); } }
package utilities; public class PasswordChecker { private boolean hasLowercase = false; private boolean hasUppercase = false; private boolean hasNumber = false; private boolean hasSpecialChar = false; private char[] lowCaseLet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', '...
package utilities; import java.util.Random; public class PasswordGenerator { private String currentPassword; private String generatedPassword; Random random = new Random(); private char[] lowCaseLet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's...
package utilities; public class CommonUtil { public static boolean isNumber(String string){ try { int number = Integer.parseInt(string); } catch(Exception e) { return false; } return true; } }
package exceptions; public class UserNotFoundException extends DALException { int id; String password; public UserNotFoundException(int id){ super("User not found"); this.id = id; } @Override public String toString(){ return "ID: " + this.id + " " + "couldn't be found"; } }
package exceptions; public class WrongPasswordException extends DALException{ String pass; public WrongPasswordException(String pass){ super("Wrong Password"); this.pass = pass; } @Override public String toString(){ return "Password is not matching"; } }
package exceptions; public class DALException extends Throwable { /** * */ private static final long serialVersionUID = 1L; public DALException(){ super("Database mismatch"); } protected DALException(String id){ super(id); } }
package main; import java.util.ArrayList; import core.boundary.UserInterfaceTUI; import core.controller.CommandController; import core.controller.cmds.*; import core.dal.AdminFunctionality; import core.dal.OperatorFunctionality; import core.dal.WeightFunctionality; import core.dto.Database; import core.dto...
package core.controller; import java.util.ArrayList; import core.boundary.InputReader; import core.boundary.UserInterfaceTUI; import core.controller.cmds.*; import core.dal.AdminFunctionality; import core.dal.OperatorFunctionality; import core.dal.WeightFunctionality; import core.dto.AdminDTO; import core....
package core.controller.cmds; import core.controller.CommandController; import core.dal.AdminFunctionality; import core.dto.IOperatorDTO; import exceptions.UserNotFoundException; public class ShowUserCMD implements ICmd{ AdminFunctionality functionality; final String level = "Admin"; ICmd nextCMD; ...
package core.controller.cmds; import core.controller.CommandController; import core.dal.AdminFunctionality; import exceptions.UserNotFoundException; public class DeleteUserCMD implements ICmd{ AdminFunctionality functionality; final String level = "Admin"; ICmd nextCMD; CommandController cc; p...
package core.controller.cmds; import core.controller.CommandController; import core.dal.AdminFunctionality; import exceptions.UserNotFoundException; public class UpdateUserCMD implements ICmd{ AdminFunctionality functionality; final String level = "Admin"; ICmd nextCMD; CommandController cc; p...
package core.controller.cmds; import core.controller.CommandController; public class BackCMD implements ICmd { CommandController cc; public BackCMD(CommandController commandController) { this.cc = commandController; } final String level = "Back"; ICmd nextCMD; @Override public void setNextC...
package core.controller.cmds; import core.controller.CommandController; import core.dal.AdminFunctionality; import exceptions.UserNotFoundException; import exceptions.WrongPasswordException; public class CreateUserCMD implements ICmd{ AdminFunctionality functionality; final String level = "Admin"; ICmd...
package core.controller.cmds; import core.controller.CommandController; import core.dal.OperatorFunctionality; import exceptions.UserNotFoundException; public class LogoutCMD implements ICmd{ OperatorFunctionality functionality; final String level = "Operator"; ICmd nextCMD; CommandController cc; ...
package core.controller.cmds; import core.controller.CommandController; import core.dal.OperatorFunctionality; import exceptions.UserNotFoundException; public class ChangePasswordCMD implements ICmd{ final String level = "Operator"; OperatorFunctionality functionality; ICmd nextCMD; CommandController ...
package core.controller.cmds; import utilities.CommonUtil; import core.controller.CommandController; import core.dal.OperatorFunctionality; import exceptions.UserNotFoundException; import exceptions.WrongPasswordException; public class LoginCMD implements ICmd { OperatorFunctionality functionality; fina...
package core.controller.cmds; import core.controller.CommandController; import core.dal.WeightFunctionality; import exceptions.UserNotFoundException; public class EnterTestApplicationCMD implements ICmd{ WeightFunctionality functionality; final String level = "Operator"; ICmd nextCMD; CommandContro...