public abstract class ChannelManagementBase extends Object implements ChannelManagement
Spring Service base class for
com.communote.server.core.api.security.ssl.ChannelManagement
, provides
access to all services and entities referenced by this service.
ChannelManagement
Constructor and Description |
---|
ChannelManagementBase() |
Modifier and Type | Method and Description |
---|---|
protected ChannelConfigurationDao |
getChannelConfigurationDao()
Gets the reference to
channelConfiguration 's DAO. |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set, otherwise returns
null . |
protected abstract Boolean |
handleIsForceSsl()
Performs the core logic for
isForceSsl() |
protected abstract Boolean |
handleIsForceSsl(ChannelType channelType)
Performs the core logic for
isForceSsl(com.communote.server.model.security.ChannelType) |
protected abstract List<ChannelConfiguration> |
handleLoadAll()
Performs the core logic for
loadAll() |
protected abstract void |
handleUpdate(List<ChannelConfiguration> channelConfigurations)
Performs the core logic for
#update(java.util.List |
Boolean |
isForceSsl()
Check if SSL is required for the current used channel.
|
Boolean |
isForceSsl(ChannelType channelType)
Check if SSL is required for the requested channel.
|
List<ChannelConfiguration> |
loadAll()
Loads all channel configurations for a client.
|
void |
setChannelConfigurationDao(ChannelConfigurationDao channelConfigurationDao)
Sets the reference to
channelConfiguration 's DAO. |
void |
update(List<ChannelConfiguration> channelConfigurations)
Updates the channel configruations in the database.
|
public void setChannelConfigurationDao(ChannelConfigurationDao channelConfigurationDao)
channelConfiguration
's DAO.protected ChannelConfigurationDao getChannelConfigurationDao()
channelConfiguration
's DAO.public Boolean isForceSsl()
ChannelManagement
Check if SSL is required for the current used channel.
isForceSsl
in interface ChannelManagement
ChannelManagement.isForceSsl()
protected abstract Boolean handleIsForceSsl()
isForceSsl()
public Boolean isForceSsl(ChannelType channelType)
ChannelManagement
Check if SSL is required for the requested channel.
isForceSsl
in interface ChannelManagement
ChannelManagement.isForceSsl(com.communote.server.model.security.ChannelType)
protected abstract Boolean handleIsForceSsl(ChannelType channelType)
isForceSsl(com.communote.server.model.security.ChannelType)
public List<ChannelConfiguration> loadAll()
ChannelManagement
Loads all channel configurations for a client.
loadAll
in interface ChannelManagement
ChannelManagement.loadAll()
protected abstract List<ChannelConfiguration> handleLoadAll()
loadAll()
public void update(List<ChannelConfiguration> channelConfigurations)
ChannelManagement
Updates the channel configruations in the database. The process starts with removing all existing records before the new records are created. At last the channel configuration is invalidated.
update
in interface ChannelManagement
com.communote.server.core.api.security.ssl.ChannelManagement#update(java.util.List
)
protected abstract void handleUpdate(List<ChannelConfiguration> channelConfigurations)
#update(java.util.List)
protected Principal getPrincipal()
principal
if one has been set, otherwise returns
null
.Copyright © 2019 Communote team. All rights reserved.