Package com.soffid.iam.service
Interface TenantService
-
public interface TenantService
Service TenantService
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTenantServer(Tenant tenant, String server)
Operation addTenantServer Adds a server to a tenantTenant
create(Tenant tenant)
Operation create Create a new tenantvoid
disablePermission(Tenant tenant, String permission)
Operation disablePermission Disables a permission on a tenantvoid
enablePermission(Tenant tenant, String permission)
Operation enablePermission Enables a permission on a tenantvoid
exportTenant(Tenant tenant, OutputStream out)
Operation exportTenant Exports tenant to a fileList<Tenant>
find(TenantCriteria criteria)
Operation find Find tenantsList<String>
getDisabledPermissions(Tenant tenant)
Operation getDisabledPermissions Gets the list of disabled permissions for a tenantTenant
getMasterTenant()
Operation getMasterTenant Gets master tenantTenant
getTenant(Long id)
Operation getTenant Finds a tenant by name.Tenant
getTenant(String name)
Operation getTenant Finds a tenant by name.List<String>
getTenantServers(Tenant tenant)
Operation getTenantServers Gets the list of servers for a tenantTenant
importTenant(InputStream in)
Operation importTenant Ipmorts a tenant to a fileCollection<Tenant>
listTenants()
Operation listTenants List allowed tenant.void
remove(Tenant tenant)
Operation remove Remove at tenantvoid
removeTenantServer(Tenant tenant, String server)
Operation removeTenantServer Removes a server for a tenantTenant
update(Tenant tenant)
Operation update Updates a tenant
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
importTenant
Tenant importTenant(InputStream in) throws InternalErrorException
Operation importTenant Ipmorts a tenant to a file- Parameters:
in
-- Returns:
- Throws:
InternalErrorException
-
create
Tenant create(Tenant tenant) throws InternalErrorException
Operation create Create a new tenant- Parameters:
tenant
-- Returns:
- Throws:
InternalErrorException
-
getMasterTenant
Tenant getMasterTenant() throws InternalErrorException
Operation getMasterTenant Gets master tenant- Returns:
- Throws:
InternalErrorException
-
getTenant
Tenant getTenant(Long id) throws InternalErrorException
Operation getTenant Finds a tenant by name. Used mainly internally- Parameters:
id
-- Returns:
- Throws:
InternalErrorException
-
getTenant
Tenant getTenant(String name) throws InternalErrorException
Operation getTenant Finds a tenant by name. Used mainly internally- Parameters:
name
-- Returns:
- Throws:
InternalErrorException
-
update
Tenant update(Tenant tenant) throws InternalErrorException
Operation update Updates a tenant- Parameters:
tenant
-- Returns:
- Throws:
InternalErrorException
-
listTenants
Collection<Tenant> listTenants() throws InternalErrorException
Operation listTenants List allowed tenant. Open to anybody, as everybody can query its own tenant, at least- Returns:
- Throws:
InternalErrorException
-
find
List<Tenant> find(TenantCriteria criteria) throws InternalErrorException
Operation find Find tenants- Parameters:
criteria
-- Returns:
- Throws:
InternalErrorException
-
getDisabledPermissions
List<String> getDisabledPermissions(Tenant tenant) throws InternalErrorException
Operation getDisabledPermissions Gets the list of disabled permissions for a tenant- Parameters:
tenant
-- Returns:
- Throws:
InternalErrorException
-
getTenantServers
List<String> getTenantServers(Tenant tenant) throws InternalErrorException
Operation getTenantServers Gets the list of servers for a tenant- Parameters:
tenant
-- Returns:
- Throws:
InternalErrorException
-
addTenantServer
void addTenantServer(Tenant tenant, String server) throws InternalErrorException
Operation addTenantServer Adds a server to a tenant- Parameters:
tenant
-server
-- Throws:
InternalErrorException
-
disablePermission
void disablePermission(Tenant tenant, String permission) throws InternalErrorException
Operation disablePermission Disables a permission on a tenant- Parameters:
tenant
-permission
-- Throws:
InternalErrorException
-
enablePermission
void enablePermission(Tenant tenant, String permission) throws InternalErrorException
Operation enablePermission Enables a permission on a tenant- Parameters:
tenant
-permission
-- Throws:
InternalErrorException
-
remove
void remove(Tenant tenant) throws InternalErrorException
Operation remove Remove at tenant- Parameters:
tenant
-- Throws:
InternalErrorException
-
removeTenantServer
void removeTenantServer(Tenant tenant, String server) throws InternalErrorException
Operation removeTenantServer Removes a server for a tenant- Parameters:
tenant
-server
-- Throws:
InternalErrorException
-
exportTenant
void exportTenant(Tenant tenant, OutputStream out) throws InternalErrorException
Operation exportTenant Exports tenant to a file- Parameters:
tenant
-out
-- Throws:
InternalErrorException
-
-