Skip to content

Commit

Permalink
Create CoreRepositoryImpl.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 31, 2024
1 parent 8c713eb commit 39bce4f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions main/repository/impl/CoreRepositoryImpl.java
Original file line number Diff line number Diff line change
@@ -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<String> data = new ArrayList<>();

@Override
public List<String> 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;
}
}

0 comments on commit 39bce4f

Please sign in to comment.