From 39bce4f3f6c2d19d650ea71451c011b8c8f42f77 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Sat, 31 Aug 2024 14:38:40 +0700 Subject: [PATCH] Create CoreRepositoryImpl.java --- main/repository/impl/CoreRepositoryImpl.java | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 main/repository/impl/CoreRepositoryImpl.java diff --git a/main/repository/impl/CoreRepositoryImpl.java b/main/repository/impl/CoreRepositoryImpl.java new file mode 100644 index 0000000..667e1a6 --- /dev/null +++ b/main/repository/impl/CoreRepositoryImpl.java @@ -0,0 +1,34 @@ +package com.nexusinfinitycore.main.repository.impl; + +import com.nexusinfinitycore.main.repository.CoreRepository; +import org.springframework.stereotype.Repository; + +import java.util.ArrayList; +import java.util.List; + +@Repository +public class CoreRepositoryImpl implements CoreRepository { + private List data = new ArrayList<>(); + + @Override + public List getData() { + return data; + } + + @Override + public void storeData(String data) { + this.data.add(data); + } + + @Override + public boolean authenticate(String username, String password) { + // Implement authentication logic + return true; + } + + @Override + public boolean authorize(String role, String resource) { + // Implement authorization logic + return true; + } +}