Skip to content

Commit

Permalink
Moved Roles to its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSusana committed Aug 9, 2024
1 parent 91ab01e commit 96da819
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 18 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/com/elepy/Elepy.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import com.elepy.auth.methods.persistedtokens.PersistedTokenGenerator;
import com.elepy.auth.methods.persistedtokens.Token;
import com.elepy.auth.methods.tokens.TokenAuthority;
import com.elepy.auth.roles.Role;
import com.elepy.auth.roles.RolesService;
import com.elepy.auth.users.User;
import com.elepy.auth.users.UserCenter;
import com.elepy.configuration.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.elepy.auth;
package com.elepy.auth.roles;

import com.elepy.annotations.*;
import com.elepy.auth.roles.*;
import com.elepy.query.SortOption;
import com.elepy.id.SlugIdentityProvider;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/com/elepy/auth/roles/RolesCreate.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.elepy.auth.roles;

import com.elepy.auth.RolesService;
import com.elepy.auth.Role;
import com.elepy.crud.Crud;
import com.elepy.handlers.SimpleCreate;
import com.elepy.http.Request;
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/com/elepy/auth/roles/RolesDelete.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.elepy.auth.roles;

import com.elepy.auth.RolesService;
import com.elepy.auth.Role;
import com.elepy.handlers.DefaultDelete;
import com.elepy.handlers.HandlerContext;
import jakarta.inject.Inject;
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/com/elepy/auth/roles/RolesFind.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.elepy.auth.roles;

import com.elepy.auth.RolesService;
import com.elepy.auth.Role;
import com.elepy.crud.Crud;
import com.elepy.handlers.DefaultFindMany;
import com.elepy.http.HttpContext;
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/com/elepy/auth/roles/RolesFindOne.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.elepy.auth.roles;

import com.elepy.auth.RolesService;
import com.elepy.auth.Role;
import com.elepy.crud.Crud;
import com.elepy.handlers.DefaultFindOne;
import com.elepy.http.Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.elepy.auth;
package com.elepy.auth.roles;

import com.elepy.annotations.PredefinedRole;
import com.elepy.auth.permissions.DefaultPermissions;
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/com/elepy/auth/roles/RolesUpdate.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.elepy.auth.roles;

import com.elepy.auth.RolesService;
import com.elepy.auth.Role;
import com.elepy.handlers.DefaultUpdate;
import com.elepy.handlers.HandlerContext;
import jakarta.inject.Inject;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/elepy/auth/users/User.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.elepy.auth.users;

import com.elepy.annotations.*;
import com.elepy.auth.Role;
import com.elepy.auth.roles.Role;
import com.elepy.query.SortOption;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Pattern;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/elepy/auth/users/UserCenter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.elepy.auth.users;

import com.elepy.auth.AuthenticatedCredentials;
import com.elepy.auth.RolesService;
import com.elepy.auth.roles.RolesService;
import com.elepy.crud.Crud;
import com.elepy.utils.StringUtils;
import jakarta.inject.Inject;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/elepy/auth/users/UserCreate.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.elepy.auth.users;

import com.elepy.auth.RolesService;
import com.elepy.auth.roles.RolesService;
import com.elepy.crud.Crud;
import com.elepy.evaluators.DefaultIntegrityEvaluator;
import com.elepy.evaluators.EvaluationType;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/elepy/auth/users/UserDelete.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.elepy.auth.users;

import com.elepy.auth.RolesService;
import com.elepy.auth.roles.RolesService;
import com.elepy.exceptions.ElepyException;
import com.elepy.exceptions.Message;
import com.elepy.handlers.ActionHandler;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/elepy/auth/users/UserUpdate.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.elepy.auth.users;

import com.elepy.auth.RolesService;
import com.elepy.auth.roles.RolesService;
import com.elepy.crud.Crud;
import com.elepy.evaluators.DefaultIntegrityEvaluator;
import com.elepy.evaluators.DefaultObjectUpdateEvaluator;
Expand Down

0 comments on commit 96da819

Please sign in to comment.