├── Day5Homework
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── day5Homework
│ │ ├── Main.class
│ │ ├── business
│ │ ├── abstracts
│ │ │ └── UserServices.class
│ │ └── concretes
│ │ │ └── UserManager.class
│ │ ├── core
│ │ ├── abstracts
│ │ │ ├── GoogleServices.class
│ │ │ └── MailServices.class
│ │ └── concretes
│ │ │ ├── JGoogleManagerAdapter.class
│ │ │ └── MailManagerAdapter.class
│ │ ├── dataAccess
│ │ ├── abstracts
│ │ │ └── UserDao.class
│ │ └── concretes
│ │ │ └── HibernateUserDao.class
│ │ ├── entities
│ │ ├── abstracts
│ │ │ └── Entity.class
│ │ └── concretes
│ │ │ └── User.class
│ │ └── googleApi
│ │ └── GoogleApiServices.class
└── src
│ └── day5Homework
│ ├── Main.java
│ ├── business
│ ├── abstracts
│ │ └── UserServices.java
│ └── concretes
│ │ └── UserManager.java
│ ├── core
│ ├── abstracts
│ │ ├── GoogleServices.java
│ │ └── MailServices.java
│ └── concretes
│ │ ├── JGoogleManagerAdapter.java
│ │ └── MailManagerAdapter.java
│ ├── dataAccess
│ ├── abstracts
│ │ └── UserDao.java
│ └── concretes
│ │ └── HibernateUserDao.java
│ ├── entities
│ ├── abstracts
│ │ └── Entity.java
│ └── concretes
│ │ └── User.java
│ └── googleApi
│ └── GoogleApiServices.java
├── HRMS
└── HRMS
│ ├── .gitignore
│ ├── .mvn
│ └── wrapper
│ │ ├── MavenWrapperDownloader.java
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
│ ├── mvnw
│ ├── mvnw.cmd
│ ├── pom.xml
│ └── src
│ ├── main
│ ├── java
│ │ └── Kodlamaio
│ │ │ └── HRMS
│ │ │ ├── HrmsApplication.java
│ │ │ ├── api
│ │ │ └── controllers
│ │ │ │ └── UserControllers.java
│ │ │ ├── business
│ │ │ ├── abstracts
│ │ │ │ └── UsersServices.java
│ │ │ └── concretes
│ │ │ │ └── UsersManager.java
│ │ │ ├── dataAccess
│ │ │ └── abstracts
│ │ │ │ └── UsersDao.java
│ │ │ └── entities
│ │ │ ├── abstracts
│ │ │ └── Entity.java
│ │ │ └── concretes
│ │ │ ├── Candidates.java
│ │ │ ├── Employee.java
│ │ │ ├── Employer.java
│ │ │ └── Users.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── Kodlamaio
│ └── HRMS
│ └── HrmsApplicationTests.java
├── JobTitleListHRMS
├── .gitignore
├── .mvn
│ └── wrapper
│ │ ├── MavenWrapperDownloader.java
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── kodlamaio
│ │ │ └── demo
│ │ │ ├── DemoApplication.java
│ │ │ ├── api
│ │ │ └── controllers
│ │ │ │ └── JobTitleControllers.java
│ │ │ ├── business
│ │ │ ├── abstracts
│ │ │ │ └── JobTitleService.java
│ │ │ └── concretes
│ │ │ │ └── JobTitleManager.java
│ │ │ ├── dataAccess
│ │ │ └── abstracts
│ │ │ │ └── JobTitleDao.java
│ │ │ └── entities
│ │ │ └── concretes
│ │ │ └── JobTitle.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── kodlamaio
│ └── demo
│ └── DemoApplicationTests.java
├── README.md
├── day4Homework2
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── bin
│ ├── Abstract
│ │ ├── BaseCustomerManager.class
│ │ ├── CustomerCheckSevice.class
│ │ ├── CustomerService.class
│ │ └── Entity.class
│ ├── Adapters
│ │ └── MernisServiceAdapter.class
│ ├── Concrete
│ │ ├── CustomerCheckManager.class
│ │ ├── NeroCustomerManager.class
│ │ └── StarbucksCustomerManager.class
│ ├── Entities
│ │ └── Customer.class
│ ├── day4Homework2
│ │ └── Main.class
│ └── tr
│ │ └── gov
│ │ └── nvi
│ │ └── tckimlik
│ │ └── WS
│ │ ├── KPSPublic.class
│ │ ├── KPSPublicLocator.class
│ │ ├── KPSPublicSoap.class
│ │ ├── KPSPublicSoapProxy.class
│ │ └── KPSPublicSoapStub.class
└── src
│ ├── Abstract
│ ├── BaseCustomerManager.java
│ ├── CustomerCheckSevice.java
│ ├── CustomerService.java
│ └── Entity.java
│ ├── Adapters
│ └── MernisServiceAdapter.java
│ ├── Concrete
│ ├── CustomerCheckManager.java
│ ├── NeroCustomerManager.java
│ └── StarbucksCustomerManager.java
│ ├── Entities
│ └── Customer.java
│ ├── day4Homework2
│ └── Main.java
│ └── tr
│ └── gov
│ └── nvi
│ └── tckimlik
│ └── WS
│ ├── KPSPublic.java
│ ├── KPSPublicLocator.java
│ ├── KPSPublicSoap.java
│ ├── KPSPublicSoapProxy.java
│ └── KPSPublicSoapStub.java
├── day4Homework3
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ ├── Abstract
│ │ ├── CampaingService.class
│ │ ├── Entity.class
│ │ ├── GameService.class
│ │ ├── NewGamerService.class
│ │ └── SaleService.class
│ ├── Adapter
│ │ └── GamerCheck.class
│ ├── Concrete
│ │ ├── CampaingManager.class
│ │ ├── GameManager.class
│ │ ├── NewGamerManager.class
│ │ └── SaleManager.class
│ ├── Entities
│ │ ├── Campaing.class
│ │ ├── Game.class
│ │ ├── NewGamer.class
│ │ └── Sale.class
│ └── day4Homework3
│ │ └── Main.class
└── src
│ ├── Abstract
│ ├── CampaingService.java
│ ├── Entity.java
│ ├── GameService.java
│ ├── NewGamerService.java
│ └── SaleService.java
│ ├── Adapter
│ └── GamerCheck.java
│ ├── Concrete
│ ├── CampaingManager.java
│ ├── GameManager.java
│ ├── NewGamerManager.java
│ └── SaleManager.java
│ ├── Entities
│ ├── Campaing.java
│ ├── Game.java
│ ├── NewGamer.java
│ └── Sale.java
│ └── day4Homework3
│ └── Main.java
├── dayThreeHomeWork
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── dayThreeHomeWork
│ │ ├── Instructor.class
│ │ ├── InstructorManager.class
│ │ ├── Main.class
│ │ ├── Student.class
│ │ ├── StudentManager.class
│ │ ├── User.class
│ │ └── UserManager.class
└── src
│ └── dayThreeHomeWork
│ ├── Instructor.java
│ ├── InstructorManager.java
│ ├── Main.java
│ ├── Student.java
│ ├── StudentManager.java
│ ├── User.java
│ └── UserManager.java
├── dayTwoHomeWorkOne
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── dayTwoHomeWorkOne
│ │ ├── Course.class
│ │ ├── CourseManager.class
│ │ └── Main.class
└── src
│ └── dayTwoHomeWorkOne
│ ├── Course.java
│ ├── CourseManager.java
│ └── Main.java
├── inheritance
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── inheritance
│ │ ├── CorporateCustomer.class
│ │ ├── Customer.class
│ │ ├── CustomerManager.class
│ │ ├── IndividualCustomer.class
│ │ ├── Main.class
│ │ └── SendikaCustomer.class
└── src
│ └── inheritance
│ ├── CorporateCustomer.java
│ ├── Customer.java
│ ├── CustomerManager.java
│ ├── IndividualCustomer.java
│ ├── Main.java
│ └── SendikaCustomer.java
├── inhetritance2
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── inhetritance2
│ │ ├── CustomerManager.class
│ │ ├── DatabaseLogger.class
│ │ ├── EmailLogger.class
│ │ ├── FileLogger.class
│ │ ├── LogManager.class
│ │ ├── Logger.class
│ │ └── Main.class
└── src
│ └── inhetritance2
│ ├── CustomerManager.java
│ ├── DatabaseLogger.java
│ ├── EmailLogger.java
│ ├── FileLogger.java
│ ├── LogManager.java
│ ├── Logger.java
│ └── Main.java
├── interfaces
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── interfaces
│ │ ├── Customer.class
│ │ ├── CustomerManager.class
│ │ ├── DatabaseLogger.class
│ │ ├── EmailLogger.class
│ │ ├── FileLogger.class
│ │ ├── Logger.class
│ │ ├── Main.class
│ │ ├── SmsLogger.class
│ │ └── Utils.class
└── src
│ └── interfaces
│ ├── Customer.java
│ ├── CustomerManager.java
│ ├── DatabaseLogger.java
│ ├── EmailLogger.java
│ ├── FileLogger.java
│ ├── Logger.java
│ ├── Main.java
│ ├── SmsLogger.java
│ └── Utils.java
├── intro
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── intro
│ │ └── Main.class
└── src
│ └── intro
│ └── Main.java
├── nLayeredDemo
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── nLayerdDemo
│ │ ├── Main.class
│ │ ├── business
│ │ ├── abstracts
│ │ │ └── ProductService.class
│ │ └── concretes
│ │ │ └── ProductManager.class
│ │ ├── core
│ │ ├── JLoggerManagerAdapter.class
│ │ └── LoggerService.class
│ │ ├── dataAccess
│ │ ├── abstracts
│ │ │ └── ProductDao.class
│ │ └── concretes
│ │ │ ├── AbcProductDao.class
│ │ │ └── HibernateProductDao.class
│ │ ├── entities
│ │ ├── abstracts
│ │ │ └── Entity.class
│ │ └── concretes
│ │ │ └── Product.class
│ │ └── jLogger
│ │ └── JLoggerManager.class
└── src
│ └── nLayerdDemo
│ ├── Main.java
│ ├── business
│ ├── abstracts
│ │ └── ProductService.java
│ └── concretes
│ │ └── ProductManager.java
│ ├── core
│ ├── JLoggerManagerAdapter.java
│ └── LoggerService.java
│ ├── dataAccess
│ ├── abstracts
│ │ └── ProductDao.java
│ └── concretes
│ │ ├── AbcProductDao.java
│ │ └── HibernateProductDao.java
│ ├── entities
│ ├── abstracts
│ │ └── Entity.java
│ └── concretes
│ │ └── Product.java
│ └── jLogger
│ └── JLoggerManager.java
├── nortwind
├── .gitignore
├── .mvn
│ └── wrapper
│ │ ├── MavenWrapperDownloader.java
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── kodlamaio
│ │ │ └── nortwind
│ │ │ ├── NortwindApplication.java
│ │ │ ├── api
│ │ │ └── controllers
│ │ │ │ ├── ProductsController.java
│ │ │ │ └── UsersController.java
│ │ │ ├── business
│ │ │ ├── absracts
│ │ │ │ ├── ProductService.java
│ │ │ │ └── UserService.java
│ │ │ └── concretes
│ │ │ │ ├── ProductManager.java
│ │ │ │ └── UserManager.java
│ │ │ ├── core
│ │ │ ├── dataAccess
│ │ │ │ └── UserDao.java
│ │ │ ├── entities
│ │ │ │ └── User.java
│ │ │ └── utilities
│ │ │ │ └── result
│ │ │ │ ├── DataResult.java
│ │ │ │ ├── ErrorDataResult.java
│ │ │ │ ├── ErrorResult.java
│ │ │ │ ├── Result.java
│ │ │ │ ├── SuccessDataResult.java
│ │ │ │ └── SuccessResult.java
│ │ │ ├── dataAccess
│ │ │ └── abstracts
│ │ │ │ └── ProductDao.java
│ │ │ └── entities
│ │ │ ├── concretes
│ │ │ ├── Category.java
│ │ │ └── Product.java
│ │ │ └── dtos
│ │ │ └── ProductWithCategoryDto.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── kodlamaio
│ └── nortwind
│ └── NortwindApplicationTests.java
├── oopIntro
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── bin
│ └── oopIntro
│ │ ├── Category.class
│ │ ├── Main.class
│ │ ├── Product.class
│ │ └── ProductManager.class
└── src
│ └── oopIntro
│ ├── Category.java
│ ├── Main.java
│ ├── Product.java
│ └── ProductManager.java
└── paramtreMethods
├── .classpath
├── .project
├── .settings
└── org.eclipse.jdt.core.prefs
├── bin
└── paramtreMethods
│ └── Main.class
└── src
└── paramtreMethods
└── Main.java
/Day5Homework/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Day5Homework/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Day5Homework
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Day5Homework/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/Main.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/business/abstracts/UserServices.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/business/abstracts/UserServices.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/business/concretes/UserManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/business/concretes/UserManager.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/core/abstracts/GoogleServices.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/core/abstracts/GoogleServices.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/core/abstracts/MailServices.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/core/abstracts/MailServices.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/core/concretes/JGoogleManagerAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/core/concretes/JGoogleManagerAdapter.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/core/concretes/MailManagerAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/core/concretes/MailManagerAdapter.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/dataAccess/abstracts/UserDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/dataAccess/abstracts/UserDao.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/dataAccess/concretes/HibernateUserDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/dataAccess/concretes/HibernateUserDao.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/entities/abstracts/Entity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/entities/abstracts/Entity.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/entities/concretes/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/entities/concretes/User.class
--------------------------------------------------------------------------------
/Day5Homework/bin/day5Homework/googleApi/GoogleApiServices.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/bin/day5Homework/googleApi/GoogleApiServices.class
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/Main.java:
--------------------------------------------------------------------------------
1 | package day5Homework;
2 |
3 |
4 |
5 | import day5Homework.business.abstracts.UserServices;
6 | import day5Homework.business.concretes.UserManager;
7 | import day5Homework.core.concretes.JGoogleManagerAdapter;
8 | import day5Homework.core.concretes.MailManagerAdapter;
9 | import day5Homework.dataAccess.concretes.HibernateUserDao;
10 | import day5Homework.entities.concretes.User;
11 |
12 | public class Main {
13 |
14 | public static void main(String[] args) {
15 |
16 | User admin=new User(10, "Meryem", "Tankut", "mt@gmail.com", "123456");
17 |
18 | UserServices sevices=new UserManager(new HibernateUserDao(),new JGoogleManagerAdapter(),new MailManagerAdapter());
19 | sevices.add(admin);
20 |
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/business/abstracts/UserServices.java:
--------------------------------------------------------------------------------
1 | package day5Homework.business.abstracts;
2 |
3 | import day5Homework.entities.concretes.User;
4 |
5 | public interface UserServices {
6 |
7 | void add(User user);
8 | void delete(User user);
9 | boolean invalidEmail(User user);
10 | boolean validUser(User user);
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/business/concretes/UserManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/src/day5Homework/business/concretes/UserManager.java
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/core/abstracts/GoogleServices.java:
--------------------------------------------------------------------------------
1 | package day5Homework.core.abstracts;
2 |
3 | public interface GoogleServices {
4 |
5 | void signGoogle(String email, String Password);
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/core/abstracts/MailServices.java:
--------------------------------------------------------------------------------
1 | package day5Homework.core.abstracts;
2 |
3 | import day5Homework.entities.concretes.User;
4 |
5 | public interface MailServices {
6 |
7 | void sendMail(User user);
8 | void verifyMail(User user);
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/core/concretes/JGoogleManagerAdapter.java:
--------------------------------------------------------------------------------
1 | package day5Homework.core.concretes;
2 |
3 | import day5Homework.core.abstracts.GoogleServices;
4 | import day5Homework.googleApi.GoogleApiServices;
5 |
6 | public class JGoogleManagerAdapter implements GoogleServices {
7 |
8 | @Override
9 | public void signGoogle(String email, String Password) {
10 |
11 | GoogleApiServices apiServices=new GoogleApiServices();
12 | apiServices.open(email, Password);
13 |
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/core/concretes/MailManagerAdapter.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/src/day5Homework/core/concretes/MailManagerAdapter.java
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/dataAccess/abstracts/UserDao.java:
--------------------------------------------------------------------------------
1 | package day5Homework.dataAccess.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import day5Homework.entities.concretes.User;
6 |
7 | public interface UserDao {
8 |
9 | void add(User user);
10 | void update(User user);
11 | void delete(User user);
12 | User get(int id);
13 | List gelAll();
14 | }
15 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/dataAccess/concretes/HibernateUserDao.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/src/day5Homework/dataAccess/concretes/HibernateUserDao.java
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/entities/abstracts/Entity.java:
--------------------------------------------------------------------------------
1 | package day5Homework.entities.abstracts;
2 |
3 | public interface Entity {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/entities/concretes/User.java:
--------------------------------------------------------------------------------
1 | package day5Homework.entities.concretes;
2 |
3 | import day5Homework.entities.abstracts.Entity;
4 |
5 | public class User implements Entity{
6 | private int userId;
7 | private String firstName;
8 | private String lastName;
9 | private String email;
10 | private String password;
11 | public User() {
12 |
13 | }
14 | public User(int userId, String firstName, String lastName, String email, String password) {
15 | this.userId = userId;
16 | this.firstName = firstName;
17 | this.lastName = lastName;
18 | this.email = email;
19 | this.password = password;
20 | }
21 | public int getUserId() {
22 | return userId;
23 | }
24 | public void setUserId(int userId) {
25 | this.userId = userId;
26 | }
27 | public String getFirstName() {
28 | return firstName;
29 | }
30 | public void setFirstName(String firstName) {
31 | this.firstName = firstName;
32 | }
33 | public String getLastName() {
34 | return lastName;
35 | }
36 | public void setLastName(String lastName) {
37 | this.lastName = lastName;
38 | }
39 | public String getEmail() {
40 | return email;
41 | }
42 | public void setEmail(String email) {
43 | this.email = email;
44 | }
45 | public String getPassword() {
46 | return password;
47 | }
48 | public void setPassword(String password) {
49 | this.password = password;
50 | }
51 |
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/Day5Homework/src/day5Homework/googleApi/GoogleApiServices.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/Day5Homework/src/day5Homework/googleApi/GoogleApiServices.java
--------------------------------------------------------------------------------
/HRMS/HRMS/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**/target/
5 | !**/src/test/**/target/
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 | !**/src/main/**/build/
30 | !**/src/test/**/build/
31 |
32 | ### VS Code ###
33 | .vscode/
34 |
--------------------------------------------------------------------------------
/HRMS/HRMS/.mvn/wrapper/MavenWrapperDownloader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-present the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | import java.net.*;
17 | import java.io.*;
18 | import java.nio.channels.*;
19 | import java.util.Properties;
20 |
21 | public class MavenWrapperDownloader {
22 |
23 | private static final String WRAPPER_VERSION = "0.5.6";
24 | /**
25 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
26 | */
27 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
28 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
29 |
30 | /**
31 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
32 | * use instead of the default one.
33 | */
34 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
35 | ".mvn/wrapper/maven-wrapper.properties";
36 |
37 | /**
38 | * Path where the maven-wrapper.jar will be saved to.
39 | */
40 | private static final String MAVEN_WRAPPER_JAR_PATH =
41 | ".mvn/wrapper/maven-wrapper.jar";
42 |
43 | /**
44 | * Name of the property which should be used to override the default download url for the wrapper.
45 | */
46 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
47 |
48 | public static void main(String args[]) {
49 | System.out.println("- Downloader started");
50 | File baseDirectory = new File(args[0]);
51 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
52 |
53 | // If the maven-wrapper.properties exists, read it and check if it contains a custom
54 | // wrapperUrl parameter.
55 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
56 | String url = DEFAULT_DOWNLOAD_URL;
57 | if(mavenWrapperPropertyFile.exists()) {
58 | FileInputStream mavenWrapperPropertyFileInputStream = null;
59 | try {
60 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
61 | Properties mavenWrapperProperties = new Properties();
62 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
63 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
64 | } catch (IOException e) {
65 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
66 | } finally {
67 | try {
68 | if(mavenWrapperPropertyFileInputStream != null) {
69 | mavenWrapperPropertyFileInputStream.close();
70 | }
71 | } catch (IOException e) {
72 | // Ignore ...
73 | }
74 | }
75 | }
76 | System.out.println("- Downloading from: " + url);
77 |
78 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
79 | if(!outputFile.getParentFile().exists()) {
80 | if(!outputFile.getParentFile().mkdirs()) {
81 | System.out.println(
82 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
83 | }
84 | }
85 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
86 | try {
87 | downloadFileFromURL(url, outputFile);
88 | System.out.println("Done");
89 | System.exit(0);
90 | } catch (Throwable e) {
91 | System.out.println("- Error downloading");
92 | e.printStackTrace();
93 | System.exit(1);
94 | }
95 | }
96 |
97 | private static void downloadFileFromURL(String urlString, File destination) throws Exception {
98 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
99 | String username = System.getenv("MVNW_USERNAME");
100 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
101 | Authenticator.setDefault(new Authenticator() {
102 | @Override
103 | protected PasswordAuthentication getPasswordAuthentication() {
104 | return new PasswordAuthentication(username, password);
105 | }
106 | });
107 | }
108 | URL website = new URL(urlString);
109 | ReadableByteChannel rbc;
110 | rbc = Channels.newChannel(website.openStream());
111 | FileOutputStream fos = new FileOutputStream(destination);
112 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
113 | fos.close();
114 | rbc.close();
115 | }
116 |
117 | }
118 |
--------------------------------------------------------------------------------
/HRMS/HRMS/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/HRMS/HRMS/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/HRMS/HRMS/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/HRMS/HRMS/mvnw:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ----------------------------------------------------------------------------
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # https://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | # ----------------------------------------------------------------------------
20 |
21 | # ----------------------------------------------------------------------------
22 | # Maven Start Up Batch script
23 | #
24 | # Required ENV vars:
25 | # ------------------
26 | # JAVA_HOME - location of a JDK home dir
27 | #
28 | # Optional ENV vars
29 | # -----------------
30 | # M2_HOME - location of maven2's installed home dir
31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven
32 | # e.g. to debug Maven itself, use
33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35 | # ----------------------------------------------------------------------------
36 |
37 | if [ -z "$MAVEN_SKIP_RC" ] ; then
38 |
39 | if [ -f /etc/mavenrc ] ; then
40 | . /etc/mavenrc
41 | fi
42 |
43 | if [ -f "$HOME/.mavenrc" ] ; then
44 | . "$HOME/.mavenrc"
45 | fi
46 |
47 | fi
48 |
49 | # OS specific support. $var _must_ be set to either true or false.
50 | cygwin=false;
51 | darwin=false;
52 | mingw=false
53 | case "`uname`" in
54 | CYGWIN*) cygwin=true ;;
55 | MINGW*) mingw=true;;
56 | Darwin*) darwin=true
57 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59 | if [ -z "$JAVA_HOME" ]; then
60 | if [ -x "/usr/libexec/java_home" ]; then
61 | export JAVA_HOME="`/usr/libexec/java_home`"
62 | else
63 | export JAVA_HOME="/Library/Java/Home"
64 | fi
65 | fi
66 | ;;
67 | esac
68 |
69 | if [ -z "$JAVA_HOME" ] ; then
70 | if [ -r /etc/gentoo-release ] ; then
71 | JAVA_HOME=`java-config --jre-home`
72 | fi
73 | fi
74 |
75 | if [ -z "$M2_HOME" ] ; then
76 | ## resolve links - $0 may be a link to maven's home
77 | PRG="$0"
78 |
79 | # need this for relative symlinks
80 | while [ -h "$PRG" ] ; do
81 | ls=`ls -ld "$PRG"`
82 | link=`expr "$ls" : '.*-> \(.*\)$'`
83 | if expr "$link" : '/.*' > /dev/null; then
84 | PRG="$link"
85 | else
86 | PRG="`dirname "$PRG"`/$link"
87 | fi
88 | done
89 |
90 | saveddir=`pwd`
91 |
92 | M2_HOME=`dirname "$PRG"`/..
93 |
94 | # make it fully qualified
95 | M2_HOME=`cd "$M2_HOME" && pwd`
96 |
97 | cd "$saveddir"
98 | # echo Using m2 at $M2_HOME
99 | fi
100 |
101 | # For Cygwin, ensure paths are in UNIX format before anything is touched
102 | if $cygwin ; then
103 | [ -n "$M2_HOME" ] &&
104 | M2_HOME=`cygpath --unix "$M2_HOME"`
105 | [ -n "$JAVA_HOME" ] &&
106 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107 | [ -n "$CLASSPATH" ] &&
108 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109 | fi
110 |
111 | # For Mingw, ensure paths are in UNIX format before anything is touched
112 | if $mingw ; then
113 | [ -n "$M2_HOME" ] &&
114 | M2_HOME="`(cd "$M2_HOME"; pwd)`"
115 | [ -n "$JAVA_HOME" ] &&
116 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117 | fi
118 |
119 | if [ -z "$JAVA_HOME" ]; then
120 | javaExecutable="`which javac`"
121 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
122 | # readlink(1) is not available as standard on Solaris 10.
123 | readLink=`which readlink`
124 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
125 | if $darwin ; then
126 | javaHome="`dirname \"$javaExecutable\"`"
127 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
128 | else
129 | javaExecutable="`readlink -f \"$javaExecutable\"`"
130 | fi
131 | javaHome="`dirname \"$javaExecutable\"`"
132 | javaHome=`expr "$javaHome" : '\(.*\)/bin'`
133 | JAVA_HOME="$javaHome"
134 | export JAVA_HOME
135 | fi
136 | fi
137 | fi
138 |
139 | if [ -z "$JAVACMD" ] ; then
140 | if [ -n "$JAVA_HOME" ] ; then
141 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
142 | # IBM's JDK on AIX uses strange locations for the executables
143 | JAVACMD="$JAVA_HOME/jre/sh/java"
144 | else
145 | JAVACMD="$JAVA_HOME/bin/java"
146 | fi
147 | else
148 | JAVACMD="`which java`"
149 | fi
150 | fi
151 |
152 | if [ ! -x "$JAVACMD" ] ; then
153 | echo "Error: JAVA_HOME is not defined correctly." >&2
154 | echo " We cannot execute $JAVACMD" >&2
155 | exit 1
156 | fi
157 |
158 | if [ -z "$JAVA_HOME" ] ; then
159 | echo "Warning: JAVA_HOME environment variable is not set."
160 | fi
161 |
162 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
163 |
164 | # traverses directory structure from process work directory to filesystem root
165 | # first directory with .mvn subdirectory is considered project base directory
166 | find_maven_basedir() {
167 |
168 | if [ -z "$1" ]
169 | then
170 | echo "Path not specified to find_maven_basedir"
171 | return 1
172 | fi
173 |
174 | basedir="$1"
175 | wdir="$1"
176 | while [ "$wdir" != '/' ] ; do
177 | if [ -d "$wdir"/.mvn ] ; then
178 | basedir=$wdir
179 | break
180 | fi
181 | # workaround for JBEAP-8937 (on Solaris 10/Sparc)
182 | if [ -d "${wdir}" ]; then
183 | wdir=`cd "$wdir/.."; pwd`
184 | fi
185 | # end of workaround
186 | done
187 | echo "${basedir}"
188 | }
189 |
190 | # concatenates all lines of a file
191 | concat_lines() {
192 | if [ -f "$1" ]; then
193 | echo "$(tr -s '\n' ' ' < "$1")"
194 | fi
195 | }
196 |
197 | BASE_DIR=`find_maven_basedir "$(pwd)"`
198 | if [ -z "$BASE_DIR" ]; then
199 | exit 1;
200 | fi
201 |
202 | ##########################################################################################
203 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
204 | # This allows using the maven wrapper in projects that prohibit checking in binary data.
205 | ##########################################################################################
206 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
207 | if [ "$MVNW_VERBOSE" = true ]; then
208 | echo "Found .mvn/wrapper/maven-wrapper.jar"
209 | fi
210 | else
211 | if [ "$MVNW_VERBOSE" = true ]; then
212 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
213 | fi
214 | if [ -n "$MVNW_REPOURL" ]; then
215 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
216 | else
217 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
218 | fi
219 | while IFS="=" read key value; do
220 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
221 | esac
222 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
223 | if [ "$MVNW_VERBOSE" = true ]; then
224 | echo "Downloading from: $jarUrl"
225 | fi
226 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
227 | if $cygwin; then
228 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
229 | fi
230 |
231 | if command -v wget > /dev/null; then
232 | if [ "$MVNW_VERBOSE" = true ]; then
233 | echo "Found wget ... using wget"
234 | fi
235 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
236 | wget "$jarUrl" -O "$wrapperJarPath"
237 | else
238 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
239 | fi
240 | elif command -v curl > /dev/null; then
241 | if [ "$MVNW_VERBOSE" = true ]; then
242 | echo "Found curl ... using curl"
243 | fi
244 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
245 | curl -o "$wrapperJarPath" "$jarUrl" -f
246 | else
247 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
248 | fi
249 |
250 | else
251 | if [ "$MVNW_VERBOSE" = true ]; then
252 | echo "Falling back to using Java to download"
253 | fi
254 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
255 | # For Cygwin, switch paths to Windows format before running javac
256 | if $cygwin; then
257 | javaClass=`cygpath --path --windows "$javaClass"`
258 | fi
259 | if [ -e "$javaClass" ]; then
260 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
261 | if [ "$MVNW_VERBOSE" = true ]; then
262 | echo " - Compiling MavenWrapperDownloader.java ..."
263 | fi
264 | # Compiling the Java class
265 | ("$JAVA_HOME/bin/javac" "$javaClass")
266 | fi
267 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
268 | # Running the downloader
269 | if [ "$MVNW_VERBOSE" = true ]; then
270 | echo " - Running MavenWrapperDownloader.java ..."
271 | fi
272 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
273 | fi
274 | fi
275 | fi
276 | fi
277 | ##########################################################################################
278 | # End of extension
279 | ##########################################################################################
280 |
281 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
282 | if [ "$MVNW_VERBOSE" = true ]; then
283 | echo $MAVEN_PROJECTBASEDIR
284 | fi
285 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
286 |
287 | # For Cygwin, switch paths to Windows format before running java
288 | if $cygwin; then
289 | [ -n "$M2_HOME" ] &&
290 | M2_HOME=`cygpath --path --windows "$M2_HOME"`
291 | [ -n "$JAVA_HOME" ] &&
292 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
293 | [ -n "$CLASSPATH" ] &&
294 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
295 | [ -n "$MAVEN_PROJECTBASEDIR" ] &&
296 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
297 | fi
298 |
299 | # Provide a "standardized" way to retrieve the CLI args that will
300 | # work with both Windows and non-Windows executions.
301 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
302 | export MAVEN_CMD_LINE_ARGS
303 |
304 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
305 |
306 | exec "$JAVACMD" \
307 | $MAVEN_OPTS \
308 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
309 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
310 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
311 |
--------------------------------------------------------------------------------
/HRMS/HRMS/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/HRMS/HRMS/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | org.springframework.boot
7 | spring-boot-starter-parent
8 | 2.5.1
9 |
10 |
11 | Kodlamaio
12 | HRMS
13 | 0.0.1-SNAPSHOT
14 | HRMS
15 | Human Resource Management System
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 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/HrmsApplication.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 |
7 |
8 | @SpringBootApplication
9 | public class HrmsApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(HrmsApplication.class, args);
13 |
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/api/controllers/UserControllers.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.api.controllers;
2 |
3 | import java.util.List;
4 |
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 Kodlamaio.HRMS.business.abstracts.UsersServices;
11 | import Kodlamaio.HRMS.entities.concretes.Users;
12 |
13 | @RestController
14 | @RequestMapping("/api/users")
15 | public class UserControllers {
16 | private UsersServices userServices;
17 |
18 | @Autowired
19 | public UserControllers(UsersServices userServices) {
20 | super();
21 | this.userServices = userServices;
22 | }
23 |
24 | @GetMapping
25 | public List getAll(){
26 | return this.userServices.getAll();
27 |
28 | }
29 |
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/business/abstracts/UsersServices.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import Kodlamaio.HRMS.entities.concretes.Users;
6 |
7 | public interface UsersServices {
8 |
9 | void add(Users user);
10 | List getAll();
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/business/concretes/UsersManager.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import Kodlamaio.HRMS.business.abstracts.UsersServices;
9 | import Kodlamaio.HRMS.dataAccess.abstracts.UsersDao;
10 | import Kodlamaio.HRMS.entities.concretes.Users;
11 |
12 | @Service
13 | public class UsersManager implements UsersServices{
14 |
15 | private UsersDao usersDao;
16 |
17 | @Autowired
18 | public UsersManager(UsersDao usersDao) {
19 | super();
20 | this.usersDao = usersDao;
21 | }
22 |
23 | public void add(Users user) {
24 | this.usersDao.count(); }
25 |
26 | @Override
27 | public List getAll() {
28 | return this.usersDao.findAll();
29 | }
30 |
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/dataAccess/abstracts/UsersDao.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import Kodlamaio.HRMS.entities.concretes.Users;
6 |
7 | public interface UsersDao extends JpaRepository {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/entities/abstracts/Entity.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.entities.abstracts;
2 |
3 | public interface Entity {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/entities/concretes/Candidates.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.entities.concretes;
2 |
3 | import java.time.LocalDate;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.Table;
8 |
9 | import lombok.Data;
10 |
11 | @Entity
12 | @Data
13 | @Table(name="candidates")
14 | public class Candidates extends Users{
15 | @Column(name="first_name")
16 | private String firstName;
17 |
18 | @Column(name="last_name")
19 | private String lastName;
20 |
21 | @Column(name="nationality_id")
22 | private String nationalityId;
23 |
24 | @Column(name="bith_year")
25 | private LocalDate birthYear;
26 |
27 | public Candidates(int id, String mail, String password, String firstName, String lastName, String nationalityId,
28 | LocalDate birthYear) {
29 | super(id, mail, password);
30 | this.firstName = firstName;
31 | this.lastName = lastName;
32 | this.nationalityId = nationalityId;
33 | this.birthYear = birthYear;
34 | }
35 |
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/entities/concretes/Employee.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.entities.concretes;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Entity;
5 | import javax.persistence.Table;
6 |
7 | import lombok.Data;
8 |
9 | @Entity
10 | @Data
11 | @Table(name="employees")
12 | public class Employee extends Users{
13 |
14 | @Column(name = "first_name")
15 | private String firstName;
16 |
17 | @Column(name = "first_name")
18 | private String lastName;
19 |
20 | public Employee(int id, String mail, String password, String firstName, String lastName) {
21 | super(id, mail, password);
22 | this.firstName = firstName;
23 | this.lastName = lastName;
24 | }
25 |
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/entities/concretes/Employer.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.entities.concretes;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Entity;
5 | import javax.persistence.Table;
6 |
7 | import lombok.Data;
8 |
9 | @Entity
10 | @Data
11 | @Table(name="employers")
12 | public class Employer extends Users{
13 |
14 | @Column(name="id")
15 | private int id;
16 |
17 | @Column(name="company_name")
18 | private String companyName;
19 |
20 | @Column(name="web_adress")
21 | private String webAdress;
22 |
23 | @Column(name="phone")
24 | private String phone;
25 |
26 | @Column(name="is_active")
27 | private boolean isActive;
28 |
29 | public Employer(int id, String mail, String password, int id2, String companyName, String webAdress, String phone,
30 | boolean isActive) {
31 | super(id, mail, password);
32 | id = id2;
33 | this.companyName = companyName;
34 | this.webAdress = webAdress;
35 | this.phone = phone;
36 | this.isActive = isActive;
37 | }
38 |
39 |
40 |
41 |
42 |
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/java/Kodlamaio/HRMS/entities/concretes/Users.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS.entities.concretes;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Table;
5 |
6 | import lombok.Data;
7 | import javax.persistence.Entity;
8 |
9 | @Entity
10 | @Data
11 | @Table(name="users")
12 | public class Users{
13 |
14 | @Column(name="id")
15 | private int id;
16 |
17 | @Column(name="mail")
18 | private String mail;
19 |
20 | @Column(name="password")
21 | private String password;
22 | public Users(int id, String mail, String password) {
23 | super();
24 | this.id = id;
25 | this.mail = mail;
26 | this.password = password;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/HRMS/HRMS/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
2 | spring.jpa.hibernate.ddl-auto=update
3 | spring.jpa.hibernate.show-sql=true
4 | spring.datasource.url=jdbc:postgresql://localhost:5432/HRMS
5 | spring.datasource.username=postgres
6 | spring.datasource.password=1234
7 | spring.jpa.properties.javax.persistence.validation.mode = none
--------------------------------------------------------------------------------
/HRMS/HRMS/src/test/java/Kodlamaio/HRMS/HrmsApplicationTests.java:
--------------------------------------------------------------------------------
1 | package Kodlamaio.HRMS;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class HrmsApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**/target/
5 | !**/src/test/**/target/
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 | !**/src/main/**/build/
30 | !**/src/test/**/build/
31 |
32 | ### VS Code ###
33 | .vscode/
34 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/.mvn/wrapper/MavenWrapperDownloader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-present the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | import java.net.*;
17 | import java.io.*;
18 | import java.nio.channels.*;
19 | import java.util.Properties;
20 |
21 | public class MavenWrapperDownloader {
22 |
23 | private static final String WRAPPER_VERSION = "0.5.6";
24 | /**
25 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
26 | */
27 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
28 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
29 |
30 | /**
31 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
32 | * use instead of the default one.
33 | */
34 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
35 | ".mvn/wrapper/maven-wrapper.properties";
36 |
37 | /**
38 | * Path where the maven-wrapper.jar will be saved to.
39 | */
40 | private static final String MAVEN_WRAPPER_JAR_PATH =
41 | ".mvn/wrapper/maven-wrapper.jar";
42 |
43 | /**
44 | * Name of the property which should be used to override the default download url for the wrapper.
45 | */
46 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
47 |
48 | public static void main(String args[]) {
49 | System.out.println("- Downloader started");
50 | File baseDirectory = new File(args[0]);
51 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
52 |
53 | // If the maven-wrapper.properties exists, read it and check if it contains a custom
54 | // wrapperUrl parameter.
55 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
56 | String url = DEFAULT_DOWNLOAD_URL;
57 | if(mavenWrapperPropertyFile.exists()) {
58 | FileInputStream mavenWrapperPropertyFileInputStream = null;
59 | try {
60 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
61 | Properties mavenWrapperProperties = new Properties();
62 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
63 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
64 | } catch (IOException e) {
65 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
66 | } finally {
67 | try {
68 | if(mavenWrapperPropertyFileInputStream != null) {
69 | mavenWrapperPropertyFileInputStream.close();
70 | }
71 | } catch (IOException e) {
72 | // Ignore ...
73 | }
74 | }
75 | }
76 | System.out.println("- Downloading from: " + url);
77 |
78 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
79 | if(!outputFile.getParentFile().exists()) {
80 | if(!outputFile.getParentFile().mkdirs()) {
81 | System.out.println(
82 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
83 | }
84 | }
85 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
86 | try {
87 | downloadFileFromURL(url, outputFile);
88 | System.out.println("Done");
89 | System.exit(0);
90 | } catch (Throwable e) {
91 | System.out.println("- Error downloading");
92 | e.printStackTrace();
93 | System.exit(1);
94 | }
95 | }
96 |
97 | private static void downloadFileFromURL(String urlString, File destination) throws Exception {
98 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
99 | String username = System.getenv("MVNW_USERNAME");
100 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
101 | Authenticator.setDefault(new Authenticator() {
102 | @Override
103 | protected PasswordAuthentication getPasswordAuthentication() {
104 | return new PasswordAuthentication(username, password);
105 | }
106 | });
107 | }
108 | URL website = new URL(urlString);
109 | ReadableByteChannel rbc;
110 | rbc = Channels.newChannel(website.openStream());
111 | FileOutputStream fos = new FileOutputStream(destination);
112 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
113 | fos.close();
114 | rbc.close();
115 | }
116 |
117 | }
118 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/JobTitleListHRMS/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/JobTitleListHRMS/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | org.springframework.boot
7 | spring-boot-starter-parent
8 | 2.5.1
9 |
10 |
11 | kodlamaio
12 | demo
13 | 0.0.1-SNAPSHOT
14 | demo
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 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/java/kodlamaio/demo/DemoApplication.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class DemoApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(DemoApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/java/kodlamaio/demo/api/controllers/JobTitleControllers.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo.api.controllers;
2 |
3 | import java.util.List;
4 |
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 kodlamaio.demo.business.abstracts.JobTitleService;
11 | import kodlamaio.demo.entities.concretes.JobTitle;
12 |
13 | @RestController
14 | @RequestMapping("/api/jops")
15 | public class JobTitleControllers {
16 |
17 | private JobTitleService jobTitleServices;
18 |
19 | @Autowired
20 | public JobTitleControllers(JobTitleService jobTitleServices) {
21 | super();
22 | this.jobTitleServices = jobTitleServices;
23 | }
24 |
25 | @GetMapping("/getall")
26 | public List getAll(){
27 | return this.jobTitleServices.getAll();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/java/kodlamaio/demo/business/abstracts/JobTitleService.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlamaio.demo.entities.concretes.JobTitle;
6 |
7 | public interface JobTitleService {
8 |
9 | List getAll();
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/java/kodlamaio/demo/business/concretes/JobTitleManager.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import kodlamaio.demo.business.abstracts.JobTitleService;
9 | import kodlamaio.demo.dataAccess.abstracts.JobTitleDao;
10 | import kodlamaio.demo.entities.concretes.JobTitle;
11 |
12 | @Service
13 | public class JobTitleManager implements JobTitleService {
14 |
15 | private JobTitleDao jobTitleDao;
16 |
17 |
18 | @Autowired
19 | public JobTitleManager(JobTitleDao jobTitleDao) {
20 | super();
21 | this.jobTitleDao = jobTitleDao;
22 | }
23 |
24 |
25 | @Override
26 | public List getAll() {
27 | return this.jobTitleDao.findAll();
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/java/kodlamaio/demo/dataAccess/abstracts/JobTitleDao.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlamaio.demo.entities.concretes.JobTitle;
6 |
7 | public interface JobTitleDao extends JpaRepository {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/java/kodlamaio/demo/entities/concretes/JobTitle.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo.entities.concretes;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Entity;
5 | import javax.persistence.GeneratedValue;
6 | import javax.persistence.Id;
7 | import javax.persistence.Table;
8 |
9 | import lombok.Data;
10 |
11 | @Entity
12 | @Data
13 | @Table(name="job_title")
14 | public class JobTitle {
15 |
16 | @Id
17 | @GeneratedValue
18 | @Column(name="id")
19 | private int id;
20 |
21 | @Column(name="title")
22 | private String jobTitle;
23 |
24 | public JobTitle(int id, String jobTitle) {
25 | super();
26 | this.id = id;
27 | this.jobTitle = jobTitle;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
3 | spring.jpa.hibernate.ddl-auto=update
4 | spring.jpa.hibernate.show-sql=true
5 | spring.datasource.url=jdbc:postgresql://localhost:5432/HRMS
6 | spring.datasource.username=postgres
7 | spring.datasource.password=1234
8 | spring.jpa.properties.javax.persistence.validation.mode = none
9 |
--------------------------------------------------------------------------------
/JobTitleListHRMS/src/test/java/kodlamaio/demo/DemoApplicationTests.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.demo;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class DemoApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JavaReactCamp
2 | Java + React works that Education works on [Kodlama.io](https://www.kodlama.io/)
3 |
4 | #
5 |
6 | Engin demirog ile birlikte java ve react kampından
7 |
8 |
9 | ## JAVA Temelleri
10 |
11 | [Course 1 - intro](https://github.com/meryemtnkt/javaCamp/tree/main/intro/src/intro)
12 |
13 | **Nesne Yönelim**
14 |
15 | [Course 2 - Course 3 - oopIntro](https://github.com/meryemtnkt/javaCamp/tree/main/oopIntro)
16 |
17 | - [Homework](https://github.com/meryemtnkt/javaCamp/tree/main/dayTwoHomeWorkOne/src/dayTwoHomeWorkOne)
18 |
19 |
20 |
21 | **Miras - Kalıtım**
22 |
23 | [Course 3 - İnheritance](https://github.com/meryemtnkt/javaCamp/tree/main/inheritance/src/inheritance)
24 |
25 | [Course 3 - İnheritance2 - @Override](https://github.com/meryemtnkt/javaCamp/tree/main/inhetritance2/src/inhetritance2)
26 |
27 | - [Homework](https://github.com/meryemtnkt/javaCamp/tree/main/dayThreeHomeWork/src/dayThreeHomeWork)
28 |
29 |
30 | **Arayüzler**
31 |
32 | [Course 4 - İnterfaces](https://github.com/meryemtnkt/javaCamp/tree/main/interfaces)
33 | - [Homework-2](https://github.com/meryemtnkt/javaCamp/tree/main/day4Homework2/src)
34 | - [Homework-3](https://github.com/meryemtnkt/javaCamp/tree/main/day4Homework3)
35 |
36 |
37 | **Kurumsal Mimari**
38 |
39 | [Course 5 - nLayeredDemo](https://github.com/meryemtnkt/javaCamp/tree/main/nLayeredDemo)
40 | - [Homework](https://github.com/meryemtnkt/javaCamp/tree/main/Day5Homework)
41 |
42 |
43 | **Spring Boot**
44 |
45 | [Course 6 - nortwind](https://github.com/meryemtnkt/javaCamp/tree/main/nortwind)
46 |
47 | [PostgreSql](https://github.com/meryemtnkt/nortwind_postgre_sql)
48 | - [Homework-2](https://github.com/meryemtnkt/HRMS-PostgreSQL)
49 | - [Homework-3 /jobtitle - HRMS ](https://github.com/meryemtnkt/javaCamp/tree/main/JobTitleListHRMS)
50 |
51 |
52 | **Swagger and lombok**
53 |
54 | [Course 7 - nortwind](https://github.com/meryemtnkt/javaCamp/tree/main/nortwind/src/main/java/kodlamaio/nortwind/core/utilities/result)
55 |
56 | **Spring JPA/Hibernate**
57 |
58 | [Course 8 - nortwind](https://github.com/meryemtnkt/javaCamp/tree/main/nortwind/src/main/java/kodlamaio/nortwind/entities/concretes)
59 |
60 | **Spring AOP**
61 |
62 | [Course 9 - nortwind](https://github.com/meryemtnkt/javaCamp/tree/main/nortwind/src/main/java/kodlamaio/nortwind/core)
63 |
64 | **JAVASCRİPT**
65 |
66 | [Course 10 - Javascript- ES6](https://github.com/meryemtnkt/advancedJavaScript-master)
67 |
68 | **React**
69 |
70 | [Course 11 - React](https://github.com/meryemtnkt/reactCamp)
71 |
72 | **React**
73 |
74 | [ Course 12 - React 1](https://github.com/meryemtnkt/reactCamp)
75 |
76 | ## Nortwind project ##
77 | [Project](https://github.com/meryemtnkt/javaCamp/tree/main/nortwind)
78 |
79 | ## Nortwind project / FrontEnd ##
80 | [FrontEnd](https://github.com/meryemtnkt/reactCamp)
81 |
--------------------------------------------------------------------------------
/day4Homework2/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/day4Homework2/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | day4Homework2
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jem.workbench.JavaEMFNature
16 | org.eclipse.jdt.core.javanature
17 |
18 |
19 |
--------------------------------------------------------------------------------
/day4Homework2/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublic.java=UTF-8
3 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java=UTF-8
4 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java=UTF-8
5 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java=UTF-8
6 |
--------------------------------------------------------------------------------
/day4Homework2/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/day4Homework2/bin/Abstract/BaseCustomerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Abstract/BaseCustomerManager.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Abstract/CustomerCheckSevice.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Abstract/CustomerCheckSevice.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Abstract/CustomerService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Abstract/CustomerService.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Abstract/Entity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Abstract/Entity.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Adapters/MernisServiceAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Adapters/MernisServiceAdapter.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Concrete/CustomerCheckManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Concrete/CustomerCheckManager.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Concrete/NeroCustomerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Concrete/NeroCustomerManager.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Concrete/StarbucksCustomerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Concrete/StarbucksCustomerManager.class
--------------------------------------------------------------------------------
/day4Homework2/bin/Entities/Customer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/Entities/Customer.class
--------------------------------------------------------------------------------
/day4Homework2/bin/day4Homework2/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/day4Homework2/Main.class
--------------------------------------------------------------------------------
/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublic.class
--------------------------------------------------------------------------------
/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.class
--------------------------------------------------------------------------------
/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.class
--------------------------------------------------------------------------------
/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.class
--------------------------------------------------------------------------------
/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/bin/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.class
--------------------------------------------------------------------------------
/day4Homework2/src/Abstract/BaseCustomerManager.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.Customer;
4 |
5 | public class BaseCustomerManager implements CustomerService {
6 |
7 | @Override
8 | public void save(Customer customer) {
9 | System.out.println("Saved to db : " + customer.getFirstName());
10 |
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/day4Homework2/src/Abstract/CustomerCheckSevice.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.Customer;
4 |
5 | public interface CustomerCheckSevice {
6 |
7 | boolean CheckIfRealPerson(Customer customer);
8 | }
9 |
--------------------------------------------------------------------------------
/day4Homework2/src/Abstract/CustomerService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.Customer;
4 |
5 | public interface CustomerService {
6 |
7 | public void save(Customer customer);
8 | }
9 |
--------------------------------------------------------------------------------
/day4Homework2/src/Abstract/Entity.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | public interface Entity {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/day4Homework2/src/Adapters/MernisServiceAdapter.java:
--------------------------------------------------------------------------------
1 | package Adapters;
2 |
3 | import java.rmi.RemoteException;
4 | import java.util.Locale;
5 |
6 | import Abstract.CustomerCheckSevice;
7 | import Entities.Customer;
8 | import tr.gov.nvi.tckimlik.WS.KPSPublicSoapProxy;
9 |
10 | public class MernisServiceAdapter implements CustomerCheckSevice {
11 |
12 | @Override
13 | public boolean CheckIfRealPerson(Customer customer) {
14 |
15 | KPSPublicSoapProxy client =new KPSPublicSoapProxy();
16 |
17 | boolean result=true;
18 | try {
19 | result=client.TCKimlikNoDogrula(
20 | Long.parseLong(customer.getNationalityId()), customer.getFirstName().toUpperCase(new Locale("tr")), customer.getLastName().toUpperCase(new Locale("tr")), customer.getDateOfBirth().getYear());
21 |
22 | } catch (RemoteException e) {
23 | // TODO Auto-generated catch block
24 | e.printStackTrace();
25 | }
26 |
27 | return result;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/day4Homework2/src/Concrete/CustomerCheckManager.java:
--------------------------------------------------------------------------------
1 | package Concrete;
2 |
3 | import Abstract.CustomerCheckSevice;
4 | import Entities.Customer;
5 |
6 | public class CustomerCheckManager implements CustomerCheckSevice {
7 |
8 |
9 | @Override
10 | public boolean CheckIfRealPerson(Customer customer) {
11 | // TODO Auto-generated method stub
12 | return false;
13 |
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/day4Homework2/src/Concrete/NeroCustomerManager.java:
--------------------------------------------------------------------------------
1 | package Concrete;
2 |
3 | import Abstract.BaseCustomerManager;
4 |
5 | public class NeroCustomerManager extends BaseCustomerManager{
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/day4Homework2/src/Concrete/StarbucksCustomerManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework2/src/Concrete/StarbucksCustomerManager.java
--------------------------------------------------------------------------------
/day4Homework2/src/Entities/Customer.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | import java.time.LocalDate;
4 |
5 | import Abstract.Entity;
6 |
7 | public class Customer implements Entity {
8 | private int id;
9 | private String firstName;
10 | private String lastName;
11 | private LocalDate dateOfBirth;
12 | private String nationalityId;
13 | public Customer(int id, String firstName, String lastName, LocalDate dateOfBirth, String nationalityId) {
14 | super();
15 | this.id = id;
16 | this.firstName = firstName;
17 | this.lastName = lastName;
18 | this.dateOfBirth = dateOfBirth;
19 | this.nationalityId = nationalityId;
20 | }
21 | public int getId() {
22 | return id;
23 | }
24 | public void setId(int id) {
25 | this.id = id;
26 | }
27 | public String getFirstName() {
28 | return firstName;
29 | }
30 | public void setFirstName(String firstName) {
31 | this.firstName = firstName;
32 | }
33 | public String getLastName() {
34 | return lastName;
35 | }
36 | public void setLastName(String lastName) {
37 | this.lastName = lastName;
38 | }
39 | public LocalDate getDateOfBirth() {
40 | return dateOfBirth;
41 | }
42 | public void setDateOfBirth(LocalDate dateOfBirth) {
43 | this.dateOfBirth = dateOfBirth;
44 | }
45 | public String getNationalityId() {
46 | return nationalityId;
47 | }
48 | public void setNationalityId(String nationalityId) {
49 | this.nationalityId = nationalityId;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/day4Homework2/src/day4Homework2/Main.java:
--------------------------------------------------------------------------------
1 | package day4Homework2;
2 |
3 | import java.time.LocalDate;
4 |
5 | import Abstract.BaseCustomerManager;
6 | import Adapters.MernisServiceAdapter;
7 | import Concrete.StarbucksCustomerManager;
8 | import Entities.Customer;
9 |
10 | public class Main {
11 |
12 | public static void main(String[] args) {
13 |
14 |
15 | Customer customer = new Customer(101, "Meryem", "Tankut", LocalDate.of(1994, 2, 2), "01236547890");
16 | BaseCustomerManager baseCustomerManager=new StarbucksCustomerManager(new MernisServiceAdapter());
17 | // new NeroCustomerManager(new MernisServiceAdapter());
18 |
19 | try {
20 | baseCustomerManager.save(customer);
21 | } catch (Exception e) {
22 | e.printStackTrace();
23 | }
24 |
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/day4Homework2/src/tr/gov/nvi/tckimlik/WS/KPSPublic.java:
--------------------------------------------------------------------------------
1 | /**
2 | * KPSPublic.java
3 | *
4 | * This file was auto-generated from WSDL
5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6 | */
7 |
8 | package tr.gov.nvi.tckimlik.WS;
9 |
10 | public interface KPSPublic extends javax.xml.rpc.Service {
11 | public java.lang.String getKPSPublicSoapAddress();
12 |
13 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException;
14 |
15 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
16 | }
17 |
--------------------------------------------------------------------------------
/day4Homework2/src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java:
--------------------------------------------------------------------------------
1 | /**
2 | * KPSPublicLocator.java
3 | *
4 | * This file was auto-generated from WSDL
5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6 | */
7 |
8 | package tr.gov.nvi.tckimlik.WS;
9 |
10 | public class KPSPublicLocator extends org.apache.axis.client.Service implements tr.gov.nvi.tckimlik.WS.KPSPublic {
11 |
12 | public KPSPublicLocator() {
13 | }
14 |
15 |
16 | public KPSPublicLocator(org.apache.axis.EngineConfiguration config) {
17 | super(config);
18 | }
19 |
20 | public KPSPublicLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
21 | super(wsdlLoc, sName);
22 | }
23 |
24 | // Use to get a proxy class for KPSPublicSoap
25 | private java.lang.String KPSPublicSoap_address = "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx";
26 |
27 | public java.lang.String getKPSPublicSoapAddress() {
28 | return KPSPublicSoap_address;
29 | }
30 |
31 | // The WSDD service name defaults to the port name.
32 | private java.lang.String KPSPublicSoapWSDDServiceName = "KPSPublicSoap";
33 |
34 | public java.lang.String getKPSPublicSoapWSDDServiceName() {
35 | return KPSPublicSoapWSDDServiceName;
36 | }
37 |
38 | public void setKPSPublicSoapWSDDServiceName(java.lang.String name) {
39 | KPSPublicSoapWSDDServiceName = name;
40 | }
41 |
42 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException {
43 | java.net.URL endpoint;
44 | try {
45 | endpoint = new java.net.URL(KPSPublicSoap_address);
46 | }
47 | catch (java.net.MalformedURLException e) {
48 | throw new javax.xml.rpc.ServiceException(e);
49 | }
50 | return getKPSPublicSoap(endpoint);
51 | }
52 |
53 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
54 | try {
55 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(portAddress, this);
56 | _stub.setPortName(getKPSPublicSoapWSDDServiceName());
57 | return _stub;
58 | }
59 | catch (org.apache.axis.AxisFault e) {
60 | return null;
61 | }
62 | }
63 |
64 | public void setKPSPublicSoapEndpointAddress(java.lang.String address) {
65 | KPSPublicSoap_address = address;
66 | }
67 |
68 | /**
69 | * For the given interface, get the stub implementation.
70 | * If this service has no port for the given interface,
71 | * then ServiceException is thrown.
72 | */
73 | public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
74 | try {
75 | if (tr.gov.nvi.tckimlik.WS.KPSPublicSoap.class.isAssignableFrom(serviceEndpointInterface)) {
76 | tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub _stub = new tr.gov.nvi.tckimlik.WS.KPSPublicSoapStub(new java.net.URL(KPSPublicSoap_address), this);
77 | _stub.setPortName(getKPSPublicSoapWSDDServiceName());
78 | return _stub;
79 | }
80 | }
81 | catch (java.lang.Throwable t) {
82 | throw new javax.xml.rpc.ServiceException(t);
83 | }
84 | throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
85 | }
86 |
87 | /**
88 | * For the given interface, get the stub implementation.
89 | * If this service has no port for the given interface,
90 | * then ServiceException is thrown.
91 | */
92 | public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
93 | if (portName == null) {
94 | return getPort(serviceEndpointInterface);
95 | }
96 | java.lang.String inputPortName = portName.getLocalPart();
97 | if ("KPSPublicSoap".equals(inputPortName)) {
98 | return getKPSPublicSoap();
99 | }
100 | else {
101 | java.rmi.Remote _stub = getPort(serviceEndpointInterface);
102 | ((org.apache.axis.client.Stub) _stub).setPortName(portName);
103 | return _stub;
104 | }
105 | }
106 |
107 | public javax.xml.namespace.QName getServiceName() {
108 | return new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublic");
109 | }
110 |
111 | private java.util.HashSet ports = null;
112 |
113 | public java.util.Iterator getPorts() {
114 | if (ports == null) {
115 | ports = new java.util.HashSet();
116 | ports.add(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "KPSPublicSoap"));
117 | }
118 | return ports.iterator();
119 | }
120 |
121 | /**
122 | * Set the endpoint address for the specified port name.
123 | */
124 | public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
125 |
126 | if ("KPSPublicSoap".equals(portName)) {
127 | setKPSPublicSoapEndpointAddress(address);
128 | }
129 | else
130 | { // Unknown Port Name
131 | throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
132 | }
133 | }
134 |
135 | /**
136 | * Set the endpoint address for the specified port name.
137 | */
138 | public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
139 | setEndpointAddress(portName.getLocalPart(), address);
140 | }
141 |
142 | }
143 |
--------------------------------------------------------------------------------
/day4Homework2/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java:
--------------------------------------------------------------------------------
1 | /**
2 | * KPSPublicSoap.java
3 | *
4 | * This file was auto-generated from WSDL
5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6 | */
7 |
8 | package tr.gov.nvi.tckimlik.WS;
9 |
10 | public interface KPSPublicSoap extends java.rmi.Remote {
11 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException;
12 | }
13 |
--------------------------------------------------------------------------------
/day4Homework2/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.java:
--------------------------------------------------------------------------------
1 | package tr.gov.nvi.tckimlik.WS;
2 |
3 | public class KPSPublicSoapProxy implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap {
4 | private String _endpoint = null;
5 | private tr.gov.nvi.tckimlik.WS.KPSPublicSoap kPSPublicSoap = null;
6 |
7 | public KPSPublicSoapProxy() {
8 | _initKPSPublicSoapProxy();
9 | }
10 |
11 | public KPSPublicSoapProxy(String endpoint) {
12 | _endpoint = endpoint;
13 | _initKPSPublicSoapProxy();
14 | }
15 |
16 | private void _initKPSPublicSoapProxy() {
17 | try {
18 | kPSPublicSoap = (new tr.gov.nvi.tckimlik.WS.KPSPublicLocator()).getKPSPublicSoap();
19 | if (kPSPublicSoap != null) {
20 | if (_endpoint != null)
21 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
22 | else
23 | _endpoint = (String)((javax.xml.rpc.Stub)kPSPublicSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
24 | }
25 |
26 | }
27 | catch (javax.xml.rpc.ServiceException serviceException) {}
28 | }
29 |
30 | public String getEndpoint() {
31 | return _endpoint;
32 | }
33 |
34 | public void setEndpoint(String endpoint) {
35 | _endpoint = endpoint;
36 | if (kPSPublicSoap != null)
37 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
38 |
39 | }
40 |
41 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() {
42 | if (kPSPublicSoap == null)
43 | _initKPSPublicSoapProxy();
44 | return kPSPublicSoap;
45 | }
46 |
47 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException{
48 | if (kPSPublicSoap == null)
49 | _initKPSPublicSoapProxy();
50 | return kPSPublicSoap.TCKimlikNoDogrula(TCKimlikNo, ad, soyad, dogumYili);
51 | }
52 |
53 |
54 | }
--------------------------------------------------------------------------------
/day4Homework2/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java:
--------------------------------------------------------------------------------
1 | /**
2 | * KPSPublicSoapStub.java
3 | *
4 | * This file was auto-generated from WSDL
5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6 | */
7 |
8 | package tr.gov.nvi.tckimlik.WS;
9 |
10 | public class KPSPublicSoapStub extends org.apache.axis.client.Stub implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap {
11 | private java.util.Vector cachedSerClasses = new java.util.Vector();
12 | private java.util.Vector cachedSerQNames = new java.util.Vector();
13 | private java.util.Vector cachedSerFactories = new java.util.Vector();
14 | private java.util.Vector cachedDeserFactories = new java.util.Vector();
15 |
16 | static org.apache.axis.description.OperationDesc [] _operations;
17 |
18 | static {
19 | _operations = new org.apache.axis.description.OperationDesc[1];
20 | _initOperationDesc1();
21 | }
22 |
23 | private static void _initOperationDesc1(){
24 | org.apache.axis.description.OperationDesc oper;
25 | org.apache.axis.description.ParameterDesc param;
26 | oper = new org.apache.axis.description.OperationDesc();
27 | oper.setName("TCKimlikNoDogrula");
28 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNo"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
29 | oper.addParameter(param);
30 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Ad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
31 | param.setOmittable(true);
32 | oper.addParameter(param);
33 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "Soyad"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
34 | param.setOmittable(true);
35 | oper.addParameter(param);
36 | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "DogumYili"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
37 | oper.addParameter(param);
38 | oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
39 | oper.setReturnClass(boolean.class);
40 | oper.setReturnQName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrulaResult"));
41 | oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
42 | oper.setUse(org.apache.axis.constants.Use.LITERAL);
43 | _operations[0] = oper;
44 |
45 | }
46 |
47 | public KPSPublicSoapStub() throws org.apache.axis.AxisFault {
48 | this(null);
49 | }
50 |
51 | public KPSPublicSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
52 | this(service);
53 | super.cachedEndpoint = endpointURL;
54 | }
55 |
56 | public KPSPublicSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
57 | if (service == null) {
58 | super.service = new org.apache.axis.client.Service();
59 | } else {
60 | super.service = service;
61 | }
62 | ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
63 | }
64 |
65 | protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
66 | try {
67 | org.apache.axis.client.Call _call = super._createCall();
68 | if (super.maintainSessionSet) {
69 | _call.setMaintainSession(super.maintainSession);
70 | }
71 | if (super.cachedUsername != null) {
72 | _call.setUsername(super.cachedUsername);
73 | }
74 | if (super.cachedPassword != null) {
75 | _call.setPassword(super.cachedPassword);
76 | }
77 | if (super.cachedEndpoint != null) {
78 | _call.setTargetEndpointAddress(super.cachedEndpoint);
79 | }
80 | if (super.cachedTimeout != null) {
81 | _call.setTimeout(super.cachedTimeout);
82 | }
83 | if (super.cachedPortName != null) {
84 | _call.setPortName(super.cachedPortName);
85 | }
86 | java.util.Enumeration keys = super.cachedProperties.keys();
87 | while (keys.hasMoreElements()) {
88 | java.lang.String key = (java.lang.String) keys.nextElement();
89 | _call.setProperty(key, super.cachedProperties.get(key));
90 | }
91 | return _call;
92 | }
93 | catch (java.lang.Throwable _t) {
94 | throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
95 | }
96 | }
97 |
98 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException {
99 | if (super.cachedEndpoint == null) {
100 | throw new org.apache.axis.NoEndPointException();
101 | }
102 | org.apache.axis.client.Call _call = createCall();
103 | _call.setOperation(_operations[0]);
104 | _call.setUseSOAPAction(true);
105 | _call.setSOAPActionURI("http://tckimlik.nvi.gov.tr/WS/TCKimlikNoDogrula");
106 | _call.setEncodingStyle(null);
107 | _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
108 | _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
109 | _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
110 | _call.setOperationName(new javax.xml.namespace.QName("http://tckimlik.nvi.gov.tr/WS", "TCKimlikNoDogrula"));
111 |
112 | setRequestHeaders(_call);
113 | setAttachments(_call);
114 | try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(TCKimlikNo), ad, soyad, new java.lang.Integer(dogumYili)});
115 |
116 | if (_resp instanceof java.rmi.RemoteException) {
117 | throw (java.rmi.RemoteException)_resp;
118 | }
119 | else {
120 | extractAttachments(_call);
121 | try {
122 | return ((java.lang.Boolean) _resp).booleanValue();
123 | } catch (java.lang.Exception _exception) {
124 | return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
125 | }
126 | }
127 | } catch (org.apache.axis.AxisFault axisFaultException) {
128 | throw axisFaultException;
129 | }
130 | }
131 |
132 | }
133 |
--------------------------------------------------------------------------------
/day4Homework3/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/day4Homework3/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | day4Homework3
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/day4Homework3/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/day4Homework3/bin/Abstract/CampaingService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Abstract/CampaingService.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Abstract/Entity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Abstract/Entity.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Abstract/GameService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Abstract/GameService.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Abstract/NewGamerService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Abstract/NewGamerService.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Abstract/SaleService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Abstract/SaleService.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Adapter/GamerCheck.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Adapter/GamerCheck.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Concrete/CampaingManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Concrete/CampaingManager.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Concrete/GameManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Concrete/GameManager.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Concrete/NewGamerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Concrete/NewGamerManager.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Concrete/SaleManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Concrete/SaleManager.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Entities/Campaing.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Entities/Campaing.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Entities/Game.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Entities/Game.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Entities/NewGamer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Entities/NewGamer.class
--------------------------------------------------------------------------------
/day4Homework3/bin/Entities/Sale.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/Entities/Sale.class
--------------------------------------------------------------------------------
/day4Homework3/bin/day4Homework3/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/bin/day4Homework3/Main.class
--------------------------------------------------------------------------------
/day4Homework3/src/Abstract/CampaingService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.Campaing;
4 |
5 | public interface CampaingService {
6 | void campaingAdd(Campaing campaing);
7 | void campaingDelete(Campaing campaing);
8 | void campaingupdate(Campaing campaing);
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/day4Homework3/src/Abstract/Entity.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | public interface Entity {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/day4Homework3/src/Abstract/GameService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 | import Entities.Game;
3 |
4 | public interface GameService {
5 | void gameAdd(Game game);
6 | void gameDelete(Game game);
7 | void gameUpdate(Game game);
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/day4Homework3/src/Abstract/NewGamerService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.NewGamer;
4 |
5 | public interface NewGamerService {
6 |
7 | void gamerAdd(NewGamer gamer);
8 | void gamerDelete(NewGamer gamer);
9 | void gamerUpdate(NewGamer gamer);
10 |
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/day4Homework3/src/Abstract/SaleService.java:
--------------------------------------------------------------------------------
1 | package Abstract;
2 |
3 | import Entities.Game;
4 | import Entities.NewGamer;
5 | import Entities.Sale;
6 |
7 | public interface SaleService {
8 |
9 | void saleAdd(Sale sale, NewGamer gamer, Game game);
10 | void saleDelete(Sale sale, NewGamer gamer, Game game);
11 | void saleUpdate(Sale sale, NewGamer gamer, Game game);
12 |
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/day4Homework3/src/Adapter/GamerCheck.java:
--------------------------------------------------------------------------------
1 | package Adapter;
2 |
3 | import Entities.NewGamer;
4 |
5 | public class GamerCheck {
6 |
7 | public static boolean userCheck(NewGamer gamer) {
8 | if (!gamer.getFirstName().isEmpty()) {
9 | return true;
10 | }
11 |
12 | return false;
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/day4Homework3/src/Concrete/CampaingManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/src/Concrete/CampaingManager.java
--------------------------------------------------------------------------------
/day4Homework3/src/Concrete/GameManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/src/Concrete/GameManager.java
--------------------------------------------------------------------------------
/day4Homework3/src/Concrete/NewGamerManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/src/Concrete/NewGamerManager.java
--------------------------------------------------------------------------------
/day4Homework3/src/Concrete/SaleManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/src/Concrete/SaleManager.java
--------------------------------------------------------------------------------
/day4Homework3/src/Entities/Campaing.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | import java.time.LocalDate;
4 |
5 | public class Campaing {
6 |
7 | private int campaingId;
8 | private String campaingName;
9 | private LocalDate endDate;
10 | private float discount;
11 | public Campaing() {
12 | super();
13 | // TODO Auto-generated constructor stub
14 | }
15 | public Campaing(int campaingId, String campaingName, LocalDate endDate, float discount) {
16 | super();
17 | this.campaingId = campaingId;
18 | this.campaingName = campaingName;
19 | this.endDate = endDate;
20 | this.discount = discount;
21 | }
22 | public int getCampaingId() {
23 | return campaingId;
24 | }
25 | public void setCampaingId(int campaingId) {
26 | this.campaingId = campaingId;
27 | }
28 | public String getCampaingName() {
29 | return campaingName;
30 | }
31 | public void setCampaingName(String campaingName) {
32 | this.campaingName = campaingName;
33 | }
34 | public LocalDate getEndDate() {
35 | return endDate;
36 | }
37 | public void setEndDate(LocalDate endDate) {
38 | this.endDate = endDate;
39 | }
40 | public float getDiscount() {
41 | return discount;
42 | }
43 | public void setDiscount(float discount) {
44 | this.discount = discount;
45 | }
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/day4Homework3/src/Entities/Game.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | import java.time.LocalDate;
4 |
5 | public class Game {
6 |
7 | private int gameId;
8 | private String gameName;
9 | private LocalDate releaseDate;
10 | public Game(int gameId, String gameName, LocalDate releaseDate) {
11 | super();
12 | this.gameId = gameId;
13 | this.gameName = gameName;
14 | this.releaseDate = releaseDate;
15 | }
16 | public int getGameId() {
17 | return gameId;
18 | }
19 | public void setGameId(int gameId) {
20 | this.gameId = gameId;
21 | }
22 | public String getGameName() {
23 | return gameName;
24 | }
25 | public void setGameName(String gameName) {
26 | this.gameName = gameName;
27 | }
28 | public LocalDate getReleaseDate() {
29 | return releaseDate;
30 | }
31 | public void setReleaseDate(LocalDate releaseDate) {
32 | this.releaseDate = releaseDate;
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/day4Homework3/src/Entities/NewGamer.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | public class NewGamer {
4 |
5 | private int gamerId;
6 | private String lastName;
7 | private String firstName;
8 | private String nationalId;
9 | public NewGamer() {
10 | super();
11 | }
12 | public NewGamer(int gamerId, String lastName, String firstName, String nationalId) {
13 | super();
14 | this.gamerId = gamerId;
15 | this.lastName = lastName;
16 | this.firstName = firstName;
17 | this.nationalId = nationalId;
18 | }
19 | public int getGamerId() {
20 | return gamerId;
21 | }
22 | public void setGamerId(int gamerId) {
23 | this.gamerId = gamerId;
24 | }
25 | public String getLastName() {
26 | return lastName;
27 | }
28 | public void setLastName(String lastName) {
29 | this.lastName = lastName;
30 | }
31 | public String getFirstName() {
32 | return firstName;
33 | }
34 | public void setFirstName(String firstName) {
35 | this.firstName = firstName;
36 | }
37 | public String getNationalId() {
38 | return nationalId;
39 | }
40 | public void setNationalId(String nationalId) {
41 | this.nationalId = nationalId;
42 | }
43 |
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/day4Homework3/src/Entities/Sale.java:
--------------------------------------------------------------------------------
1 | package Entities;
2 |
3 | public class Sale {
4 | private int saleId;
5 | private int gamerId;
6 | private int gameId;
7 | public Sale() {
8 | super();
9 | // TODO Auto-generated constructor stub
10 | }
11 | public Sale(int saleId, int gamerId, int gameId) {
12 | super();
13 | this.saleId = saleId;
14 | this.gamerId = gamerId;
15 | this.gameId = gameId;
16 | }
17 | public int getSaleId() {
18 | return saleId;
19 | }
20 | public void setSaleId(int saleId) {
21 | this.saleId = saleId;
22 | }
23 | public int getGamerId() {
24 | return gamerId;
25 | }
26 | public void setGamerId(int gamerId) {
27 | this.gamerId = gamerId;
28 | }
29 | public int getGameId() {
30 | return gameId;
31 | }
32 | public void setGameId(int gameId) {
33 | this.gameId = gameId;
34 | }
35 |
36 |
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/day4Homework3/src/day4Homework3/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/day4Homework3/src/day4Homework3/Main.java
--------------------------------------------------------------------------------
/dayThreeHomeWork/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/dayThreeHomeWork/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | dayThreeHomeWork
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/dayThreeHomeWork/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/Instructor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/Instructor.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/InstructorManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/InstructorManager.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/Main.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/Student.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/Student.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/StudentManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/StudentManager.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/User.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/bin/dayThreeHomeWork/UserManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/bin/dayThreeHomeWork/UserManager.class
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/Instructor.java:
--------------------------------------------------------------------------------
1 | package dayThreeHomeWork;
2 |
3 | public class Instructor extends User {
4 |
5 | private String certific;
6 | private String about;
7 |
8 | public Instructor(int id, String name, String lastName,String certific, String about) {
9 | super(id, name, lastName, about);
10 | this.certific = certific;
11 | this.about = about;
12 | }
13 |
14 | public String getAbout() {
15 | return about;
16 | }
17 |
18 | public void setAbout(String about) {
19 | this.about = about;
20 | }
21 |
22 | public String getCertific() {
23 | return certific;
24 | }
25 |
26 | public void setCertific(String certific) {
27 | this.certific = certific;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/InstructorManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/src/dayThreeHomeWork/InstructorManager.java
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/src/dayThreeHomeWork/Main.java
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/Student.java:
--------------------------------------------------------------------------------
1 | package dayThreeHomeWork;
2 |
3 | public class Student extends User{
4 |
5 | private String classes;
6 | private int note;
7 |
8 | public Student(int id, String name, String lastName,String classes, int note) {
9 | super(id, name, lastName, classes);
10 | this.classes = classes;
11 | this.note = note;
12 | }
13 |
14 | public String getClasses() {
15 | return classes;
16 | }
17 | public void setClasses(String classes) {
18 | this.classes = classes;
19 | }
20 | public int getNote() {
21 | return note;
22 | }
23 | public void setNote(int note) {
24 | this.note = note;
25 | }
26 |
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/StudentManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/src/dayThreeHomeWork/StudentManager.java
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/User.java:
--------------------------------------------------------------------------------
1 | package dayThreeHomeWork;
2 |
3 | public class User {
4 |
5 | private int id;
6 | private String name;
7 | private String lastName;
8 | private String course;
9 |
10 | public User() {
11 |
12 | }
13 | public User(int id, String name, String lastName, String course) {
14 | super();
15 | this.id = id;
16 | this.name = name;
17 | this.lastName = lastName;
18 | this.course = course;
19 | }
20 |
21 | public int getId() {
22 | return id;
23 | }
24 | public void setId(int id) {
25 | this.id = id;
26 | }
27 | public String getName() {
28 | return name;
29 | }
30 | public void setName(String name) {
31 | this.name = name;
32 | }
33 | public String getLastName() {
34 | return lastName;
35 | }
36 | public void setLastName(String lastName) {
37 | this.lastName = lastName;
38 | }
39 | public String getCourse() {
40 | return course;
41 | }
42 | public void setCourse(String course) {
43 | this.course = course;
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/dayThreeHomeWork/src/dayThreeHomeWork/UserManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayThreeHomeWork/src/dayThreeHomeWork/UserManager.java
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | dayTwoHomeWorkOne
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/bin/dayTwoHomeWorkOne/Course.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayTwoHomeWorkOne/bin/dayTwoHomeWorkOne/Course.class
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/bin/dayTwoHomeWorkOne/CourseManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayTwoHomeWorkOne/bin/dayTwoHomeWorkOne/CourseManager.class
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/bin/dayTwoHomeWorkOne/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayTwoHomeWorkOne/bin/dayTwoHomeWorkOne/Main.class
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/src/dayTwoHomeWorkOne/Course.java:
--------------------------------------------------------------------------------
1 | package dayTwoHomeWorkOne;
2 |
3 | public class Course {
4 |
5 | int id;
6 | String courseName;
7 | String courseInstructor;
8 | int percent;
9 |
10 |
11 | public Course(int id,String courseName,String courseInstructor) {
12 | this.id=id;
13 | this.courseName=courseName;
14 | this.courseInstructor=courseInstructor;
15 | }
16 |
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/src/dayTwoHomeWorkOne/CourseManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayTwoHomeWorkOne/src/dayTwoHomeWorkOne/CourseManager.java
--------------------------------------------------------------------------------
/dayTwoHomeWorkOne/src/dayTwoHomeWorkOne/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/dayTwoHomeWorkOne/src/dayTwoHomeWorkOne/Main.java
--------------------------------------------------------------------------------
/inheritance/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/inheritance/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | inheritance
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/inheritance/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/inheritance/bin/inheritance/CorporateCustomer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/bin/inheritance/CorporateCustomer.class
--------------------------------------------------------------------------------
/inheritance/bin/inheritance/Customer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/bin/inheritance/Customer.class
--------------------------------------------------------------------------------
/inheritance/bin/inheritance/CustomerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/bin/inheritance/CustomerManager.class
--------------------------------------------------------------------------------
/inheritance/bin/inheritance/IndividualCustomer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/bin/inheritance/IndividualCustomer.class
--------------------------------------------------------------------------------
/inheritance/bin/inheritance/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/bin/inheritance/Main.class
--------------------------------------------------------------------------------
/inheritance/bin/inheritance/SendikaCustomer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/bin/inheritance/SendikaCustomer.class
--------------------------------------------------------------------------------
/inheritance/src/inheritance/CorporateCustomer.java:
--------------------------------------------------------------------------------
1 | package inheritance;
2 |
3 | public class CorporateCustomer extends Customer {
4 | String companyName;
5 | String taxNumber;
6 | }
7 |
--------------------------------------------------------------------------------
/inheritance/src/inheritance/Customer.java:
--------------------------------------------------------------------------------
1 | package inheritance;
2 |
3 | public class Customer {
4 | //ortak olanlar
5 | int id;
6 | String customerNumber;
7 | }
8 | //base/super class
--------------------------------------------------------------------------------
/inheritance/src/inheritance/CustomerManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/src/inheritance/CustomerManager.java
--------------------------------------------------------------------------------
/inheritance/src/inheritance/IndividualCustomer.java:
--------------------------------------------------------------------------------
1 | package inheritance;
2 |
3 | public class IndividualCustomer extends Customer{
4 | String firstName;
5 | String lastName;
6 | String nationalIndentity;
7 | }
8 |
--------------------------------------------------------------------------------
/inheritance/src/inheritance/Main.java:
--------------------------------------------------------------------------------
1 | package inheritance;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 | IndividualCustomer engin= new IndividualCustomer();
7 | engin.customerNumber="12345";
8 |
9 |
10 | CorporateCustomer hepsiBurada =new CorporateCustomer();
11 | hepsiBurada.customerNumber="95458";
12 |
13 | SendikaCustomer abc = new SendikaCustomer();
14 | abc.customerNumber="212131";
15 |
16 |
17 | CustomerManager customerManager= new CustomerManager();
18 |
19 | Customer[] customers= {hepsiBurada,engin,abc};
20 |
21 | customerManager.addMultiple(customers);
22 |
23 |
24 | /* customerManager.add(hepsiBurada);
25 | customerManager.add(engin);
26 | customerManager.add(abc);
27 | */
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/inheritance/src/inheritance/SendikaCustomer.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inheritance/src/inheritance/SendikaCustomer.java
--------------------------------------------------------------------------------
/inhetritance2/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/inhetritance2/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | inhetritance2
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/inhetritance2/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/CustomerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/CustomerManager.class
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/DatabaseLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/DatabaseLogger.class
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/EmailLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/EmailLogger.class
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/FileLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/FileLogger.class
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/LogManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/LogManager.class
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/Logger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/Logger.class
--------------------------------------------------------------------------------
/inhetritance2/bin/inhetritance2/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/bin/inhetritance2/Main.class
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/CustomerManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/src/inhetritance2/CustomerManager.java
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/DatabaseLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/src/inhetritance2/DatabaseLogger.java
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/EmailLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/src/inhetritance2/EmailLogger.java
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/FileLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/src/inhetritance2/FileLogger.java
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/LogManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/src/inhetritance2/LogManager.java
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/Logger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/inhetritance2/src/inhetritance2/Logger.java
--------------------------------------------------------------------------------
/inhetritance2/src/inhetritance2/Main.java:
--------------------------------------------------------------------------------
1 | package inhetritance2;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | CustomerManager customerLogger = new CustomerManager();
8 | customerLogger.add(new EmailLogger());
9 | // customerLogger.add(new DatabaseLogger());
10 | // customerLogger.add(new FileLogger());
11 |
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/interfaces/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/interfaces/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | interfaces
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/interfaces/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/Customer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/Customer.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/CustomerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/CustomerManager.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/DatabaseLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/DatabaseLogger.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/EmailLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/EmailLogger.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/FileLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/FileLogger.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/Logger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/Logger.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/Main.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/SmsLogger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/SmsLogger.class
--------------------------------------------------------------------------------
/interfaces/bin/interfaces/Utils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/bin/interfaces/Utils.class
--------------------------------------------------------------------------------
/interfaces/src/interfaces/Customer.java:
--------------------------------------------------------------------------------
1 | package interfaces;
2 |
3 | public class Customer {
4 |
5 | private int id;
6 | private String firstName;
7 | private String lastName;
8 |
9 |
10 | public Customer() {
11 |
12 | }
13 |
14 |
15 | public Customer(int id, String firstName, String lastName) {
16 | super();
17 | this.id = id;
18 | this.firstName = firstName;
19 | this.lastName = lastName;
20 | }
21 |
22 |
23 | public int getId() {
24 | return id;
25 | }
26 |
27 |
28 | public void setId(int id) {
29 | this.id = id;
30 | }
31 |
32 |
33 | public String getFistName() {
34 | return firstName;
35 | }
36 |
37 |
38 | public void setFistName(String firstName) {
39 | this.firstName = firstName;
40 | }
41 |
42 |
43 | public String getLastName() {
44 | return lastName;
45 | }
46 |
47 |
48 | public void setLastName(String lastName) {
49 | this.lastName = lastName;
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/interfaces/src/interfaces/CustomerManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/src/interfaces/CustomerManager.java
--------------------------------------------------------------------------------
/interfaces/src/interfaces/DatabaseLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/src/interfaces/DatabaseLogger.java
--------------------------------------------------------------------------------
/interfaces/src/interfaces/EmailLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/src/interfaces/EmailLogger.java
--------------------------------------------------------------------------------
/interfaces/src/interfaces/FileLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/src/interfaces/FileLogger.java
--------------------------------------------------------------------------------
/interfaces/src/interfaces/Logger.java:
--------------------------------------------------------------------------------
1 | package interfaces;
2 |
3 | public interface Logger {
4 |
5 | void log(String message);
6 |
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/interfaces/src/interfaces/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/src/interfaces/Main.java
--------------------------------------------------------------------------------
/interfaces/src/interfaces/SmsLogger.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/interfaces/src/interfaces/SmsLogger.java
--------------------------------------------------------------------------------
/interfaces/src/interfaces/Utils.java:
--------------------------------------------------------------------------------
1 | package interfaces;
2 |
3 | public class Utils {
4 | public static void runLoggers(Logger[] loggers , String message) {
5 | for(Logger logger: loggers) {
6 | logger.log(message);
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/intro/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/intro/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | intro
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/intro/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/intro/bin/intro/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/intro/bin/intro/Main.class
--------------------------------------------------------------------------------
/intro/src/intro/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/intro/src/intro/Main.java
--------------------------------------------------------------------------------
/nLayeredDemo/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/nLayeredDemo/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | nLayerdDemo
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/nLayeredDemo/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=15
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=15
15 |
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/Main.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/Main.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/business/abstracts/ProductService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/business/abstracts/ProductService.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/business/concretes/ProductManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/business/concretes/ProductManager.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/core/JLoggerManagerAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/core/JLoggerManagerAdapter.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/core/LoggerService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/core/LoggerService.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/dataAccess/abstracts/ProductDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/dataAccess/abstracts/ProductDao.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/dataAccess/concretes/AbcProductDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/dataAccess/concretes/AbcProductDao.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/dataAccess/concretes/HibernateProductDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/dataAccess/concretes/HibernateProductDao.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/entities/abstracts/Entity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/entities/abstracts/Entity.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/entities/concretes/Product.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/entities/concretes/Product.class
--------------------------------------------------------------------------------
/nLayeredDemo/bin/nLayerdDemo/jLogger/JLoggerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/bin/nLayerdDemo/jLogger/JLoggerManager.class
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/Main.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/Main.java
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/business/abstracts/ProductService.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/business/abstracts/ProductService.java
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/business/concretes/ProductManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/business/concretes/ProductManager.java
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/core/JLoggerManagerAdapter.java:
--------------------------------------------------------------------------------
1 | package nLayerdDemo.core;
2 |
3 | import nLayerdDemo.jLogger.JLoggerManager;
4 |
5 | public class JLoggerManagerAdapter implements LoggerService {
6 |
7 | @Override
8 | public void logToSystem(String message) {
9 | JLoggerManager jLoggerManager=new JLoggerManager();
10 | jLoggerManager.log(message);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/core/LoggerService.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/core/LoggerService.java
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/dataAccess/abstracts/ProductDao.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/dataAccess/abstracts/ProductDao.java
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/dataAccess/concretes/AbcProductDao.java:
--------------------------------------------------------------------------------
1 | package nLayerdDemo.dataAccess.concretes;
2 |
3 | import java.util.List;
4 |
5 | import nLayerdDemo.dataAccess.abstracts.ProductDao;
6 | import nLayerdDemo.entities.concretes.Product;
7 |
8 | public class AbcProductDao implements ProductDao{
9 |
10 | @Override
11 | public void add(Product product) {
12 | System.out.println("Abc ile eklendi : " + product.getName());
13 | }
14 |
15 | @Override
16 | public void update(Product product) {
17 | // TODO Auto-generated method stub
18 |
19 | }
20 |
21 | @Override
22 | public void delete(Product product) {
23 | // TODO Auto-generated method stub
24 |
25 | }
26 |
27 | @Override
28 | public Product get(int id) {
29 | // TODO Auto-generated method stub
30 | return null;
31 | }
32 |
33 | @Override
34 | public List getAll() {
35 | // TODO Auto-generated method stub
36 | return null;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/dataAccess/concretes/HibernateProductDao.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/dataAccess/concretes/HibernateProductDao.java
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/entities/abstracts/Entity.java:
--------------------------------------------------------------------------------
1 | package nLayerdDemo.entities.abstracts;
2 |
3 | public interface Entity {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/entities/concretes/Product.java:
--------------------------------------------------------------------------------
1 | package nLayerdDemo.entities.concretes;
2 |
3 | import nLayerdDemo.entities.abstracts.Entity;
4 |
5 | public class Product implements Entity{
6 | private int id ;
7 | private int categoryId;
8 | private String name;
9 | private double unitPrice;
10 | private int unitInStock;
11 |
12 | public Product() {
13 | }
14 |
15 | public Product(int id, int categoryId, String name, double unitPrice, int unitInStock) {
16 | super();
17 | this.id = id;
18 | this.categoryId = categoryId;
19 | this.name = name;
20 | this.unitPrice = unitPrice;
21 | this.unitInStock = unitInStock;
22 | }
23 |
24 | public int getId() {
25 | return id;
26 | }
27 |
28 | public void setId(int id) {
29 | this.id = id;
30 | }
31 |
32 | public int getCategoryId() {
33 | return categoryId;
34 | }
35 |
36 | public void setCategoryId(int categoryId) {
37 | this.categoryId = categoryId;
38 | }
39 |
40 | public String getName() {
41 | return name;
42 | }
43 |
44 | public void setName(String name) {
45 | this.name = name;
46 | }
47 |
48 | public double getUnitPrice() {
49 | return unitPrice;
50 | }
51 |
52 | public void setUnitPrice(double unitPrice) {
53 | this.unitPrice = unitPrice;
54 | }
55 |
56 | public int getUnitInStock() {
57 | return unitInStock;
58 | }
59 |
60 | public void setUnitInStock(int unitInStock) {
61 | this.unitInStock = unitInStock;
62 | }
63 |
64 |
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/nLayeredDemo/src/nLayerdDemo/jLogger/JLoggerManager.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nLayeredDemo/src/nLayerdDemo/jLogger/JLoggerManager.java
--------------------------------------------------------------------------------
/nortwind/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**/target/
5 | !**/src/test/**/target/
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 | !**/src/main/**/build/
30 | !**/src/test/**/build/
31 |
32 | ### VS Code ###
33 | .vscode/
34 |
--------------------------------------------------------------------------------
/nortwind/.mvn/wrapper/MavenWrapperDownloader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-present the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | import java.net.*;
17 | import java.io.*;
18 | import java.nio.channels.*;
19 | import java.util.Properties;
20 |
21 | public class MavenWrapperDownloader {
22 |
23 | private static final String WRAPPER_VERSION = "0.5.6";
24 | /**
25 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
26 | */
27 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
28 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
29 |
30 | /**
31 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
32 | * use instead of the default one.
33 | */
34 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
35 | ".mvn/wrapper/maven-wrapper.properties";
36 |
37 | /**
38 | * Path where the maven-wrapper.jar will be saved to.
39 | */
40 | private static final String MAVEN_WRAPPER_JAR_PATH =
41 | ".mvn/wrapper/maven-wrapper.jar";
42 |
43 | /**
44 | * Name of the property which should be used to override the default download url for the wrapper.
45 | */
46 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
47 |
48 | public static void main(String args[]) {
49 | System.out.println("- Downloader started");
50 | File baseDirectory = new File(args[0]);
51 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
52 |
53 | // If the maven-wrapper.properties exists, read it and check if it contains a custom
54 | // wrapperUrl parameter.
55 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
56 | String url = DEFAULT_DOWNLOAD_URL;
57 | if(mavenWrapperPropertyFile.exists()) {
58 | FileInputStream mavenWrapperPropertyFileInputStream = null;
59 | try {
60 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
61 | Properties mavenWrapperProperties = new Properties();
62 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
63 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
64 | } catch (IOException e) {
65 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
66 | } finally {
67 | try {
68 | if(mavenWrapperPropertyFileInputStream != null) {
69 | mavenWrapperPropertyFileInputStream.close();
70 | }
71 | } catch (IOException e) {
72 | // Ignore ...
73 | }
74 | }
75 | }
76 | System.out.println("- Downloading from: " + url);
77 |
78 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
79 | if(!outputFile.getParentFile().exists()) {
80 | if(!outputFile.getParentFile().mkdirs()) {
81 | System.out.println(
82 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
83 | }
84 | }
85 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
86 | try {
87 | downloadFileFromURL(url, outputFile);
88 | System.out.println("Done");
89 | System.exit(0);
90 | } catch (Throwable e) {
91 | System.out.println("- Error downloading");
92 | e.printStackTrace();
93 | System.exit(1);
94 | }
95 | }
96 |
97 | private static void downloadFileFromURL(String urlString, File destination) throws Exception {
98 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
99 | String username = System.getenv("MVNW_USERNAME");
100 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
101 | Authenticator.setDefault(new Authenticator() {
102 | @Override
103 | protected PasswordAuthentication getPasswordAuthentication() {
104 | return new PasswordAuthentication(username, password);
105 | }
106 | });
107 | }
108 | URL website = new URL(urlString);
109 | ReadableByteChannel rbc;
110 | rbc = Channels.newChannel(website.openStream());
111 | FileOutputStream fos = new FileOutputStream(destination);
112 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
113 | fos.close();
114 | rbc.close();
115 | }
116 |
117 | }
118 |
--------------------------------------------------------------------------------
/nortwind/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/meryemtnkt/javaCamp/a0e9937014f7848ad1c10a16bb2601d3868e9689/nortwind/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/nortwind/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/nortwind/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/nortwind/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | org.springframework.boot
7 | spring-boot-starter-parent
8 | 2.5.1
9 |
10 |
11 | kodlamaio
12 | nortwind
13 | 0.0.1-SNAPSHOT
14 | nortwind
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.springframework.boot
42 | spring-boot-starter-test
43 | test
44 |
45 |
46 | org.projectlombok
47 | lombok
48 | true
49 | provided
50 |
51 |
52 | io.springfox
53 | springfox-swagger2
54 | 3.0.0
55 |
56 |
57 | io.springfox
58 | springfox-swagger-ui
59 | 2.9.2
60 |
61 |
62 | org.springframework.boot
63 | spring-boot-starter-validation
64 |
65 |
66 |
67 |
68 |
69 |
70 | org.springframework.boot
71 | spring-boot-maven-plugin
72 |
73 |
74 |
75 | org.projectlombok
76 | lombok
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/nortwind/src/main/java/kodlamaio/nortwind/NortwindApplication.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.nortwind;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.context.annotation.Bean;
6 |
7 | import springfox.documentation.builders.PathSelectors;
8 | import springfox.documentation.builders.RequestHandlerSelectors;
9 | import springfox.documentation.spi.DocumentationType;
10 | import springfox.documentation.spring.web.plugins.Docket;
11 | import springfox.documentation.swagger2.annotations.EnableSwagger2;
12 |
13 | @SpringBootApplication
14 | @EnableSwagger2
15 | public class NortwindApplication {
16 |
17 | public static void main(String[] args) {
18 | SpringApplication.run(NortwindApplication.class, args);
19 | }
20 |
21 |
22 | @Bean
23 | public Docket api() {
24 | return new Docket(DocumentationType.SWAGGER_2)
25 | .select()
26 | .apis(RequestHandlerSelectors.basePackage("kodlamaio.nortwind"))
27 | .build();
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/nortwind/src/main/java/kodlamaio/nortwind/api/controllers/ProductsController.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.nortwind.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.CrossOrigin;
7 | import org.springframework.web.bind.annotation.GetMapping;
8 | import org.springframework.web.bind.annotation.PostMapping;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RequestParam;
12 | import org.springframework.web.bind.annotation.RestController;
13 |
14 | import kodlamaio.nortwind.business.absracts.ProductService;
15 | import kodlamaio.nortwind.core.utilities.result.DataResult;
16 | import kodlamaio.nortwind.core.utilities.result.Result;
17 | import kodlamaio.nortwind.entities.concretes.Product;
18 | import kodlamaio.nortwind.entities.dtos.ProductWithCategoryDto;
19 |
20 | @RestController
21 | @RequestMapping("/api/products")
22 | @CrossOrigin
23 | public class ProductsController {
24 |
25 |
26 | private ProductService productService;
27 |
28 | @Autowired
29 | public ProductsController(ProductService productService) {
30 | super();
31 | this.productService = productService;
32 | }
33 |
34 | @GetMapping("/getall")
35 | public DataResult> getAll(){
36 | return this.productService.gelAll();
37 |
38 | }
39 |
40 | @PostMapping("/add")
41 | public Result add(@RequestBody Product product) {
42 | return this.productService.add(product);
43 |
44 | }
45 |
46 |
47 |
48 | @GetMapping("/getByProductName")
49 | public DataResult getByProductName(@RequestParam String productName){
50 | return this.productService.getByProductName(productName);
51 | }
52 |
53 | @GetMapping("/getByproductNameAndCategoryId")
54 | public DataResult getByProductNameAndCategoryId(@RequestParam("productName") String productName,@RequestParam("categoryId") int categoryId){
55 | return this.productService.getByProductNameAndCategoryId(productName, categoryId);
56 | }
57 |
58 | @GetMapping("/getByProductNameContains")
59 | public DataResult> getByProductNameContains(@RequestParam String productName){
60 | return this.productService.getByProductNameContains(productName);
61 |
62 | }
63 |
64 | @GetMapping("/getAllByPage")
65 | public DataResult> gelAll(int pageNo,int pageSize){
66 | return this.productService.gelAll(pageNo,pageSize);
67 |
68 | }
69 |
70 | @GetMapping("/getAllDesc")
71 | public DataResult> getAllSorted() {
72 | return this.productService.getAllSorted();
73 | }
74 | @GetMapping("/getProductWithCategoryDetails")
75 | public DataResult> getProductWithCategoryDetails(){
76 | return this.productService.getProductWithCategoryDetails();
77 | }
78 | }
79 |
80 |
81 | //kodlama.io/api/products
--------------------------------------------------------------------------------
/nortwind/src/main/java/kodlamaio/nortwind/api/controllers/UsersController.java:
--------------------------------------------------------------------------------
1 | package kodlamaio.nortwind.api.controllers;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | import javax.validation.Valid;
7 |
8 | import org.springframework.beans.factory.annotation.Autowired;
9 | import org.springframework.http.HttpStatus;
10 | import org.springframework.http.ResponseEntity;
11 | import org.springframework.validation.FieldError;
12 | import org.springframework.web.bind.MethodArgumentNotValidException;
13 | import org.springframework.web.bind.annotation.ExceptionHandler;
14 | import org.springframework.web.bind.annotation.PostMapping;
15 | import org.springframework.web.bind.annotation.RequestBody;
16 | import org.springframework.web.bind.annotation.RequestMapping;
17 | import org.springframework.web.bind.annotation.ResponseStatus;
18 | import org.springframework.web.bind.annotation.RestController;
19 |
20 | import kodlamaio.nortwind.business.absracts.UserService;
21 | import kodlamaio.nortwind.core.entities.User;
22 | import kodlamaio.nortwind.core.utilities.result.ErrorDataResult;
23 |
24 | @RestController
25 | @RequestMapping(value="/api/users")
26 | public class UsersController {
27 |
28 | private UserService userService;
29 |
30 | @Autowired
31 | public UsersController(UserService userService) {
32 | super();
33 | this.userService = userService;
34 | }
35 |
36 | @PostMapping(value="/add")
37 | public ResponseEntity> add(@Valid @RequestBody User user) {
38 | return ResponseEntity.ok(this.userService.add(user));
39 |
40 | }
41 |
42 |
43 | //global hata yakalama
44 | //gloabl.ex handler
45 |
46 | @ExceptionHandler(MethodArgumentNotValidException.class)
47 | @ResponseStatus(HttpStatus.BAD_REQUEST)
48 | public ErrorDataResult