code
stringlengths
3
1.18M
language
stringclasses
1 value
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WA...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
/* NFCard 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. NFCard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A trap subclass that will move fast as this gets to a certain position. * * @author Manuel Nava * @version 1.0 */ public class Stalactite extends Trap { private boolean fall; /** * Constructor of ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * The class snail is a enemy that will move slow in the scenario. * * @author Manuel Nava * @version 1.0 */ public class Snail extends Enemy { private int contMov; /** * The constructor of this cla...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Class that contains subclasses deathly to the Player, it has a method that al the subclasses share. * * @author Manuel Nava * @version 1.0 */ public class Trap extends Actor { /** * The method act is empty. ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This class move the scroll in the world, also sets the counter that will permit the scroll to move or not. * * @author Manuel Nava * @version 1.0 */ public class Animation extends Actor { /** * The method a...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A animation for the scroll * * @author Manuel Nava * @version 1.0 */ public class Cave extends Animation { /** * The method act calls the superclass method move. */ public void act() { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * An animation for the scroll. * * @author Manuel Nava * @version 1.0 */ public class Tree extends Animation { /** * The method act calls the superclass method move. */ public void act() { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase Axe, es una subclase de la clase Weapon, tiene variables para saber en que direccion se dirige, * cuando debe de comenzar a caer, y para guardar las diferentes imagenes que hacen parecer que gira al moverse. * * @aut...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This class is an enemy subclass that will add objects of the class fire as time passes by and after * his X position is lower that 900. * * @author Manuel Nava * @version 0.9 */ public class Boss extends Enemy { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * An animetion for the scroll. * * @author Manuel Nava * @version 1.0 */ public class Grass extends Animation { /** * The method act calls the superclass method move. */ public void act() { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *Abstract class that contains the butons classes of the menu. * * @author Manuel Nava * @version 1.0 */ abstract public class Buttons extends Actor { /** * The act method in this class is abstract. */ ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * An enemy that will jump it gets to certain position. * * @author Manuel Nava * @version 1.0 */ public class Frog extends Enemy { private boolean jumping; private int velY; private boolean vulnerable; ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Class that displays the life the Player still have. * * @author Manel nava * @version 1.0 */ public class Life extends Actor { private int lifePoints; /** * The constructor of the class rece...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This class dosn't have an act method, and it just appears a certain moment to kill enemies. It's used * in the class Player and it's deleted from there. * * @author (Manuel Nava) * @version (1.0) */ public class Swor...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.util.List; /** * An actor class that can display a scoreboard, using Greenfoot's * UserInfo class. * * You typically use this by including some code into the world for when your game ends: * * <...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This is an abstract class used just to group the weapons. * * @author Manuel Nava * @version 1.0 */ abstract public class Weapon extends Actor { /** * Act - do whatever the Weapon wants to do. This method is...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *It moves from roght to left after it's has been added to the world * * @author Manuel Nava * @version 1.0 */ public class Fire extends Trap { /** * Calls the method move from the superclass, the method ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This class is just an animation that is used to get the Player a power up. * * @author Manuel Nava * @version 1.0 */ public class Cherry extends PowerUp { /** * In the method act it called the method of the ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A button that calls a certain method in the world. * * @author Manuel Nava * @version 1.0 */ public class Ayuda extends Buttons { /** * Checks the position and the click of the mouse with the method mouseCli...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A scroll animation. * * @author Manuel Nava * @version 1.0 */ public class Palm extends Animation { /** * The method act calls the method move from the superclass. * */ public void act() { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * The main actor in the world. This is the entity the user will know as him, and everything that happens * in the world is about the Player. * * @author Manuel Nava * @version 1.0 */ public class Player extends Actor ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class CaveWorld here. * * @author Manuel Nava * @version 1.0 */ public class CaveWorld extends World { private Player player; private Life life; private boolean move; privat...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A button that calls a certain method in the world. * * @author Manuel Nava * @version 1.0 */ public class Records extends Buttons { /** * Checks the position and the click of the mouse with the method mouseC...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This class indicates certain weapon that the Player is wielding. * * @author Manuel Nava * @version 1.0 */ public class Square extends Actor { private GreenfootImage axe; private GreenfootImage sword; pr...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * An animation for the scroll. * * @author Manuel Nava * @version 1.0 */ public class Floor extends Animation { /** * The method act calls the superclass method move. */ public void act() { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *The class Strawberry is a powerUp that will change the variable powerUp of the class Player that is touching it. * It uses the method move from the superclass. * @author Manuel Nava * @version 1.0 */ public class Strawb...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *Superclass that contains methods used by their subclasses. * * @author Manuel Nava * @version 1.0 */ public class Enemy extends Actor { private boolean isDeath; /** * The contructor set the boolea...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A button that calls a certain method in the world. * * @author Manuel Nava * @version 1.0 */ public class Creditos extends Buttons { /** * Checks the position and the click of the mouse with the method mouse...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * It's just a part of the game. The animation that will represent the girl the hero must save. * * @author Manuel Nava * @version 1.0 */ public class Tina extends Actor { /** * The act in this class calls two ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A button that calls a certain method in the world. * * @author Manuel Nava * @version 1.0 */ public class Menu extends Buttons { /** * Checks the position and the click of the mouse with the method mouseClic...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * An nimation for the scroll. * * @author Manuel Nava * @version 1.0 */ public class CaveCeiling extends Animation { /** * The method act calls the superclass method move. */ public void act() ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * A button that calls a certain method in the world. * * @author Manuel Nava * @version 1.0 */ public class Jugar extends Buttons { /** * Checks the position and the click of the mouse with the method mouseCli...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Class that displays the score the Player has get along the game. * * @author Manuel Nava * @version 1.0 */ public class Score extends Actor { /** * The constructor of the class receives an integer value that...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This class it's a structure that can be touched by a certain time. It'll disapeair after it's touched. * * @author Manuel Nava * @version 1.0 */ public class Cloud extends Structure { private boolean fall; ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * a animation for the scroll. * * @author Manuel Nava * @version 1.0 */ public class CaveFloor extends Animation { /** * The method act calls the superclass method move. */ public void act() ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Structure here. * * @author (your name) * @version (a version number or a date) */ public class Structure extends Actor { /** * Act - do whatever the Structure wants to do. This...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * It's just a structure that is used by the player to step on it. * * @author Manuel Nava * @version 1.0 */ public class Ground extends Structure { /** * The act in this class is empty. */ public ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * The class campfire is a trap that causes the player to lost a life. * * @author Manuel Nava * @version 1.0 */ public class Campfire extends Trap { /** * The method act calls the superclass method move. ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * This is a class that has the method move used by their subclasses. * * @author Manuel Nava * @version 1.0 */ public class PowerUp extends Actor { /** * The method act is empty. */ public void act()...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * The class Rock is a subclass of the class trap, it falls when it has get to a certain position. * * @author Manuel Nava * @version 1.0 */ public class Rock extends Trap { private boolean fall; /** ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * An enemy that spits fire after it gets to a certain position. * * @author Manuel Nava * @version 1.0 */ public class Snake extends Enemy { private int contMov; private int contAttack; private GreenfootIm...
Java
/** Automatically generated file. DO NOT MODIFY */ package com.code.webshopapp; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
package com.code.webshopapp; import java.text.SimpleDateFormat; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import andro...
Java
package com.code.webshopapp; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; public class ImageDownloader extends AsyncTask<String, Void, Bitmap> { ...
Java
package com.code.webshopapp; import java.util.ArrayList; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.view.Gravity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClick...
Java
package com.code.webshopapp; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; public class Login extends Activity { /** Called when the activity is first cre...
Java
package com.code.webshopapp; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtocolException; ...
Java
package com.code.webshopapp; import android.graphics.Bitmap; import android.util.LruCache; public class ImageCache { private LruCache<String, Bitmap> mMemoryCache; public ImageCache(int cacheSize) { mMemoryCache = new LruCache<String, Bitmap>(cacheSize) { @Override protected int sizeOf(String key, Bitmap...
Java
package at.codebase.db.entities; /** * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> */ public class EUser { private Long userId; private String username; private long imageId; private boolean isAdmin; //Global admin flag private String googleUserId; //Reference to the connected Google...
Java
package at.codebase.db.entities; /** * This class is used for the Item rating implementation * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class EItemFeedback { private Long itemFeedbackId; private long item; private long author; private long timeCreate; private EItemFeedba...
Java
package at.codebase.db.entities; /** * @author Daniel Marth <danielmarth@gmx.at> * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> */ public class EItem { private Long itemId; private String title; private String description; private boolean active; private boolean deleted; private double price; p...
Java
package at.codebase.db.entities; public class GeoPoint { private double latitude; private double longitude; public GeoPoint(double la, double lo) { this.latitude = la; this.longitude = lo; } public double getLatitude() { return latitude; } public void setLatitude(double latitude) { this.lati...
Java
package at.codebase.core.search; import at.codebase.db.entities.EItem; /** * @author Daniel Marth <danielmarth@gmx.at> */ public class ItemSearchResult { private EItem item; private String descriptionSnippet; private String titleSnippet; public ItemSearchResult(final String tSnippet, final String descSnippet...
Java
package at.codebase.core.search; import java.util.List; import at.codebase.db.entities.EItem; /** * @author Daniel Marth <danielmarth@gmx.at> */ public class ItemSearchResultInfo { private long count; private List<ItemSearchResult> results; public ItemSearchResultInfo(final long c, List<ItemSearchResult> r, ...
Java
package at.codebase.core.search; /** * @author Daniel Marth <danielmarth@gmx.at> */ public enum SortOptionsDetails { ASCENDING, DESCENDING }
Java
package at.codebase.core.search; /** * @author Daniel Marth <danielmarth@gmx.at> */ public class SortOptionDetailsNames { public static final String ASCENDING = "ascending"; public static final String DESCENDING = "descending"; }
Java
package at.codebase.core.search; /** * @author Daniel Marth <danielmarth@gmx.at> */ public class SortOptionsNames { public static final String TITLE = "title"; public static final String PRICE = "price"; public static final String DATE_POSTED = "datePosted"; public static final String LOCATION = "location"; pu...
Java
package at.codebase.core; import java.util.List; import at.codebase.db.entities.EItemFeedback; public class FeedbackData { private boolean userAlreadyRated; private List<EItemFeedback> itemFeedbackList; private double ratingAverage; public boolean isUserAlreadyRated() { return userAlreadyRated; } public...
Java
package at.codebase.web.util.json; /** * @author Daniel Marth <danielmarth@gmx.at> */ public class JsonKeys { public static final String STATUS = "STATUS"; public static final String TYPE = "TYPE"; public static final String ERROR = "ERROR"; public static final String ITEM = "ITEM"; public static final String ...
Java
package at.codebase.web.util.json; import java.util.ArrayList; import java.util.List; import org.json.simple.JSONObject; import at.codebase.web.util.json.JsonKeys; import at.codebase.core.FeedbackData; import at.codebase.core.search.ItemSearchResult; import at.codebase.core.search.ItemSearchResultInfo; import at.co...
Java
package at.codebase.web.util.json; import java.util.ArrayList; import java.util.List; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.JSONValue; import at.codebase.core.FeedbackData; import at.codebase.core.search.ItemSearchResult; import at.codebase.core.search.ItemSearc...
Java
package at.codebase.db; import com.googlecode.objectify.cmd.Loader; import com.googlecode.objectify.util.cmd.LoaderWrapper; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class OfyLoader extends LoaderWrapper<OfyLoader> { public OfyLoader(Loader base) { super(base);...
Java
package at.codebase.db; import at.codebase.db.entities.*; import com.googlecode.objectify.ObjectifyFactory; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class OfyFactory extends ObjectifyFactory { public OfyFactory() { this.register(EImage.class); this.regist...
Java
package at.codebase.db.entities; import at.codebase.db.entities.EItemFeedback.EItemFeedbackRating; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; @Entity public class EExternalItemFeedback { @Id private Long itemF...
Java
package at.codebase.db.entities; import com.google.appengine.api.users.User; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Embed; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecod...
Java
package at.codebase.db.entities; import com.google.appengine.api.blobstore.BlobKey; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; @Entity publ...
Java
package at.codebase.db.entities; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; import com.googlecode.objectify.annotation.Load; /** * This cl...
Java
package at.codebase.db.entities; import com.googlecode.objectify.Key; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; /** * @author Daniel Marth <danielmarth@gmx.at> */ @Entity public class ELogMessage { @Id priva...
Java
package at.codebase.db.entities; import java.util.ArrayList; import com.google.appengine.api.search.GeoPoint; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.anno...
Java
package at.codebase.db.entities; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; @Entity public class EMyExternalItemFeedback { @Id private Long feedbackId; @Index private Ref<...
Java
package at.codebase.db.entities; import static at.codebase.db.OfyService.ofy; import java.util.List; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; /** * @author Lukas Pfeifhofer <lukas.pfei...
Java
package at.codebase.db.entities; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import java.security.Security; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import ...
Java
package at.codebase.db.entities; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; import com.googlecode.objectify.annotation.Load; /** * * @au...
Java
package at.codebase.db.entities; public interface IMessage { public long getTimeSend(); }
Java
package at.codebase.db.entities; import java.util.ArrayList; import java.util.List; import at.codebase.db.DatabaseUtilities; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; /** *...
Java
package at.codebase.db.entities; import com.googlecode.objectify.Key; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Embed; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; import com.goo...
Java
package at.codebase.db; import com.googlecode.objectify.Objectify; import com.googlecode.objectify.util.cmd.ObjectifyWrapper; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class Ofy extends ObjectifyWrapper<Ofy, OfyFactory> { public Ofy(Objectify base) { super(base);...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.ArrayList; import java.util.List; import java.util.Map; import at.codebase.db.entities.EMessage; import at.codebase.db.entities.EUser; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class EMes...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.core.searchUser.UsernameSearch; import at.codebase.db.entities.EUser; /** * Provides static methods to manage users in the datastore. * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * ...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.db.entities.EApiPartner; public class EApiPartnerDao { public static void saveApiPartner(final EApiPartner apiPartner) { ofy().save().entity(apiPartner).now(); } public static List<EApiPartner>...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.db.entities.EExternalItemFeedback; public class EExternalItemFeedbackDao { public static List<EExternalItemFeedback> getFeedbackByItem(Long partnerId, String itemId) { return ofy().load().type(E...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.core.log.LogTypes; import at.codebase.db.entities.ELogMessage; import at.codebase.db.entities.EUser; import com.googlecode.objectify.cmd.Query; public class ELogMessageDao { public static ELogMessag...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.db.entities.EMessageExt; import at.codebase.db.entities.EUser; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class EMessageExtDao { /** * Adds a new Message to th...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.ArrayList; import java.util.Map; import at.codebase.db.entities.EImage; import at.codebase.db.entities.EUser; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * */ public class EImageDao { public static v...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.ArrayList; import java.util.List; import at.codebase.db.entities.EItem; import at.codebase.db.entities.EItemFeedback; import at.codebase.db.entities.EUser; /** * * @author Lukas Pfeifhofer <lukas.pfeifhofer@devlabs.pro> * ...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.db.entities.EItemCollection; /** * @author Daniel Marth <danielmarth@gmx.at> */ public class EItemCollectionDao { public static EItemCollection getCollectionById(final long id) { return ofy().loa...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.ArrayList; import java.util.List; import at.codebase.core.search.ItemSearch; import at.codebase.db.entities.EItem; import at.codebase.db.entities.EUser; /** * Provides static methods to manage items in the datastore. * * @...
Java
package at.codebase.db.dao; import static at.codebase.db.OfyService.ofy; import java.util.List; import at.codebase.db.entities.EApiAccess; import at.codebase.db.entities.EApiPartner; public class EApiAccessDao { public static void saveApiAccess(final EApiAccess apiAccess) { if(apiAccess.getAccessToken() != nul...
Java