Package io.vlingo.auth.infra.persistence
Class InMemoryPermissionRepository
- java.lang.Object
-
- io.vlingo.auth.infra.persistence.InMemoryPermissionRepository
-
- All Implemented Interfaces:
PermissionRepository
public class InMemoryPermissionRepository extends java.lang.Object implements PermissionRepository
-
-
Constructor Summary
Constructors Constructor Description InMemoryPermissionRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
keyFor(TenantId tenantId)
protected java.lang.String
keyFor(TenantId tenantId, java.lang.String groupName)
Permission
permissionOf(TenantId tenantId, java.lang.String permissionName)
java.util.Collection<Permission>
permissionsOf(TenantId tenantId)
void
save(Permission permission)
-
-
-
Method Detail
-
permissionOf
public Permission permissionOf(TenantId tenantId, java.lang.String permissionName)
- Specified by:
permissionOf
in interfacePermissionRepository
-
permissionsOf
public java.util.Collection<Permission> permissionsOf(TenantId tenantId)
- Specified by:
permissionsOf
in interfacePermissionRepository
-
save
public void save(Permission permission)
- Specified by:
save
in interfacePermissionRepository
-
keyFor
protected java.lang.String keyFor(TenantId tenantId)
-
keyFor
protected java.lang.String keyFor(TenantId tenantId, java.lang.String groupName)
-
-