gelAll() {
24 | return this.productDao.findAll();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BankApp/src/DataAccess/concretes/DbHelper.java:
--------------------------------------------------------------------------------
1 | package DataAccess.concretes;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 |
7 | public class DbHelper {
8 |
9 | /*
10 | DbHelper veritabanında bağlanmamız için gereken işlemleri yaptığımız class.
11 | Her bağlantıda aşağıdaki kodları tekrar yazmamak için bir class oluşturdum ve gerekli yerlerde newleyip kullandım.
12 | */
13 |
14 | String dbUserName = "postgres";
15 | String dbPassword = "123456";
16 | String dbUrl = "jdbc:postgresql://localhost:5432/bank";
17 |
18 | public Connection getConnection() throws SQLException {
19 | return DriverManager.getConnection(dbUrl,dbUserName,dbPassword);
20 | }
21 |
22 | public void showErrorMessage(SQLException exception){
23 | System.out.println("Veritabanına bağlanırken bir sorun oluştu...");
24 | System.out.println("Hata Mesajı : " + exception.getMessage());
25 | System.out.println("Hata Kodu : " + exception.getErrorCode());
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Main.java:
--------------------------------------------------------------------------------
1 | import Concretes.*;
2 | import Entities.Campaign;
3 | import Entities.Game;
4 | import Entities.Gamer;
5 |
6 | public class Main {
7 |
8 | public static void main(String[] args) {
9 |
10 | //OBJECTS CREATED
11 | Game game1 = new Game("EU4",100);
12 | Game game2 = new Game("Far Cry 3",50);
13 |
14 | Campaign campaign = new Campaign("Summer Sale",20);
15 |
16 | Gamer gamer = new Gamer("Hasan Can","Özbek","11111111111",2001);
17 |
18 | //--------------------------------------------------------------------------------------------------------\\
19 |
20 | //TESTS
21 | GameSaleManager saleManager = new GameSaleManager();
22 | GamerManager gamerManager = new GamerManager(new FakeValidationManager());
23 | CampaignManager campaignManager = new CampaignManager();
24 |
25 | campaignManager.addCampaign(campaign,game1);
26 | gamerManager.add(gamer);
27 | saleManager.sale(gamer,game2);
28 | saleManager.bargainSale(gamer,game1,campaign);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Hasan Can Özbek
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/BankApp/src/DataAccess/abstracts/BaseDao.java:
--------------------------------------------------------------------------------
1 | package DataAccess.abstracts;
2 |
3 | import Entities.concretes.IndividualAccount;
4 |
5 | import java.sql.SQLException;
6 | import java.util.List;
7 |
8 | public interface BaseDao {
9 | /*
10 | BaseDao interface'imiz postgresql, mysql, oracle, mongodb vb. veritabanlarının adresini tutabildiği için
11 | katmanlar arası haberleşmede (dataAccess <-> business) kullandık. Bu sayede yeni bir database ile çalışacağımız zaman
12 | tek yapmamız gereken şey çalışacağımız db'yi iş katmanında belirtmek.
13 | */
14 |
15 | void addToDb(IndividualAccount individualAccount) throws SQLException;
16 |
17 | void deleteFromDb(IndividualAccount individualAccount) throws SQLException;
18 |
19 | void updateDb(IndividualAccount individualAccount) throws SQLException;
20 |
21 | void deposit(IndividualAccount individualAccount, int amount) throws SQLException;
22 |
23 | void withdraw(IndividualAccount individualAccount, int amount) throws SQLException;
24 |
25 | void transfer(IndividualAccount individualAccount, int amount, String iban) throws SQLException;
26 |
27 | void getAll() throws SQLException;
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Entities/Gamer.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | import Abstracts.Entity;
4 |
5 | public class Gamer implements Entity{
6 |
7 | private String firstName;
8 | private String lastName;
9 | private String nationalityId;
10 | private int birthOfYear;
11 |
12 |
13 | public Gamer(){}
14 |
15 | public Gamer(String firstName, String lastName, String nationalityId, int birthOfYear){
16 | this.firstName = firstName;
17 | this.lastName = lastName;
18 | this.nationalityId = nationalityId;
19 | this.birthOfYear = birthOfYear;
20 | }
21 |
22 |
23 | public String getFirstName() {
24 | return firstName;
25 | }
26 |
27 | public void setFirstName(String firstName) {
28 | this.firstName = firstName;
29 | }
30 |
31 | public String getLastName() {
32 | return lastName;
33 | }
34 |
35 | public void setLastName(String lastName) {
36 | this.lastName = lastName;
37 | }
38 |
39 | public String getNationalityId() {
40 | return nationalityId;
41 | }
42 |
43 | public int getBirthOfYear() {
44 | return birthOfYear;
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/CoffeeShop/src/Main.java:
--------------------------------------------------------------------------------
1 | import Business.abstracts.BaseCustomerManager;
2 | import Business.concretes.MernisCheckService;
3 | import Business.concretes.NeroCustomerManager;
4 | import Business.concretes.StarbucksCustomerManager;
5 | import Entites.concretes.Customer;
6 |
7 | public class Main {
8 |
9 | public static void main(String[] args) {
10 |
11 | Customer customer1 = new Customer("Hasan Can","Özbek",2001,"11111111111");
12 |
13 | Customer customer2 = new Customer();
14 | customer2.setFirstName("Engin");
15 | customer2.setLastName("Demiroğ");
16 | customer2.setBirthOfDate(1978);
17 | customer2.setNationalityId("xxxxxxxxxxx");
18 |
19 |
20 | BaseCustomerManager starbucksManager = new StarbucksCustomerManager(new MernisCheckService());
21 | BaseCustomerManager neroManager = new NeroCustomerManager();
22 |
23 | starbucksManager.save(customer1);
24 | neroManager.save(customer2);
25 |
26 | System.out.println("----------------------------------------------------------------------------");
27 |
28 | starbucksManager.saleCoffee(customer1);
29 | starbucksManager.saleCoffee(customer1);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/OnlineShop/PROJE-ISTERLERI.md:
--------------------------------------------------------------------------------
1 | Kullanıcılar sisteme bilgilerini girerek üye olabilmelidir.
2 |
3 | Sisteme temel kullanıcı bilgileri , e-posta ve parolayla üye olunabilmelidir. Temel kullanıcı bilgileri : ad, soyad, e-posta, parola. Temel bilgilerin tamamı zorunludur.
4 | Parola en az 6 karakterden oluşmalıdır.
5 | E-posta alanı e-posta formatında olmalıdır. (Regex ile yapınız. Araştırma konusu)
6 | E-Posta daha önce kullanılmamış olmalıdır.
7 | Ad ve soyad en az iki karakterden oluşmalıdır.
8 | Üyelik sonucu kullanıcıya doğrulama e-postası gönderilmelidir. (Simulasyon)
9 | Doğrulama linki tıklandığında üyelik tamamlanmalıdır. (Simulasyon)
10 | Hatalı veya başarılı durumda kullanıcı bilgilendirilmelidir.
11 | Kullanıcılar sisteme Google hesapları ile üye olabilmelidir. (Simulasyon)
12 |
13 | İlerleyen zamanlarda başka yetkilendirme servisleri de kullanılabilir. (Sistemi dış servis entegrasyonu olacak şekilde yapılandırınız.)
14 | Hatalı veya başarılı durumda kullanıcı bilgilendirilmelidir.
15 | Kullanıcılar e-posta ve parola bilgisiyle sisteme giriş yapabilmelidir.
16 |
17 | E-posta ve parola zorunludur
18 | Hatalı veya başarılı durumda kullanıcı bilgilendirilmelidir.
19 |
20 |
21 | Bu isterleri katmanlı mimaride simüle ediniz.
22 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/AUOMarshalGuid.java:
--------------------------------------------------------------------------------
1 | package Core.MernisV1;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 |
13 | import org.ksoap2.serialization.Marshal;
14 | import org.ksoap2.serialization.PropertyInfo;
15 | import org.ksoap2.serialization.SoapSerializationEnvelope;
16 | import org.xmlpull.v1.XmlPullParser;
17 | import org.xmlpull.v1.XmlPullParserException;
18 | import org.xmlpull.v1.XmlSerializer;
19 |
20 | import java.io.IOException;
21 | import java.util.UUID;
22 |
23 |
24 | public class AUOMarshalGuid implements Marshal
25 | {
26 | public java.lang.Object readInstance(XmlPullParser parser, java.lang.String namespace, java.lang.String name,PropertyInfo expected) throws IOException, XmlPullParserException
27 | {
28 | return UUID.fromString(parser.nextText());
29 | }
30 |
31 | public void register(SoapSerializationEnvelope cm)
32 | {
33 | cm.addMapping(cm.xsd, "guid", UUID.class, this);
34 | }
35 |
36 | public void writeInstance(XmlSerializer writer, java.lang.Object obj) throws IOException
37 | {
38 | writer.text(obj.toString());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/LUMMarshalGuid.java:
--------------------------------------------------------------------------------
1 | package Core.MernisV2;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 |
13 | import org.ksoap2.serialization.Marshal;
14 | import org.ksoap2.serialization.PropertyInfo;
15 | import org.ksoap2.serialization.SoapSerializationEnvelope;
16 | import org.xmlpull.v1.XmlPullParser;
17 | import org.xmlpull.v1.XmlPullParserException;
18 | import org.xmlpull.v1.XmlSerializer;
19 |
20 | import java.io.IOException;
21 | import java.util.UUID;
22 |
23 |
24 | public class LUMMarshalGuid implements Marshal
25 | {
26 | public java.lang.Object readInstance(XmlPullParser parser, java.lang.String namespace, java.lang.String name,PropertyInfo expected) throws IOException, XmlPullParserException
27 | {
28 | return UUID.fromString(parser.nextText());
29 | }
30 |
31 | public void register(SoapSerializationEnvelope cm)
32 | {
33 | cm.addMapping(cm.xsd, "guid", UUID.class, this);
34 | }
35 |
36 | public void writeInstance(XmlSerializer writer, java.lang.Object obj) throws IOException
37 | {
38 | writer.text(obj.toString());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/EAEMarshalGuid.java:
--------------------------------------------------------------------------------
1 | package MernisService;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 |
13 | import org.ksoap2.serialization.Marshal;
14 | import org.ksoap2.serialization.PropertyInfo;
15 | import org.ksoap2.serialization.SoapSerializationEnvelope;
16 | import org.xmlpull.v1.XmlPullParser;
17 | import org.xmlpull.v1.XmlPullParserException;
18 | import org.xmlpull.v1.XmlSerializer;
19 |
20 | import java.io.IOException;
21 | import java.util.UUID;
22 |
23 |
24 | public class EAEMarshalGuid implements Marshal
25 | {
26 | public java.lang.Object readInstance(XmlPullParser parser, java.lang.String namespace, java.lang.String name,PropertyInfo expected) throws IOException, XmlPullParserException
27 | {
28 | return UUID.fromString(parser.nextText());
29 | }
30 |
31 | public void register(SoapSerializationEnvelope cm)
32 | {
33 | cm.addMapping(cm.xsd, "guid", UUID.class, this);
34 | }
35 |
36 | public void writeInstance(XmlSerializer writer, java.lang.Object obj) throws IOException
37 | {
38 | writer.text(obj.toString());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/BankApp/src/Core/Adapters/MernisV1Adapter.java:
--------------------------------------------------------------------------------
1 | package Core.Adapters;
2 |
3 | import Core.MernisV1.AUOKPSPublicSoap;
4 | import Entities.concretes.IndividualAccount;
5 |
6 | import java.util.Locale;
7 |
8 | public class MernisV1Adapter implements CustomerCheckService{
9 | /*
10 | Adapters tasarım deseni, dışarıdan bir servisle çalışmak istediğimizde bağımlılığı azaltmak için kullandığımız bir
11 | tasarım kalıbdır. Bu kodda dışarıdan almış olduğumuz MERNİS sistemini program içinde direkt kullanmak yerine, bir
12 | adapter yardımıyla bu servisi kendi yazılımıza uyarlıyoruz ve böylelikle olası bağımlılıkları azaltmış oluyoruz.
13 | Eğer direkt olarak adapter kullanmadan kodlara entegre etmiş olsaydık MERNİS sisteminin hizmet vermeyi durdurması,
14 | aksatması vb. durumlarda programımız da çökecekti.
15 | */
16 |
17 | @Override
18 | public boolean isRealPerson(IndividualAccount individualAccount) throws Exception {
19 |
20 | AUOKPSPublicSoap mernisVerify = new AUOKPSPublicSoap();
21 | return mernisVerify.TCKimlikNoDogrula(Long.parseLong(individualAccount.getCustomerTC()),individualAccount.getCustomerFirstName().toUpperCase(new Locale("tr")),individualAccount.getCustomerLastName().toUpperCase(new Locale("tr")),Integer.valueOf(individualAccount.getCustomerBirthOfYear()));
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/OnlineShop/src/Entities/concretes/User.java:
--------------------------------------------------------------------------------
1 | package Entities.concretes;
2 |
3 | import Entities.abstracts.Entity;
4 |
5 | public class User implements Entity {
6 | private String firstName;
7 | private String lastName;
8 | private String email;
9 | private String password;
10 |
11 | public String getFirstName() {
12 | return firstName;
13 | }
14 |
15 | public void setFirstName(String firstName) {
16 | this.firstName = firstName;
17 | }
18 |
19 | public String getLastName() {
20 | return lastName;
21 | }
22 |
23 | public void setLastName(String lastName) {
24 | this.lastName = lastName;
25 | }
26 |
27 | public String getEmail() {
28 | return email;
29 | }
30 |
31 | public void setEmail(String email) {
32 | this.email = email;
33 | }
34 |
35 | public String getPassword() {
36 | return password;
37 | }
38 |
39 | public void setPassword(String password) {
40 | this.password = password;
41 | }
42 |
43 | public User() {
44 | }
45 |
46 | public User(String firstName, String lastName, String email, String password) {
47 | this.firstName = firstName;
48 | this.lastName = lastName;
49 | this.email = email;
50 | this.password = password;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Northwind/For-Database-Configration.txt:
--------------------------------------------------------------------------------
1 | Northwind/src/main/resources/application.properties içine aşağıdaki komutları yapıştırın.
2 | DATABASE_NAME : Oluşturduğunuz DB adı.(PostgreSql büyük küçük harf duyarlıdır.)
3 | PASSWORD : PgAdmin panellinde girişte kullandığınız parolanız.
4 | ---------------------------------------------------------------------------------
5 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
6 | spring.jpa.hibernate.ddl-auto=update
7 | spring.jpa.hibernate.show-sql=true
8 | spring.datasource.url=jdbc:postgresql://localhost:5432/DATABASE_NAME
9 | spring.datasource.username=postgres
10 | spring.datasource.password=PASSWORD
11 | spring.jpa.properties.javax.persistence.validation.mode = none
12 | ---------------------------------------------------------------------------------
13 |
14 | Database içindeki hazır verileri yüklemek için Db üzerinde sağ tıklayıp QueryTool açmanız ve aşağıdaki linkten kopyaladığınız
15 | sql kodlarını yapıştırıp execute butonuna basmanız gerekiyor.
16 | Northwind veritabanı için : https://github.com/engindemirog/Northwind-Database-Script-for-Postgre-Sql/blob/master/script.sql
17 | Not : Northwind, Microsoft'un eğitimlerinde kullandığı hazır bir veritabanıdır. İçerisinde binlerce data örneği barındırır.
18 | Projelerinizde istediğiniz gibi kullanabilirsiniz.
19 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/CTPMarshalGuid.java:
--------------------------------------------------------------------------------
1 | package Core.MernisServiceReference;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 |
13 | import org.ksoap2.serialization.Marshal;
14 | import org.ksoap2.serialization.PropertyInfo;
15 | import org.ksoap2.serialization.SoapSerializationEnvelope;
16 | import org.xmlpull.v1.XmlPullParser;
17 | import org.xmlpull.v1.XmlPullParserException;
18 | import org.xmlpull.v1.XmlSerializer;
19 |
20 | import java.io.IOException;
21 | import java.util.UUID;
22 |
23 |
24 | public class CTPMarshalGuid implements Marshal
25 | {
26 | public java.lang.Object readInstance(XmlPullParser parser, java.lang.String namespace, java.lang.String name,PropertyInfo expected) throws IOException, XmlPullParserException
27 | {
28 | return UUID.fromString(parser.nextText());
29 | }
30 |
31 | public void register(SoapSerializationEnvelope cm)
32 | {
33 | cm.addMapping(cm.xsd, "guid", UUID.class, this);
34 | }
35 |
36 | public void writeInstance(XmlSerializer writer, java.lang.Object obj) throws IOException
37 | {
38 | writer.text(obj.toString());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Concretes/GamerManager.java:
--------------------------------------------------------------------------------
1 | package Concretes;
2 |
3 | import Abstracts.PersonCheckService;
4 | import Abstracts.UserService;
5 | import Entities.Gamer;
6 |
7 | public class GamerManager implements UserService {
8 |
9 | private PersonCheckService personCheckService;
10 | public GamerManager(PersonCheckService personCheckService){
11 | this.personCheckService = personCheckService;
12 | }
13 |
14 | @Override
15 | public void add(Gamer gamer) {
16 | try {
17 | if (personCheckService.realPerson(gamer)){
18 | System.out.println("Gamer verified : "+gamer.getFirstName()+" "+gamer.getLastName());
19 | }
20 | else{
21 | System.out.println("Invalid person.");
22 | }
23 | } catch (Exception e) {
24 | System.out.println("Unable to access validation service. Please try again.");
25 | System.out.println(e.getMessage());
26 | }
27 | }
28 |
29 | @Override
30 | public void delete(Gamer gamer) {
31 | System.out.println("Account deleted.");
32 | }
33 |
34 | @Override
35 | public void update(Gamer gamer, String name, String surname) {
36 | gamer.setFirstName(name);
37 | gamer.setLastName(surname);
38 | System.out.println("Your personal information has been updated:");
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/CoffeeShop/src/Entites/concretes/Customer.java:
--------------------------------------------------------------------------------
1 | package Entites.concretes;
2 |
3 | import Entites.abstracts.Entity;
4 |
5 | public class Customer implements Entity {
6 |
7 | private String firstName;
8 | private String lastName;
9 | private int birthOfDate;
10 | private String nationalityId;
11 |
12 | public Customer(){}
13 |
14 | public Customer(String firstName, String lastName, int birthOfDate, String nationalityId){
15 | this.firstName = firstName;
16 | this.lastName = lastName;
17 | this.birthOfDate = birthOfDate;
18 | this.nationalityId = nationalityId;
19 | }
20 |
21 | public String getFirstName() {
22 | return firstName;
23 | }
24 |
25 | public void setFirstName(String firstName) {
26 | this.firstName = firstName;
27 | }
28 |
29 | public String getLastName() {
30 | return lastName;
31 | }
32 |
33 | public void setLastName(String lastName) {
34 | this.lastName = lastName;
35 | }
36 |
37 | public int getBirthOfDate() {
38 | return birthOfDate;
39 | }
40 |
41 | public void setBirthOfDate(int birthOfDate) {
42 | this.birthOfDate = birthOfDate;
43 | }
44 |
45 | public String getNationalityId() {
46 | return nationalityId;
47 | }
48 |
49 | public void setNationalityId(String nationalityId) {
50 | this.nationalityId = nationalityId;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/CoffeeShop/src/Business/concretes/StarbucksCustomerManager.java:
--------------------------------------------------------------------------------
1 | package Business.concretes;
2 |
3 | import Business.abstracts.BaseCustomerManager;
4 | import Business.abstracts.CustomerCheckService;
5 | import Entites.concretes.Customer;
6 |
7 | public class StarbucksCustomerManager extends BaseCustomerManager {
8 |
9 | private CustomerCheckService customerCheckService;
10 |
11 | public StarbucksCustomerManager(CustomerCheckService customerCheckService){
12 | this.customerCheckService = customerCheckService;
13 | }
14 |
15 | @Override
16 | public void save(Customer customer) {
17 | try {
18 | if (customerCheckService.isRealPerson(customer)){
19 | System.out.println("Successfully saved : "+customer.getFirstName()+" "+customer.getLastName());
20 | }
21 | else{
22 | System.out.println("Customer could not be verified. : "+customer.getFirstName()+" "+customer.getLastName());
23 | }
24 | } catch (Exception e) {
25 | System.out.println("Can't access MERNİS validation service. Please try again.");
26 | System.out.println(e.getMessage());
27 | }
28 |
29 | }
30 |
31 | static int star=0;
32 | @Override
33 | public void saleCoffee(Customer customer) {
34 | super.saleCoffee(customer);
35 | star++;
36 | System.out.println("You earn 1 star for your order. Your total stars : "+star);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Northwind/src/main/java/com/hasancanozbek/Northwind/Entities/concretes/Product.java:
--------------------------------------------------------------------------------
1 | package com.hasancanozbek.Northwind.Entities.concretes;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 |
7 | import javax.persistence.*;
8 |
9 | @Data //Getter-Setter, toString, equalsAndHashCode yapılarını sizin yerinize kurar.
10 | @NoArgsConstructor // Parametresiz constructor oluşturur.
11 | @AllArgsConstructor // Classta final olmayan tüm fieldların parametrede bulunduğu bir constructor kurar.
12 |
13 | @Entity // Bu classın Entity katmanına ait bir nesne(veritabanında tabloya karşılık geldiğini) olduğunu Spring'e Jpa vasıtasıyla belirtiyoruz.
14 | @Table(name = "products") // Veritabanında hangi tabloya karşılık geldiğini belirttik.
15 | public class Product {
16 |
17 | @Id // Bu annotation ile tablomuzda bulunan primary key'e sahip kolonumuzu belirttik.
18 | @GeneratedValue // Primary key'in otomatik olarak arttığını java tarafında id arttırma işlemi yapılamamsını söyledik.
19 | @Column(name = "product_id") // @Column anotasyonları ile ilgili field'ın veritabanında hangi sütuna karşılık gedliğini belirttik.
20 | private int id;
21 |
22 | @Column(name = "category_id")
23 | private int categoryId;
24 |
25 | @Column(name = "product_name")
26 | private String productName;
27 |
28 | @Column(name = "unit_price")
29 | private double unitPrice;
30 |
31 | @Column(name = "units_in_stock")
32 | private short unitsInStock;
33 |
34 | @Column(name = "quantity_per_unit")
35 | private String quantityPerUnit;
36 |
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/docs/Html/AUOKPSPublicSoap_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AUOKPSPublicSoap methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.MernisV1;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | AUOKPSPublicSoap service = new AUOKPSPublicSoap("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/docs/Html/EAEKPSPublicSoap_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import MernisService;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | EAEKPSPublicSoap service = new EAEKPSPublicSoap("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/docs/Html/AUOKPSPublicSoap12_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AUOKPSPublicSoap12 methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.MernisV1;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | AUOKPSPublicSoap12 service = new AUOKPSPublicSoap12("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/docs/Html/EAEKPSPublicSoap12_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap12 methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import MernisService;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/CoffeeShop/out/production/CoffeeShop/MernisService/docs/Html/EAEKPSPublicSoap_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import MernisService;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | EAEKPSPublicSoap service = new EAEKPSPublicSoap("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/CoffeeShop/out/production/CoffeeShop/MernisService/docs/Html/EAEKPSPublicSoap12_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap12 methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import MernisService;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.MernisServiceReference;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | CTPKPSPublicSoap service = new CTPKPSPublicSoap("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap12_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap12 methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.MernisServiceReference;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/GameStoreManagement/out/production/GameStoreManagement/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.MernisServiceReference;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | CTPKPSPublicSoap service = new CTPKPSPublicSoap("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/GameStoreManagement/out/production/GameStoreManagement/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap12_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap12 methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | TCKimlikNoDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.MernisServiceReference;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Integer param3 = ...;//initialization code
33 |
34 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
35 | Boolean res = service.TCKimlikNoDogrula(param0,param1,param2,param3);
36 | //in res variable you have a value returned from your web service
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/GameStoreManagement/PROJE-ISTERLERİ.md:
--------------------------------------------------------------------------------
1 | Bir oyun yazmak istiyorsunuz. Bu yazılım için backend kodlarını JAVA ile geliştirmeyi planlıyoruz. Yeni üye, satış ve kampanya yönetimi yapılması isteniyor. Nesnelere ait özellikleri istediğiniz gibi verebilirsiniz. Burada amaç yazdığınız kodun kalitesidir.
2 | Bu proje, konuları daha iyi kavramak ve pratik yapmak için tasarlanmıştır.
3 | Üzerinde iyileştirmeler ve eklemeler yapılabilir. Kendinizi sınamak için isterler doğrultusunda kendi kodlarınızı yazabilirsiniz.
4 | #### **Proje ile ilgili görüşlerinizi issues üzerinden iletebilirsiniz. Beğendiğiniz projelere yıldız verebilirsiniz.**
5 |
6 |
7 |
8 | ## **İSTERLER** ;
9 | 1. [x] Oyuncuların sisteme kayıt olabileceği, bilgilerini güncelleyebileceği, kayıtlarını silebileceği bir ortamı simule ediniz.
10 | 2. [x] Müşteri bilgilerinin doğruluğunu e-devlet sistemlerini kullanarak doğrulama yapmak istiyoruz.
11 | 3. [x] Fake bir veritabanında kodlarınızı yazmanız yeterlidir.(Simülasyon)
12 | 4. [x] Oyun satışı yapılabilecek satış ortamını simule ediniz.( Yapılan satışlar oyuncu ile ilişkilendirilmelidir.)
13 | 5. [x] Sisteme yeni kampanya girişi, kampanyanın silinmesi ve güncellenmesi imkanlarını simule ediniz.
14 | 6. [x] Satışlarda kampanya entegrasyonunu simule ediniz.
15 |
16 | > Projeyi görsel arayüz ile destekleyebilirsiniz. Burada asıl amaç projenin back endini yazmaktır.
17 | ---
18 |
19 |
20 |
21 | - Proje, başlangıç gününden sonraki **2** gün içinde teslim edilecek şekilde varsayılmıştır. Burada amaç gerçek hayatta bir projede çalışma sisteminin deneyimlenmesidir.
22 | - Kodlar okunabilir olmalıdır.
23 | - Projeniz genişletilebilir olmaldır. (İlerleyen günlerde ek servisler istenebileceği göz önüne alınarak değişime açık bir şekilde kodlanmalıdır.)
24 | - Projeniz *OOP* mantığına ve *SOLİD* prensiplerine uygun şekilde geliştirilmelidir.
--------------------------------------------------------------------------------
/Northwind/src/main/java/com/hasancanozbek/Northwind/Api/controllers/ProductsController.java:
--------------------------------------------------------------------------------
1 | package com.hasancanozbek.Northwind.Api.controllers;
2 |
3 | import com.hasancanozbek.Northwind.Business.abstracts.ProductService;
4 | import com.hasancanozbek.Northwind.Entities.concretes.Product;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.GetMapping;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RestController;
9 |
10 | import java.util.List;
11 |
12 | /*
13 | Controllers, projelerimizde Api dediğimiz katmanı oluşturur. Burada yazdığımız kodlar ile kullanıcıların hangi istekte
14 | bulunduğunu ve bu isteğe cevap olarak ne yapılacağını belirtiriz. Bir e-ticaret sitemiz olduğunu varsayalım.
15 | Domain Adı : hasancanozbek.com olsun. hasancanozbek.com/api/products adresine gidildiğinde aslında bu class'a gidiliyor.
16 | Burada /getall adresi database'den çektiğimiz ürünleri gösteriyor. Başka adresler de aynı şekilde belirtilebiliyor.
17 | Bu yapı aynı zamanda bir kere yazılıp ister mobil ister masaüstü ister web üzerinden kullanılabiliyor.
18 | Back-end'i bir kere yazıyoruz ve her platformda kullanabiliyoruz(React, Angular, Swing, Android Uygulama Geliştirme platformları).
19 | Özetle API yapısı back end ile front end arasındaki iletişimi sağlıyor, java ile diğer diller arasında tercümanlık
20 | yapıyor diyebiliriz.
21 | */
22 |
23 | @RestController
24 | @RequestMapping("/api/products")
25 |
26 | public class ProductsController {
27 |
28 | private ProductService productService;
29 | @Autowired
30 | public ProductsController(ProductService productService){
31 | this.productService = productService;
32 | }
33 |
34 | @GetMapping("/getall")
35 | public List getAll(){
36 | return this.productService.gelAll();
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PROJECTS
2 |
3 | | :computer:**Project Name** | :pencil2:**Description** | :bust_in_silhouette: **Owner** |
4 | | :--- | :----: | ---: |
5 | | :white_check_mark: [BankApp](https://github.com/hasancanozbek/My-Java-OOP-Projects/blob/main/BankApp/PROJE-ISTERLERI.md " project requests ")| Digital bank project with java using OOP techniques | [Hasan Can ÖZBEK](https://github.com/hasancanozbek) |
6 | |:white_check_mark:[CoffeeShop](https://github.com/hasancanozbek/Java-OOP-Projects/blob/main/CoffeeShop/PROJE-ISTERLERI.md)|Coffee shop customer management system (with MERNİS validation service) |[Hasan Can ÖZBEK](https://github.com/hasancanozbek)|
7 | |:white_check_mark:[GameStoreManagement](https://github.com/hasancanozbek/Java-OOP-Projects/blob/main/GameStoreManagement/PROJE-ISTERLERİ.md)|Game, campaign and sale management|[Hasan Can ÖZBEK](https://github.com/hasancanozbek)|
8 | |:white_check_mark:[OnlineShop](https://github.com/hasancanozbek/Java-OOP-Projects/blob/main/OnlineShop/PROJE-ISTERLERI.md)|Register and login a online market. (Dependency Injection, Regex)|[Hasan Can ÖZBEK](https://github.com/hasancanozbek)|
9 | |:white_check_mark:[Northwind](https://github.com/hasancanozbek/Java-OOP-Projects/tree/main/Northwind)|Basic web application project using Spring Boot framework|[Hasan Can ÖZBEK](https://github.com/hasancanozbek)|
10 | |:soon:[CinemaTickedSales]()|Coming soon.|[Hasan Can ÖZBEK](https://github.com/hasancanozbek)|
11 |
12 |
13 |
14 | ---
15 | ## About Projects
16 | * This repository is for creating project ideas together and coding them.
17 | * If you have a project idea and share it with us, you can write it [opening issue](https://github.com/hasancanozbek/My-Java-OOP-Projects/issues).
18 | * You can use, recode and share the projects in this repo as you wish.
19 | > :pushpin:Coffee, code, sleep... and repeat.
20 |
21 | 
22 |
--------------------------------------------------------------------------------
/BankApp/PROJE-ISTERLERI.md:
--------------------------------------------------------------------------------
1 | Amacımız bir dijital banka uygulaması geliştirmek. Bu proje, konuları daha iyi kavramak ve pratik yapmak için tasarlanmıştır.
2 | Üzerinde iyileştirmeler ve eklemeler yapılabilir. Kendinizi sınamak için isterler doğrultusunda kendi kodlarınızı yazabilirsiniz.
3 | #### **Proje ile ilgili görüşlerinizi issues üzerinden iletebilirsiniz. Beğendiğiniz projelere yıldız verebilirsiniz.**
4 |
5 |
6 |
7 | ## **İSTERLER** ;
8 | 1. [x] Kullanıcılar bireysel hesap başlığında hesap açabilmelidir.
9 | 2. [x] Kullanıcılardan bireysel hesaplarını açarken isim, soyisim, tc kimlik numarası bilgileri alınmalıdır.
10 | 3. [x] Hesabın doğrulanması MERNİS sistemi ile yapılmalıdır. Geçersiz kullanıcı durumunda kişi bilgilendirilmelidir.
11 | 4. [x] Veritabanı oluşturulmalı ve kullanıcı bilgileri bu veritabanına kaydedilmelidir.
12 | 5. [x] Veritabanında TC kimlik numarası ve hesap numarası uniqe değer olmalıdır.
13 | 6. [x] Doğrulanmış hesapların birer hesap numarası, bakiye bilgileri olmalıdır. Müşteriden hesap açarken başlangıç bakiyesi istenmelidir.
14 | 7. [x] Kullanıcılar hesaplarına para yatırabilmeli, hesaplarından para çekebilmelidir. Ve anlık bakiyelerini görebilmelidir.
15 | 8. [x] Kullanıcılar sistemde kayıtlı başka bir hesaba havale yapabilmelidir.
16 | 9. [x] Kullanıcılar hesaplarını silebilmelidir.
17 | 10. [x] Sistemde tüm hesapları listeleyecek bir yapı olmalıdır.
18 |
19 | > Projeyi görsel arayüz ile destekleyebilirsiniz. Burada asıl amaç projenin back endini yazmaktır.
20 | ---
21 |
22 |
23 |
24 | - Proje, başlangıç gününden sonraki 7 gün içinde teslim edilecek şekilde varsayılmıştır. Burada amaç gerçek hayatta bir projede çalışma sisteminin deneyimlenmesidir.
25 | - Kodlar okunabilir olmalıdır.
26 | - Projeniz genişletilebilir olmaldır. (İlerleyen günlerde ek servisler istenebileceği göz önüne alınarak değişime açık bir şekilde kodlanmalıdır.)
27 | - Projeniz *OOP* mantığına ve *SOLİD* prensiplerine uygun şekilde geliştirilmelidir.
28 |
--------------------------------------------------------------------------------
/CoffeeShop/PROJE-ISTERLERI.md:
--------------------------------------------------------------------------------
1 | Starbucks ve Nero firmalarıyla birlikte çalışmaktayız. İki firma da kendilerine has özellikler istemektedir. Firmaların proje isterleri raporu aşağıdaki gibidir.
2 | Bu proje, konuları daha iyi kavramak ve pratik yapmak için tasarlanmıştır.
3 | Üzerinde iyileştirmeler ve eklemeler yapılabilir. Kendinizi sınamak için isterler doğrultusunda kendi kodlarınızı yazabilirsiniz.
4 | #### **Proje ile ilgili görüşlerinizi issues üzerinden iletebilirsiniz. Beğendiğiniz projelere yıldız verebilirsiniz.**
5 |
6 |
7 |
8 | ## **İSTERLER** ;
9 | 1. [x] Starbucks da Nero da müşterilerini veritabanına kaydedebilmedir.
10 | 2. [x] Firmalar ortak bir veritabanı kullanmaktadır.
11 | 3. [x] Fake bir veritabanında kodlarınızı yazmanız yeterlidir.(Simülasyon)
12 | 4. [x] Kayıt işlemi için müşterinin adı, soyadı, doğum yılı, tc kimlik numarası bilgileri istenmelidir.
13 | 5. [x] Starbucks, müşterilerinin bir MERNİS doğrulaması yapılarak kayıt edilmesini istemektedir. Nero için ise doğrulamaya gerek yoktur.
14 | 6. [x] Veritabanına eklenip eklenmediği kullanıcılara çıktı olarak verilmelidir.
15 | 7. [x] Starbucks ve Nero firmaları kahve satışı yapabilmelidir. Ve bu satışlar müşteri ile bağlanabilmelidir.(Örn : "Afiyet olsun Hasan Can" gibi çıktılar için)
16 | 8. [x] Starbucks müşterilerine kahve satışı yaptıktan sonra yıldız kazanacakları bir sistem istemektedir.
17 | 9. [x] Sistemde Mernis doğrulamasının hizmet verememesi ihtimaline karşı doğrulama için fake bir servis de yazılmalıdır.
18 |
19 | > Projeyi görsel arayüz ile destekleyebilirsiniz. Burada asıl amaç projenin back endini yazmaktır.
20 | ---
21 |
22 |
23 |
24 | - Proje, başlangıç gününden sonraki **2** gün içinde teslim edilecek şekilde varsayılmıştır. Burada amaç gerçek hayatta bir projede çalışma sisteminin deneyimlenmesidir.
25 | - Kodlar okunabilir olmalıdır.
26 | - Projeniz genişletilebilir olmaldır. (İlerleyen günlerde ek servisler istenebileceği göz önüne alınarak değişime açık bir şekilde kodlanmalıdır.)
27 | - Projeniz *OOP* mantığına ve *SOLİD* prensiplerine uygun şekilde geliştirilmelidir.
28 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/docs/Html/LUMKPSPublicV2Soap_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | LUMKPSPublicV2Soap methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | KisiVeCuzdanDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.Mernis;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Boolean param3 = ...;//initialization code
33 | Integer param4 = ...;//initialization code
34 | Boolean param5 = ...;//initialization code
35 | Integer param6 = ...;//initialization code
36 | Boolean param7 = ...;//initialization code
37 | Integer param8 = ...;//initialization code
38 | String param9 = ...;//initialization code
39 | Integer param10 = ...;//initialization code
40 | String param11 = ...;//initialization code
41 |
42 | LUMKPSPublicV2Soap service = new LUMKPSPublicV2Soap("https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx");
43 | Boolean res = service.KisiVeCuzdanDogrula(param0,param1,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11);
44 | //in res variable you have a value returned from your web service
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/docs/Html/LUMKPSPublicV2Soap12_methods.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | LUMKPSPublicV2Soap12 methods
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 | KisiVeCuzdanDogrula
21 |
22 |
23 |
24 | Synchronous operation
25 |
26 |
27 | import Core.Mernis;
28 | ...
29 | Long param0 = ...;//initialization code
30 | String param1 = ...;//initialization code
31 | String param2 = ...;//initialization code
32 | Boolean param3 = ...;//initialization code
33 | Integer param4 = ...;//initialization code
34 | Boolean param5 = ...;//initialization code
35 | Integer param6 = ...;//initialization code
36 | Boolean param7 = ...;//initialization code
37 | Integer param8 = ...;//initialization code
38 | String param9 = ...;//initialization code
39 | Integer param10 = ...;//initialization code
40 | String param11 = ...;//initialization code
41 |
42 | LUMKPSPublicV2Soap12 service = new LUMKPSPublicV2Soap12("https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx");
43 | Boolean res = service.KisiVeCuzdanDogrula(param0,param1,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11);
44 | //in res variable you have a value returned from your web service
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/OnlineShop/src/Business/concretes/UserManager.java:
--------------------------------------------------------------------------------
1 | package Business.concretes;
2 |
3 | import Business.abstracts.UserService;
4 | import Core.Adapters.ThirdPartyRegisterService;
5 | import Core.Regex.MailRegex;
6 | import Core.Validate.ValidationService;
7 | import DataAccessObjects.abstracts.UserDao;
8 | import Entities.concretes.User;
9 |
10 | public class UserManager implements UserService {
11 | private UserDao userDao;
12 | private ValidationService validationService;
13 | private ThirdPartyRegisterService thirdPartyRegisterService;
14 |
15 | public UserManager(UserDao userDao, ValidationService validationService, ThirdPartyRegisterService thirdPartyRegisterService) {
16 | this.userDao = userDao;
17 | this.validationService = validationService;
18 | this.thirdPartyRegisterService = thirdPartyRegisterService;
19 | }
20 |
21 | @Override
22 | public void register(User user) {
23 | if (MailRegex.ifValidMail(user.getEmail()) && user.getPassword().length() >= 6 &&
24 | user.getFirstName().length() >= 2 && user.getLastName().length() >= 2 &&
25 | !(userDao.getUsers().contains(user))) {
26 | userDao.addToDb(user);
27 | // validationService.sendValidationCode(user.getEmail());
28 | validationService.mailValidation(validationService.sendValidationCode(user.getEmail()));
29 |
30 | } else {
31 | System.out.println("Kullanıcı kayıt edilemedi.");
32 | }
33 | }
34 |
35 | @Override
36 | public void registerWithThirdParty(User user) {
37 | thirdPartyRegisterService.registerWithThirdPartyApp(user);
38 | userDao.getUsers().add(user);
39 |
40 | }
41 |
42 | @Override
43 | public void login(String email, String password) {
44 | for (int i = 0; i < userDao.getUsers().size(); i++) {
45 | if (email.equals(userDao.getUser(i).getEmail()) && password.equals(userDao.getUser(i).getPassword())) {
46 | userDao.loginRequest();
47 | return;
48 | }
49 | }
50 | System.out.println("Mail adresiniz veya şifreniz yanlış.");
51 | }
52 | }
--------------------------------------------------------------------------------
/BankApp/src/Entities/concretes/IndividualAccount.java:
--------------------------------------------------------------------------------
1 | package Entities.concretes;
2 |
3 | import Entities.abstracts.BaseAccount;
4 |
5 | public class IndividualAccount implements BaseAccount {
6 | private String accountId;
7 | private String customerFirstName;
8 | private String customerLastName;
9 | private String customerTC;
10 | private int customerBirthOfYear;
11 | private int balance;
12 |
13 |
14 | public IndividualAccount (){}
15 |
16 | public IndividualAccount (String accountId, String customerFirstName, String customerLastName, String customerTC, int customerBirthOfYear, int balance){
17 | this.accountId = accountId;
18 | this.customerFirstName = customerFirstName;
19 | this.customerLastName = customerLastName;
20 | this.customerTC = customerTC;
21 | this.customerBirthOfYear = customerBirthOfYear;
22 | this.balance = balance;
23 | }
24 |
25 | public String getAccountId() { return accountId; }
26 |
27 | public void setAccountId(String accountId) {
28 | this.accountId = accountId;
29 | }
30 |
31 | public String getCustomerFirstName() {
32 | return customerFirstName;
33 | }
34 |
35 | public void setCustomerFirstName(String customerFirstName) {
36 | this.customerFirstName = customerFirstName;
37 | }
38 |
39 | public String getCustomerLastName() {
40 | return customerLastName;
41 | }
42 |
43 | public void setCustomerLastName(String customerLastName) {
44 | this.customerLastName = customerLastName;
45 | }
46 |
47 | public String getCustomerTC() {
48 | return customerTC;
49 | }
50 |
51 | public void setCustomerTC(String customerTC) {
52 | this.customerTC = customerTC;
53 | }
54 |
55 | public int getBalance() {
56 | return balance;
57 | }
58 |
59 | public void setBalance(int balance) {
60 | this.balance = balance;
61 | }
62 |
63 | public int getCustomerBirthOfYear() { return customerBirthOfYear; }
64 |
65 | public void setCustomerBirthOfYear(int customerBirthOfYear) { this.customerBirthOfYear = customerBirthOfYear; }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/Metadata.info:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 5.11.6.0
5 | Basic
6 | easywsdl
7 | AUOKPSPublicSoap
8 |
9 |
10 | https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx
11 |
12 | Core.MernisV1
13 | false
14 | true
15 | false
16 | true
17 | false
18 | false
19 | false
20 | false
21 | Default
22 |
23 | true
24 | false
25 | Java
26 | None
27 | true
28 | false
29 | false
30 |
31 |
32 | AUODateTimeConverter.java
33 | AUOExtendedSoapSerializationEnvelope.java
34 | AUOHelper.java
35 | AUOKPSPublicSoap.java
36 | AUOKPSPublicSoap12.java
37 | AUOMarshalGuid.java
38 | AUOStandardDateTimeConverter.java
39 | docs/Html/AUOKPSPublicSoap.html
40 | docs/Html/AUOKPSPublicSoap12.html
41 | docs/Html/AUOKPSPublicSoap12_methods.html
42 | docs/Html/AUOKPSPublicSoap_methods.html
43 | docs/Html/MTOMTransfer.html
44 | docs/Html/Tips.html
45 | docs/Index.html
46 | docs/Styles/Blueprint_Styles/Style.css
47 |
48 |
49 | ExKsoap2-1.0.3.1.jar
50 | ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar
51 |
52 |
53 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/Metadata.info:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 5.11.6.0
5 | Basic
6 | easywsdl
7 | EAEKPSPublicSoap
8 |
9 |
10 | https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx
11 |
12 | MernisService
13 | false
14 | true
15 | false
16 | true
17 | false
18 | false
19 | false
20 | false
21 | Default
22 |
23 | true
24 | false
25 | Java
26 | None
27 | true
28 | false
29 | false
30 |
31 |
32 | docs/Html/EAEKPSPublicSoap.html
33 | docs/Html/EAEKPSPublicSoap12.html
34 | docs/Html/EAEKPSPublicSoap12_methods.html
35 | docs/Html/EAEKPSPublicSoap_methods.html
36 | docs/Html/MTOMTransfer.html
37 | docs/Html/Tips.html
38 | docs/Index.html
39 | docs/Styles/Blueprint_Styles/Style.css
40 | EAEDateTimeConverter.java
41 | EAEExtendedSoapSerializationEnvelope.java
42 | EAEHelper.java
43 | EAEKPSPublicSoap.java
44 | EAEKPSPublicSoap12.java
45 | EAEMarshalGuid.java
46 | EAEStandardDateTimeConverter.java
47 |
48 |
49 | ExKsoap2-1.0.3.1.jar
50 | ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar
51 |
52 |
53 |
--------------------------------------------------------------------------------
/Northwind/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | org.springframework.boot
7 | spring-boot-starter-parent
8 | 2.5.2
9 |
10 |
11 | com.hasancanozbek
12 | Northwind
13 | 0.0.1-SNAPSHOT
14 | Northwind
15 | Demo project for Spring Boot.
16 |
17 | 11
18 |
19 |
20 |
21 | org.springframework.boot
22 | spring-boot-starter-data-jpa
23 |
24 |
25 | org.springframework.boot
26 | spring-boot-starter-web
27 |
28 |
29 |
30 | org.springframework.boot
31 | spring-boot-devtools
32 | runtime
33 | true
34 |
35 |
36 | org.postgresql
37 | postgresql
38 | runtime
39 |
40 |
41 | org.projectlombok
42 | lombok
43 | true
44 |
45 |
46 | org.springframework.boot
47 | spring-boot-starter-test
48 | test
49 |
50 |
51 |
52 |
53 |
54 |
55 | org.springframework.boot
56 | spring-boot-maven-plugin
57 |
58 |
59 |
60 | org.projectlombok
61 | lombok
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/BankApp/src/Business/concretes/AccountManager.java:
--------------------------------------------------------------------------------
1 | package Business.concretes;
2 |
3 | import Business.abstracts.BaseAccountService;
4 | import Core.Adapters.CustomerCheckService;
5 | import Core.Adapters.MernisV1Adapter;
6 | import DataAccess.abstracts.BaseDao;
7 | import Entities.concretes.IndividualAccount;
8 | import java.sql.SQLException;
9 | import java.util.Scanner;
10 |
11 | public class AccountManager implements BaseAccountService {
12 |
13 | //**Dependency injection yapıldı.**
14 | private BaseDao baseDao;
15 | public AccountManager(BaseDao baseDao) {
16 | this.baseDao = baseDao;
17 | }
18 |
19 | //Kimlik doğrulama servisimizin nesnesini oluşturduk. MernisV1 versiyonu ile çalışacağımızı belirttik.
20 | CustomerCheckService customerCheckService = new MernisV1Adapter();
21 |
22 |
23 | //CRUD operasyonları yazıldı.
24 | @Override
25 | public void addAccount(IndividualAccount individualAccount) throws Exception {
26 | //Kullanıcının gerçek kişi olup olmadığı mernis doğrulaması üzerinden kontrol edildi.
27 | if (customerCheckService.isRealPerson(individualAccount)){
28 | baseDao.addToDb(individualAccount);
29 | individualAccount.setAccountId(individualAccount.getCustomerTC());
30 | }
31 | else{
32 | System.out.println("Hesap sistem tarafından doğrulanamadı.");
33 | }
34 | }
35 |
36 | @Override
37 | public void updateAccount(IndividualAccount individualAccount,String nameUpdate, String surnameUpdate) throws SQLException {
38 | individualAccount.setCustomerFirstName(nameUpdate);
39 | individualAccount.setCustomerLastName(surnameUpdate);
40 | baseDao.updateDb(individualAccount);
41 | }
42 |
43 | @Override
44 | public void deleteAccount(IndividualAccount individualAccount) throws SQLException {
45 | System.out.println("Tc kimlik numaranızı giriniz : ");
46 | Scanner scanner = new Scanner(System.in);
47 | String control = scanner.nextLine();
48 | if (control.equals(individualAccount.getCustomerTC())){
49 | baseDao.deleteFromDb(individualAccount);
50 | }
51 | }
52 |
53 | @Override
54 | public void getAllAccounts() throws SQLException {
55 | baseDao.getAll();
56 | }
57 |
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/Metadata.info:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 5.11.6.0
5 | Basic
6 | easywsdl
7 | LUMKPSPublicV2Soap
8 |
9 |
10 | https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx
11 |
12 | Core.MernisV2
13 | false
14 | true
15 | false
16 | true
17 | false
18 | false
19 | false
20 | false
21 | Default
22 |
23 | true
24 | false
25 | Java
26 | None
27 | true
28 | false
29 | false
30 |
31 |
32 | docs/Html/LUMKPSPublicV2Soap.html
33 | docs/Html/LUMKPSPublicV2Soap12.html
34 | docs/Html/LUMKPSPublicV2Soap12_methods.html
35 | docs/Html/LUMKPSPublicV2Soap_methods.html
36 | docs/Html/MTOMTransfer.html
37 | docs/Html/Tips.html
38 | docs/Index.html
39 | docs/Styles/Blueprint_Styles/Style.css
40 | LUMDateTimeConverter.java
41 | LUMExtendedSoapSerializationEnvelope.java
42 | LUMHelper.java
43 | LUMKPSPublicV2Soap.java
44 | LUMKPSPublicV2Soap12.java
45 | LUMMarshalGuid.java
46 | LUMStandardDateTimeConverter.java
47 |
48 |
49 | ExKsoap2-1.0.3.1.jar
50 | ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar
51 |
52 |
53 |
--------------------------------------------------------------------------------
/CoffeeShop/out/production/CoffeeShop/MernisService/Metadata.info:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 5.11.6.0
5 | Basic
6 | easywsdl
7 | EAEKPSPublicSoap
8 |
9 |
10 | https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx
11 |
12 | MernisService
13 | false
14 | true
15 | false
16 | true
17 | false
18 | false
19 | false
20 | false
21 | Default
22 |
23 | true
24 | false
25 | Java
26 | None
27 | true
28 | false
29 | false
30 |
31 |
32 | docs/Html/EAEKPSPublicSoap.html
33 | docs/Html/EAEKPSPublicSoap12.html
34 | docs/Html/EAEKPSPublicSoap12_methods.html
35 | docs/Html/EAEKPSPublicSoap_methods.html
36 | docs/Html/MTOMTransfer.html
37 | docs/Html/Tips.html
38 | docs/Index.html
39 | docs/Styles/Blueprint_Styles/Style.css
40 | EAEDateTimeConverter.java
41 | EAEExtendedSoapSerializationEnvelope.java
42 | EAEHelper.java
43 | EAEKPSPublicSoap.java
44 | EAEKPSPublicSoap12.java
45 | EAEMarshalGuid.java
46 | EAEStandardDateTimeConverter.java
47 |
48 |
49 | ExKsoap2-1.0.3.1.jar
50 | ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar
51 |
52 |
53 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/Metadata.info:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 5.11.6.0
5 | Basic
6 | easywsdl
7 | CTPKPSPublicSoap
8 |
9 |
10 | https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx
11 |
12 | Core.MernisServiceReference
13 | false
14 | true
15 | false
16 | true
17 | false
18 | false
19 | false
20 | false
21 | Default
22 |
23 | true
24 | false
25 | Java
26 | None
27 | true
28 | false
29 | false
30 |
31 |
32 | CTPDateTimeConverter.java
33 | CTPExtendedSoapSerializationEnvelope.java
34 | CTPHelper.java
35 | CTPKPSPublicSoap.java
36 | CTPKPSPublicSoap12.java
37 | CTPMarshalGuid.java
38 | CTPStandardDateTimeConverter.java
39 | docs/Html/CTPKPSPublicSoap.html
40 | docs/Html/CTPKPSPublicSoap12.html
41 | docs/Html/CTPKPSPublicSoap12_methods.html
42 | docs/Html/CTPKPSPublicSoap_methods.html
43 | docs/Html/MTOMTransfer.html
44 | docs/Html/Tips.html
45 | docs/Index.html
46 | docs/Styles/Blueprint_Styles/Style.css
47 |
48 |
49 | ExKsoap2-1.0.3.1.jar
50 | ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar
51 |
52 |
53 |
--------------------------------------------------------------------------------
/GameStoreManagement/out/production/GameStoreManagement/Core/MernisServiceReference/Metadata.info:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 5.11.6.0
5 | Basic
6 | easywsdl
7 | CTPKPSPublicSoap
8 |
9 |
10 | https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx
11 |
12 | Core.MernisServiceReference
13 | false
14 | true
15 | false
16 | true
17 | false
18 | false
19 | false
20 | false
21 | Default
22 |
23 | true
24 | false
25 | Java
26 | None
27 | true
28 | false
29 | false
30 |
31 |
32 | CTPDateTimeConverter.java
33 | CTPExtendedSoapSerializationEnvelope.java
34 | CTPHelper.java
35 | CTPKPSPublicSoap.java
36 | CTPKPSPublicSoap12.java
37 | CTPMarshalGuid.java
38 | CTPStandardDateTimeConverter.java
39 | docs/Html/CTPKPSPublicSoap.html
40 | docs/Html/CTPKPSPublicSoap12.html
41 | docs/Html/CTPKPSPublicSoap12_methods.html
42 | docs/Html/CTPKPSPublicSoap_methods.html
43 | docs/Html/MTOMTransfer.html
44 | docs/Html/Tips.html
45 | docs/Index.html
46 | docs/Styles/Blueprint_Styles/Style.css
47 |
48 |
49 | ExKsoap2-1.0.3.1.jar
50 | ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar
51 |
52 |
53 |
--------------------------------------------------------------------------------
/BankApp/src/Main.java:
--------------------------------------------------------------------------------
1 | import Business.abstracts.BankService;
2 | import Business.abstracts.BaseAccountService;
3 | import Business.concretes.AccountManager;
4 | import Business.concretes.BankManager;
5 | import DataAccess.concretes.PostgreSqlDao;
6 | import Entities.concretes.IndividualAccount;
7 |
8 | public class Main {
9 |
10 | public static void main(String[] args) throws Exception {
11 |
12 | //Bir hesap nesnesi oluşturuldu.
13 | IndividualAccount account1 = new IndividualAccount();
14 | account1.setCustomerFirstName("Hasan Can");
15 | account1.setCustomerLastName("Özbek");
16 | account1.setCustomerTC("11111111111"); //Gerçek bir tc kimlik numarası girin
17 | account1.setCustomerBirthOfYear(2001);
18 | account1.setAccountId("11111111111");
19 | account1.setBalance(1000);
20 |
21 | IndividualAccount account2 = new IndividualAccount("01010101010","İbrahim","Özbek","11111111111",1968,5000);
22 | /*
23 | Servislerimizi test etmek için base interface'imizi kullandık. Hesap yönetiminin varsayılan database'inin
24 | postgre olduğunu belirttik. Bu kısım ileride değiştirilebilir (Örn : MySql,Oracle). Ancak bizim kodda tek
25 | değiştireceğimiz kısım burada konfigrasyon kısmında "new yeniVeritabanı" olacak. Böylece programımıza kolayca
26 | yeni veritabanı yönetim sistemi ekleyebileceğiz.
27 | */
28 | BaseAccountService baseAccountService = new AccountManager(new PostgreSqlDao());
29 |
30 | //Mernis doğrulaması ile yeni hesap açılması kontrol edildi.
31 | baseAccountService.addAccount(account1);
32 | baseAccountService.addAccount(account2);
33 |
34 | //Veritabanında var olan bir hesabın kullanıcısının ismini ve soyadını değiştirebilmesi kontorl edildi.
35 | baseAccountService.updateAccount(account1,"Ebubekir","Sıddık");
36 |
37 | //Veritabanında kayıtlı olan bir hesabın kalıcı olarak silinmesi kontrol edildi.
38 | baseAccountService.deleteAccount(account1);
39 |
40 | BankService bankService = new BankManager(new PostgreSqlDao());
41 |
42 | //Hesaba para yatırma fonksiyonu test edildi.
43 | bankService.deposit(account1,1000);
44 |
45 | //Hesaptan para çekme fonksiyonu test edildi.
46 | bankService.withdraw(account1,1000);
47 |
48 | //Bir hesaptan başka hesaba para gönderme fonksiyonu test edildi.
49 | bankService.eft(account1,200,"xxxxxxxxxxx");
50 |
51 | //Listeleme operasyonu test edildi.
52 | baseAccountService.getAllAccounts();
53 | }
54 | }
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/docs/Html/AUOKPSPublicSoap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AUOKPSPublicSoap class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | AUOKPSPublicSoap
15 |
16 | SOAP Version: 1.1
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | AUOKPSPublicSoap service = new AUOKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | AUOKPSPublicSoap service = new AUOKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | AUOKPSPublicSoap service = new AUOKPSPublicSoap();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | AUOKPSPublicSoap service = new AUOKPSPublicSoap();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/docs/Html/EAEKPSPublicSoap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | EAEKPSPublicSoap
15 |
16 | SOAP Version: 1.1
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | EAEKPSPublicSoap service = new EAEKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | EAEKPSPublicSoap service = new EAEKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | EAEKPSPublicSoap service = new EAEKPSPublicSoap();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | EAEKPSPublicSoap service = new EAEKPSPublicSoap();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/docs/Html/AUOKPSPublicSoap12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AUOKPSPublicSoap12 class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | AUOKPSPublicSoap12
15 |
16 | SOAP Version: 1.2
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | AUOKPSPublicSoap12 service = new AUOKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | AUOKPSPublicSoap12 service = new AUOKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | AUOKPSPublicSoap12 service = new AUOKPSPublicSoap12();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | AUOKPSPublicSoap12 service = new AUOKPSPublicSoap12();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/CoffeeShop/out/production/CoffeeShop/MernisService/docs/Html/EAEKPSPublicSoap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | EAEKPSPublicSoap
15 |
16 | SOAP Version: 1.1
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | EAEKPSPublicSoap service = new EAEKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | EAEKPSPublicSoap service = new EAEKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | EAEKPSPublicSoap service = new EAEKPSPublicSoap();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | EAEKPSPublicSoap service = new EAEKPSPublicSoap();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/docs/Html/EAEKPSPublicSoap12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap12 class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | EAEKPSPublicSoap12
15 |
16 | SOAP Version: 1.2
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | CTPKPSPublicSoap
15 |
16 | SOAP Version: 1.1
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | CTPKPSPublicSoap service = new CTPKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | CTPKPSPublicSoap service = new CTPKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | CTPKPSPublicSoap service = new CTPKPSPublicSoap();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | CTPKPSPublicSoap service = new CTPKPSPublicSoap();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/docs/Html/LUMKPSPublicV2Soap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | LUMKPSPublicV2Soap class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | LUMKPSPublicV2Soap
15 |
16 | SOAP Version: 1.1
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | LUMKPSPublicV2Soap service = new LUMKPSPublicV2Soap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx",30000);
27 | service.KisiVeCuzdanDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | LUMKPSPublicV2Soap service = new LUMKPSPublicV2Soap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx");
38 | service.KisiVeCuzdanDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | LUMKPSPublicV2Soap service = new LUMKPSPublicV2Soap();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.KisiVeCuzdanDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | LUMKPSPublicV2Soap service = new LUMKPSPublicV2Soap();
62 | service.enableLogging=true;
63 | service.KisiVeCuzdanDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/CoffeeShop/out/production/CoffeeShop/MernisService/docs/Html/EAEKPSPublicSoap12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAEKPSPublicSoap12 class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | EAEKPSPublicSoap12
15 |
16 | SOAP Version: 1.2
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | EAEKPSPublicSoap12 service = new EAEKPSPublicSoap12();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap12 class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | CTPKPSPublicSoap12
15 |
16 | SOAP Version: 1.2
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/GameStoreManagement/out/production/GameStoreManagement/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | CTPKPSPublicSoap
15 |
16 | SOAP Version: 1.1
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | CTPKPSPublicSoap service = new CTPKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | CTPKPSPublicSoap service = new CTPKPSPublicSoap(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | CTPKPSPublicSoap service = new CTPKPSPublicSoap();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | CTPKPSPublicSoap service = new CTPKPSPublicSoap();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/docs/Html/LUMKPSPublicV2Soap12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | LUMKPSPublicV2Soap12 class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | LUMKPSPublicV2Soap12
15 |
16 | SOAP Version: 1.2
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | LUMKPSPublicV2Soap12 service = new LUMKPSPublicV2Soap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx",30000);
27 | service.KisiVeCuzdanDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | LUMKPSPublicV2Soap12 service = new LUMKPSPublicV2Soap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx");
38 | service.KisiVeCuzdanDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | LUMKPSPublicV2Soap12 service = new LUMKPSPublicV2Soap12();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.KisiVeCuzdanDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | LUMKPSPublicV2Soap12 service = new LUMKPSPublicV2Soap12();
62 | service.enableLogging=true;
63 | service.KisiVeCuzdanDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/GameStoreManagement/out/production/GameStoreManagement/Core/MernisServiceReference/docs/Html/CTPKPSPublicSoap12.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CTPKPSPublicSoap12 class
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | CTPKPSPublicSoap12
15 |
16 | SOAP Version: 1.2
17 | Main class which you can use to connect to your web service
18 |
19 | Important settings
20 |
21 | Timeout - the timeout for network operations, in milliseconds. By default: 60 sec.
22 |
23 | Example:
24 |
25 |
26 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx",30000);
27 | service.TCKimlikNoDogrula();
28 |
29 |
30 |
31 |
32 | Url - the web service address. By default it is retrieved from the wsdl file
33 |
34 | Example:
35 |
36 |
37 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12(null,"https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx");
38 | service.TCKimlikNoDogrula();
39 |
40 |
41 |
42 |
43 | httpHeaders - allows you to add custom headers to the http requests.
44 |
45 | Example:
46 |
47 |
48 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12();
49 | service.httpHeaders.add( new HeaderProperty("Authorization","Basic QWxhZGRpbjpPcGVuU2VzYW1l"));
50 | service.TCKimlikNoDogrula();
51 |
52 |
53 |
54 |
55 |
56 | Enable logging - if you enable logging, all requests/responses will be write to the console (for debugging purposes)
57 |
58 | Example:
59 |
60 |
61 | CTPKPSPublicSoap12 service = new CTPKPSPublicSoap12();
62 | service.enableLogging=true;
63 | service.TCKimlikNoDogrula();
64 |
65 |
66 |
67 |
68 |
69 | Methods
70 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/BankApp/src/Business/concretes/BankManager.java:
--------------------------------------------------------------------------------
1 | package Business.concretes;
2 |
3 | import Business.abstracts.BankService;
4 | import DataAccess.abstracts.BaseDao;
5 | import DataAccess.concretes.DbHelper;
6 | import Entities.concretes.IndividualAccount;
7 |
8 | import java.sql.*;
9 |
10 | public class BankManager implements BankService {
11 |
12 |
13 | /*
14 | Banka hizmetlerini yapan class.
15 | deposit : belirtilen tutarda hesaba para yatırır.
16 | withdraw : belirtilen tutarda hesaptan para çeker.
17 | eft : kullanıcının hesabından bir başka kayıtlı kullanıcının hesabına para gönderir.
18 | draw : özel hesaplar arasındaki çekilişi düzenler.
19 | */
20 |
21 | //Constructor injection yapıldı.
22 | BaseDao baseDao;
23 | public BankManager(BaseDao baseDao){ this.baseDao = baseDao; }
24 |
25 | DbHelper dbHelper = new DbHelper();
26 | Connection connection = null;
27 | PreparedStatement statement = null;
28 | ResultSet resultSet;
29 |
30 | @Override
31 | public void deposit(IndividualAccount individualAccount, int amount) throws SQLException {
32 | baseDao.deposit(individualAccount,amount);
33 | }
34 |
35 | @Override
36 | public void withdraw(IndividualAccount individualAccount, int amount) throws SQLException {
37 | try {
38 | connection = dbHelper.getConnection();
39 | String sql = "SELECT balance FROM individual_accounts WHERE customer_tc = ?";
40 | statement = connection.prepareStatement(sql);
41 | statement.setString(1,individualAccount.getCustomerTC());
42 | resultSet = statement.executeQuery();
43 | while (resultSet.next()){
44 | int balance = resultSet.getInt("balance");
45 | if(amount <= balance){
46 | baseDao.withdraw(individualAccount,amount);
47 | }
48 | else{
49 | System.out.println("Hesaptan para çekilemedi.");
50 | }
51 | }
52 |
53 | } catch (SQLException exception) {
54 | dbHelper.showErrorMessage(exception);
55 | }
56 | finally {
57 | statement.close();
58 | connection.close();
59 | }
60 | }
61 |
62 | @Override
63 | public void eft(IndividualAccount individualAccount, int amount, String iban) throws SQLException {
64 | try {
65 | connection = dbHelper.getConnection();
66 | String sql = "SELECT customer_tc FROM individual_accounts WHERE account_id=?";
67 | statement = connection.prepareStatement(sql);
68 | statement.setString(1,iban);
69 | resultSet = statement.executeQuery();
70 | if (resultSet.next()) {
71 | baseDao.transfer(individualAccount, amount, iban);
72 | }
73 | else{
74 | System.out.println("Havale yapılamadı.");
75 | }
76 | }
77 | catch (SQLException exception){
78 | dbHelper.showErrorMessage(exception);
79 | }
80 | finally {
81 | statement.close();
82 | connection.close();
83 | }
84 | }
85 |
86 | }
87 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/AUOStandardDateTimeConverter.java:
--------------------------------------------------------------------------------
1 | package Core.MernisV1;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 | import java.text.SimpleDateFormat;
13 | import java.util.Date;
14 | import java.util.Locale;
15 |
16 |
17 |
18 | public class AUOStandardDateTimeConverter implements AUODateTimeConverter
19 | {
20 | public java.util.TimeZone TimeZone=java.util.TimeZone.getTimeZone("UTC");
21 |
22 | @Override
23 | public Date convertDateTime(String strDate)
24 | {
25 | java.lang.String[] formats = new java.lang.String[] {
26 | "yyyy-MM-dd'T'HH:mm:ss.SSS",
27 | "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
28 | "yyyy-MM-dd'T'HH:mm:ssZ",
29 | "yyyy-MM-dd'T'HH:mm:ss",
30 | "yyyy-MM-dd'T'HH:mm",
31 | "yyyy-MM-dd"
32 | };
33 | return parse(strDate,formats);
34 | }
35 |
36 | private Date parse(String strDate,java.lang.String[] formats){
37 | if(strDate==null)
38 | {
39 | return null;
40 | }
41 | for (java.lang.String frm : formats)
42 | {
43 | try
44 | {
45 | SimpleDateFormat format = new SimpleDateFormat(frm, Locale.US);
46 | format.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
47 | return format.parse(strDate);
48 | }
49 | catch (java.lang.Exception ex)
50 | {
51 | }
52 | }
53 | return null;
54 | }
55 |
56 | @Override
57 | public Date convertTime(String strDate)
58 | {
59 | java.lang.String[] formats = new java.lang.String[] {
60 | "HH:mm:ss.SSS",
61 | "HH:mm:ss",
62 | "HH:mm"
63 | };
64 | return parse(strDate,formats);
65 | }
66 |
67 | @Override
68 | public Date convertDate(String strDate)
69 | {
70 | return convertDateTime(strDate);
71 | }
72 |
73 | @Override
74 | public String convertDuration(String value) {
75 | return value;
76 | }
77 |
78 | @Override
79 | public String getStringFromDateTime(Date value)
80 | {
81 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
82 | format.setTimeZone(TimeZone);
83 | return format.format(value);
84 | }
85 |
86 | @Override
87 | public String getStringFromDate(Date value)
88 | {
89 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
90 | format.setTimeZone(TimeZone);
91 | return format.format(value);
92 | }
93 |
94 | @Override
95 | public String getStringFromTime(Date value)
96 | {
97 | SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss", Locale.US);
98 | format.setTimeZone(TimeZone);
99 | return format.format(value);
100 | }
101 |
102 | @Override
103 | public String getStringFromDuration(String value)
104 | {
105 | return value;
106 | }
107 | }
108 |
109 |
110 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/LUMStandardDateTimeConverter.java:
--------------------------------------------------------------------------------
1 | package Core.MernisV2;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 | import java.text.SimpleDateFormat;
13 | import java.util.Date;
14 | import java.util.Locale;
15 |
16 |
17 |
18 | public class LUMStandardDateTimeConverter implements LUMDateTimeConverter
19 | {
20 | public java.util.TimeZone TimeZone=java.util.TimeZone.getTimeZone("UTC");
21 |
22 | @Override
23 | public Date convertDateTime(String strDate)
24 | {
25 | java.lang.String[] formats = new java.lang.String[] {
26 | "yyyy-MM-dd'T'HH:mm:ss.SSS",
27 | "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
28 | "yyyy-MM-dd'T'HH:mm:ssZ",
29 | "yyyy-MM-dd'T'HH:mm:ss",
30 | "yyyy-MM-dd'T'HH:mm",
31 | "yyyy-MM-dd"
32 | };
33 | return parse(strDate,formats);
34 | }
35 |
36 | private Date parse(String strDate,java.lang.String[] formats){
37 | if(strDate==null)
38 | {
39 | return null;
40 | }
41 | for (java.lang.String frm : formats)
42 | {
43 | try
44 | {
45 | SimpleDateFormat format = new SimpleDateFormat(frm, Locale.US);
46 | format.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
47 | return format.parse(strDate);
48 | }
49 | catch (java.lang.Exception ex)
50 | {
51 | }
52 | }
53 | return null;
54 | }
55 |
56 | @Override
57 | public Date convertTime(String strDate)
58 | {
59 | java.lang.String[] formats = new java.lang.String[] {
60 | "HH:mm:ss.SSS",
61 | "HH:mm:ss",
62 | "HH:mm"
63 | };
64 | return parse(strDate,formats);
65 | }
66 |
67 | @Override
68 | public Date convertDate(String strDate)
69 | {
70 | return convertDateTime(strDate);
71 | }
72 |
73 | @Override
74 | public String convertDuration(String value) {
75 | return value;
76 | }
77 |
78 | @Override
79 | public String getStringFromDateTime(Date value)
80 | {
81 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
82 | format.setTimeZone(TimeZone);
83 | return format.format(value);
84 | }
85 |
86 | @Override
87 | public String getStringFromDate(Date value)
88 | {
89 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
90 | format.setTimeZone(TimeZone);
91 | return format.format(value);
92 | }
93 |
94 | @Override
95 | public String getStringFromTime(Date value)
96 | {
97 | SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss", Locale.US);
98 | format.setTimeZone(TimeZone);
99 | return format.format(value);
100 | }
101 |
102 | @Override
103 | public String getStringFromDuration(String value)
104 | {
105 | return value;
106 | }
107 | }
108 |
109 |
110 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/EAEStandardDateTimeConverter.java:
--------------------------------------------------------------------------------
1 | package MernisService;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 | import java.text.SimpleDateFormat;
13 | import java.util.Date;
14 | import java.util.Locale;
15 |
16 |
17 |
18 | public class EAEStandardDateTimeConverter implements EAEDateTimeConverter
19 | {
20 | public java.util.TimeZone TimeZone=java.util.TimeZone.getTimeZone("UTC");
21 |
22 | @Override
23 | public Date convertDateTime(String strDate)
24 | {
25 | java.lang.String[] formats = new java.lang.String[] {
26 | "yyyy-MM-dd'T'HH:mm:ss.SSS",
27 | "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
28 | "yyyy-MM-dd'T'HH:mm:ssZ",
29 | "yyyy-MM-dd'T'HH:mm:ss",
30 | "yyyy-MM-dd'T'HH:mm",
31 | "yyyy-MM-dd"
32 | };
33 | return parse(strDate,formats);
34 | }
35 |
36 | private Date parse(String strDate,java.lang.String[] formats){
37 | if(strDate==null)
38 | {
39 | return null;
40 | }
41 | for (java.lang.String frm : formats)
42 | {
43 | try
44 | {
45 | SimpleDateFormat format = new SimpleDateFormat(frm, Locale.US);
46 | format.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
47 | return format.parse(strDate);
48 | }
49 | catch (java.lang.Exception ex)
50 | {
51 | }
52 | }
53 | return null;
54 | }
55 |
56 | @Override
57 | public Date convertTime(String strDate)
58 | {
59 | java.lang.String[] formats = new java.lang.String[] {
60 | "HH:mm:ss.SSS",
61 | "HH:mm:ss",
62 | "HH:mm"
63 | };
64 | return parse(strDate,formats);
65 | }
66 |
67 | @Override
68 | public Date convertDate(String strDate)
69 | {
70 | return convertDateTime(strDate);
71 | }
72 |
73 | @Override
74 | public String convertDuration(String value) {
75 | return value;
76 | }
77 |
78 | @Override
79 | public String getStringFromDateTime(Date value)
80 | {
81 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
82 | format.setTimeZone(TimeZone);
83 | return format.format(value);
84 | }
85 |
86 | @Override
87 | public String getStringFromDate(Date value)
88 | {
89 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
90 | format.setTimeZone(TimeZone);
91 | return format.format(value);
92 | }
93 |
94 | @Override
95 | public String getStringFromTime(Date value)
96 | {
97 | SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss", Locale.US);
98 | format.setTimeZone(TimeZone);
99 | return format.format(value);
100 | }
101 |
102 | @Override
103 | public String getStringFromDuration(String value)
104 | {
105 | return value;
106 | }
107 | }
108 |
109 |
110 |
--------------------------------------------------------------------------------
/GameStoreManagement/src/Core/MernisServiceReference/CTPStandardDateTimeConverter.java:
--------------------------------------------------------------------------------
1 | package Core.MernisServiceReference;
2 |
3 | //----------------------------------------------------
4 | //
5 | // Generated by www.easywsdl.com
6 | // Version: 5.11.6.0
7 | //
8 | // Created by Quasar Development
9 | //
10 | //----------------------------------------------------
11 |
12 | import java.text.SimpleDateFormat;
13 | import java.util.Date;
14 | import java.util.Locale;
15 |
16 |
17 |
18 | public class CTPStandardDateTimeConverter implements CTPDateTimeConverter
19 | {
20 | public java.util.TimeZone TimeZone=java.util.TimeZone.getTimeZone("UTC");
21 |
22 | @Override
23 | public Date convertDateTime(String strDate)
24 | {
25 | java.lang.String[] formats = new java.lang.String[] {
26 | "yyyy-MM-dd'T'HH:mm:ss.SSS",
27 | "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
28 | "yyyy-MM-dd'T'HH:mm:ssZ",
29 | "yyyy-MM-dd'T'HH:mm:ss",
30 | "yyyy-MM-dd'T'HH:mm",
31 | "yyyy-MM-dd"
32 | };
33 | return parse(strDate,formats);
34 | }
35 |
36 | private Date parse(String strDate,java.lang.String[] formats){
37 | if(strDate==null)
38 | {
39 | return null;
40 | }
41 | for (java.lang.String frm : formats)
42 | {
43 | try
44 | {
45 | SimpleDateFormat format = new SimpleDateFormat(frm, Locale.US);
46 | format.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
47 | return format.parse(strDate);
48 | }
49 | catch (java.lang.Exception ex)
50 | {
51 | }
52 | }
53 | return null;
54 | }
55 |
56 | @Override
57 | public Date convertTime(String strDate)
58 | {
59 | java.lang.String[] formats = new java.lang.String[] {
60 | "HH:mm:ss.SSS",
61 | "HH:mm:ss",
62 | "HH:mm"
63 | };
64 | return parse(strDate,formats);
65 | }
66 |
67 | @Override
68 | public Date convertDate(String strDate)
69 | {
70 | return convertDateTime(strDate);
71 | }
72 |
73 | @Override
74 | public String convertDuration(String value) {
75 | return value;
76 | }
77 |
78 | @Override
79 | public String getStringFromDateTime(Date value)
80 | {
81 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
82 | format.setTimeZone(TimeZone);
83 | return format.format(value);
84 | }
85 |
86 | @Override
87 | public String getStringFromDate(Date value)
88 | {
89 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
90 | format.setTimeZone(TimeZone);
91 | return format.format(value);
92 | }
93 |
94 | @Override
95 | public String getStringFromTime(Date value)
96 | {
97 | SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss", Locale.US);
98 | format.setTimeZone(TimeZone);
99 | return format.format(value);
100 | }
101 |
102 | @Override
103 | public String getStringFromDuration(String value)
104 | {
105 | return value;
106 | }
107 | }
108 |
109 |
110 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV1/docs/Index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | EasyWSDL - Getting started
8 |
9 |
10 | Read me first!
11 | Thanks for using EasyWSDL generator. You have generated classes using Free account which has two main limitations, which are:
12 |
13 | Classes generated by Free account cannot be used in commercial projects
14 | We have generated a half of your methods only (in this case your webservice contains 1 operations, and we have generated 0 only. The other methods throw UnsupportedOperationException
15 |
16 | Basically you should use these classes for testing purposes. You can check if our generator works with your web service, without spending any money. Then if you are satisfied with the results, you can buy a Premium account and generated your classes again.
17 | Getting started
18 |
19 |
20 |
21 | In your android/java project create a new package folder (name of this folder should match the Package name of generated classes)
22 |
23 | Go to src subfolder of generated package and copy all files to your project (to newly created folder).
24 |
25 | In libs subfolder you will find all jars needed for generated classes. Copy all jars to your project and add references to them (every IDE has different way of adding refenreces to external jars)
26 |
27 |
28 | Add INTERNET permission to your AndroidManifest.xml file
29 |
30 |
31 | <uses-permission android:name="android.permission.INTERNET"/>
32 |
33 |
34 |
35 |
36 | Use the following code to connect to your webservice:
37 |
38 | AUOKPSPublicSoap service = new AUOKPSPublicSoap();
39 | service.MethodToInvoke(...);
40 |
41 |
42 |
43 |
44 |
45 |
Warning: I got compilation error: com.android.dex.DexException: Multiple dex files define Lorg/kobjects/...
46 |
47 | This problem occures when you have many copies of ksoap2.jar added as dependencies in your project. For Premium account we add ExKsoap2.jar library which already has ksoap2.jar. Sometimes this causes conflicts.
48 | In this case should add ExKsoap2.jar only to your dependencies (without ksoap2.jar). If you added both ExKsoap2.jar and Ksoap.jar libs, then you can have this issue. To solve it, please remove Ksoap2.jar from dependencies .
49 |
50 |
51 | Your main service classes
52 |
56 |
57 | Other topics
58 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/CoffeeShop/src/MernisService/docs/Index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | EasyWSDL - Getting started
8 |
9 |
10 | Read me first!
11 | Thanks for using EasyWSDL generator. You have generated classes using Free account which has two main limitations, which are:
12 |
13 | Classes generated by Free account cannot be used in commercial projects
14 | We have generated a half of your methods only (in this case your webservice contains 1 operations, and we have generated 0 only. The other methods throw UnsupportedOperationException
15 |
16 | Basically you should use these classes for testing purposes. You can check if our generator works with your web service, without spending any money. Then if you are satisfied with the results, you can buy a Premium account and generated your classes again.
17 | Getting started
18 |
19 |
20 |
21 | In your android/java project create a new package folder (name of this folder should match the Package name of generated classes)
22 |
23 | Go to src subfolder of generated package and copy all files to your project (to newly created folder).
24 |
25 | In libs subfolder you will find all jars needed for generated classes. Copy all jars to your project and add references to them (every IDE has different way of adding refenreces to external jars)
26 |
27 |
28 | Add INTERNET permission to your AndroidManifest.xml file
29 |
30 |
31 | <uses-permission android:name="android.permission.INTERNET"/>
32 |
33 |
34 |
35 |
36 | Use the following code to connect to your webservice:
37 |
38 | EAEKPSPublicSoap service = new EAEKPSPublicSoap();
39 | service.MethodToInvoke(...);
40 |
41 |
42 |
43 |
44 |
45 |
Warning: I got compilation error: com.android.dex.DexException: Multiple dex files define Lorg/kobjects/...
46 |
47 | This problem occures when you have many copies of ksoap2.jar added as dependencies in your project. For Premium account we add ExKsoap2.jar library which already has ksoap2.jar. Sometimes this causes conflicts.
48 | In this case should add ExKsoap2.jar only to your dependencies (without ksoap2.jar). If you added both ExKsoap2.jar and Ksoap.jar libs, then you can have this issue. To solve it, please remove Ksoap2.jar from dependencies .
49 |
50 |
51 | Your main service classes
52 |
56 |
57 | Other topics
58 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/BankApp/src/Core/MernisV2/docs/Index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | EasyWSDL - Getting started
8 |
9 |
10 | Read me first!
11 | Thanks for using EasyWSDL generator. You have generated classes using Free account which has two main limitations, which are:
12 |
13 | Classes generated by Free account cannot be used in commercial projects
14 | We have generated a half of your methods only (in this case your webservice contains 1 operations, and we have generated 0 only. The other methods throw UnsupportedOperationException
15 |
16 | Basically you should use these classes for testing purposes. You can check if our generator works with your web service, without spending any money. Then if you are satisfied with the results, you can buy a Premium account and generated your classes again.
17 | Getting started
18 |
19 |
20 |
21 | In your android/java project create a new package folder (name of this folder should match the Package name of generated classes)
22 |
23 | Go to src subfolder of generated package and copy all files to your project (to newly created folder).
24 |
25 | In libs subfolder you will find all jars needed for generated classes. Copy all jars to your project and add references to them (every IDE has different way of adding refenreces to external jars)
26 |
27 |
28 | Add INTERNET permission to your AndroidManifest.xml file
29 |
30 |
31 | <uses-permission android:name="android.permission.INTERNET"/>
32 |
33 |
34 |
35 |
36 | Use the following code to connect to your webservice:
37 |
38 | LUMKPSPublicV2Soap service = new LUMKPSPublicV2Soap();
39 | service.MethodToInvoke(...);
40 |
41 |
42 |
43 |
44 |
45 |
Warning: I got compilation error: com.android.dex.DexException: Multiple dex files define Lorg/kobjects/...
46 |
47 | This problem occures when you have many copies of ksoap2.jar added as dependencies in your project. For Premium account we add ExKsoap2.jar library which already has ksoap2.jar. Sometimes this causes conflicts.
48 | In this case should add ExKsoap2.jar only to your dependencies (without ksoap2.jar). If you added both ExKsoap2.jar and Ksoap.jar libs, then you can have this issue. To solve it, please remove Ksoap2.jar from dependencies .
49 |
50 |
51 | Your main service classes
52 |
56 |
57 | Other topics
58 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------