Package com.soffid.iam.service
Class PamPolicyServiceBase
- java.lang.Object
-
- com.soffid.iam.service.PamPolicyServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.PamPolicyService
- Direct Known Subclasses:
PamPolicyServiceImpl
public abstract class PamPolicyServiceBase extends Object implements com.soffid.iam.service.PamPolicyService
Spring Service base class for
see com.soffid.iam.service.PamPolicyServicecom.soffid.iam.service.PamPolicyService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description PamPolicyServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
applyRule(String sessionKey, String policyName, String ruleName)
com.soffid.iam.api.PamPolicy
createPolicy(com.soffid.iam.api.PamPolicy policy)
com.soffid.iam.api.PamRule
createRule(com.soffid.iam.api.PamRule rule)
void
deletePolicy(com.soffid.iam.api.PamPolicy policy)
void
deleteRule(com.soffid.iam.api.PamRule rule)
List<com.soffid.iam.api.PamAction>
findPolicyActions(com.soffid.iam.api.PamPolicy policy)
com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamPolicy>
findPolicyByJsonQuery(String text, String query, Integer first, Integer pageSize)
com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamPolicy>
findPolicyByJsonQueryAsync(String text, String query)
com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamRule>
findRuleByJsonQuery(String text, String query, Integer first, Integer pageSize)
com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamRule>
findRuleByJsonQueryAsync(String text, String query)
AccessLogEntityDao
getAccessLogEntityDao()
Gets reference toregistreAccesEntityDao
.AccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.com.soffid.iam.service.AsyncRunnerService
getAsyncRunnerService()
Gets reference toasyncRunnerService
.AuditEntityDao
getAuditEntityDao()
Gets reference toauditoriaEntityDao
.com.soffid.iam.service.DispatcherService
getDispatcherService()
Gets reference todispatcherService
.HostEntityDao
getHostEntityDao()
Gets reference tomaquinaEntityDao
.com.soffid.iam.service.IssueService
getIssueService()
Gets reference toissueService
.JumpServerEntityDao
getJumpServerEntityDao()
Gets reference tojumpServerEntityDao
.JumpServerGroupEntityDao
getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.MailService
getMailService()
Gets reference tomailService
.PamActionEntityDao
getPamActionEntityDao()
Gets reference topamActionEntityDao
.PamPolicyEntityDao
getPamPolicyEntityDao()
Gets reference topamPolicyEntityDao
.PamRuleEntityDao
getPamRuleEntityDao()
Gets reference topamRuleEntityDao
.PamSecurityHandlerService
getPamSecurityHandlerService()
Gets reference topamSecurityHandlerService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ServiceEntityDao
getServiceEntityDao()
Gets reference toserveiEntityDao
.SessionEntityDao
getSessionEntityDao()
Gets reference tosessioEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract void
handleApplyRule(String sessionKey, String policyName, String ruleName)
protected abstract com.soffid.iam.api.PamPolicy
handleCreatePolicy(com.soffid.iam.api.PamPolicy policy)
protected abstract com.soffid.iam.api.PamRule
handleCreateRule(com.soffid.iam.api.PamRule rule)
protected abstract void
handleDeletePolicy(com.soffid.iam.api.PamPolicy policy)
protected abstract void
handleDeleteRule(com.soffid.iam.api.PamRule rule)
protected abstract List<com.soffid.iam.api.PamAction>
handleFindPolicyActions(com.soffid.iam.api.PamPolicy policy)
protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamPolicy>
handleFindPolicyByJsonQuery(String text, String query, Integer first, Integer pageSize)
protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamPolicy>
handleFindPolicyByJsonQueryAsync(String text, String query)
protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamRule>
handleFindRuleByJsonQuery(String text, String query, Integer first, Integer pageSize)
protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamRule>
handleFindRuleByJsonQueryAsync(String text, String query)
protected abstract com.soffid.iam.api.PamAction
handleUpdateAction(com.soffid.iam.api.PamAction action)
protected abstract com.soffid.iam.api.PamPolicy
handleUpdatePolicy(com.soffid.iam.api.PamPolicy policy)
protected abstract com.soffid.iam.api.PamRule
handleUpdateRule(com.soffid.iam.api.PamRule rule)
void
setAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)
Sets reference toregistreAccesEntityDao
.void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService
.void
setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.void
setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService
.void
setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.void
setIssueService(com.soffid.iam.service.IssueService issueService)
Sets reference toissueService
.void
setJumpServerEntityDao(JumpServerEntityDao jumpServerEntityDao)
Sets reference tojumpServerEntityDao
.void
setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.void
setMailService(MailService mailService)
Sets reference tomailService
.void
setPamActionEntityDao(PamActionEntityDao pamActionEntityDao)
Sets reference topamActionEntityDao
.void
setPamPolicyEntityDao(PamPolicyEntityDao pamPolicyEntityDao)
Sets reference topamPolicyEntityDao
.void
setPamRuleEntityDao(PamRuleEntityDao pamRuleEntityDao)
Sets reference topamRuleEntityDao
.void
setPamSecurityHandlerService(PamSecurityHandlerService pamSecurityHandlerService)
Sets reference topamSecurityHandlerService
.void
setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.void
setSessionEntityDao(SessionEntityDao sessioEntityDao)
Sets reference tosessioEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.com.soffid.iam.api.PamAction
updateAction(com.soffid.iam.api.PamAction action)
com.soffid.iam.api.PamPolicy
updatePolicy(com.soffid.iam.api.PamPolicy policy)
com.soffid.iam.api.PamRule
updateRule(com.soffid.iam.api.PamRule rule)
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao
.
-
setAsyncRunnerService
public void setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService
.
-
getAsyncRunnerService
public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
Gets reference toasyncRunnerService
.
-
setAuditEntityDao
public void setAuditEntityDao(AuditEntityDao auditoriaEntityDao)
Sets reference toauditoriaEntityDao
.
-
getAuditEntityDao
public AuditEntityDao getAuditEntityDao()
Gets reference toauditoriaEntityDao
.
-
setDispatcherService
public void setDispatcherService(com.soffid.iam.service.DispatcherService dispatcherService)
Sets reference todispatcherService
.
-
getDispatcherService
public com.soffid.iam.service.DispatcherService getDispatcherService()
Gets reference todispatcherService
.
-
setIssueService
public void setIssueService(com.soffid.iam.service.IssueService issueService)
Sets reference toissueService
.
-
getIssueService
public com.soffid.iam.service.IssueService getIssueService()
Gets reference toissueService
.
-
setJumpServerEntityDao
public void setJumpServerEntityDao(JumpServerEntityDao jumpServerEntityDao)
Sets reference tojumpServerEntityDao
.
-
getJumpServerEntityDao
public JumpServerEntityDao getJumpServerEntityDao()
Gets reference tojumpServerEntityDao
.
-
setJumpServerGroupEntityDao
public void setJumpServerGroupEntityDao(JumpServerGroupEntityDao jumpServerGroupEntityDao)
Sets reference tojumpServerGroupEntityDao
.
-
getJumpServerGroupEntityDao
public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
Gets reference tojumpServerGroupEntityDao
.
-
setMailService
public void setMailService(MailService mailService)
Sets reference tomailService
.
-
getMailService
public MailService getMailService()
Gets reference tomailService
.
-
setHostEntityDao
public void setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.
-
getHostEntityDao
public HostEntityDao getHostEntityDao()
Gets reference tomaquinaEntityDao
.
-
setPamActionEntityDao
public void setPamActionEntityDao(PamActionEntityDao pamActionEntityDao)
Sets reference topamActionEntityDao
.
-
getPamActionEntityDao
public PamActionEntityDao getPamActionEntityDao()
Gets reference topamActionEntityDao
.
-
setPamPolicyEntityDao
public void setPamPolicyEntityDao(PamPolicyEntityDao pamPolicyEntityDao)
Sets reference topamPolicyEntityDao
.
-
getPamPolicyEntityDao
public PamPolicyEntityDao getPamPolicyEntityDao()
Gets reference topamPolicyEntityDao
.
-
setPamRuleEntityDao
public void setPamRuleEntityDao(PamRuleEntityDao pamRuleEntityDao)
Sets reference topamRuleEntityDao
.
-
getPamRuleEntityDao
public PamRuleEntityDao getPamRuleEntityDao()
Gets reference topamRuleEntityDao
.
-
setPamSecurityHandlerService
public void setPamSecurityHandlerService(PamSecurityHandlerService pamSecurityHandlerService)
Sets reference topamSecurityHandlerService
.
-
getPamSecurityHandlerService
public PamSecurityHandlerService getPamSecurityHandlerService()
Gets reference topamSecurityHandlerService
.
-
setAccessLogEntityDao
public void setAccessLogEntityDao(AccessLogEntityDao registreAccesEntityDao)
Sets reference toregistreAccesEntityDao
.
-
getAccessLogEntityDao
public AccessLogEntityDao getAccessLogEntityDao()
Gets reference toregistreAccesEntityDao
.
-
setServiceEntityDao
public void setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.
-
getServiceEntityDao
public ServiceEntityDao getServiceEntityDao()
Gets reference toserveiEntityDao
.
-
setSessionEntityDao
public void setSessionEntityDao(SessionEntityDao sessioEntityDao)
Sets reference tosessioEntityDao
.
-
getSessionEntityDao
public SessionEntityDao getSessionEntityDao()
Gets reference tosessioEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
findPolicyByJsonQueryAsync
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamPolicy> findPolicyByJsonQueryAsync(String text, String query) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findPolicyByJsonQueryAsync
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindPolicyByJsonQueryAsync
protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamPolicy> handleFindPolicyByJsonQueryAsync(String text, String query) throws Exception
- Throws:
Exception
-
findRuleByJsonQueryAsync
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamRule> findRuleByJsonQueryAsync(String text, String query) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findRuleByJsonQueryAsync
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRuleByJsonQueryAsync
protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamRule> handleFindRuleByJsonQueryAsync(String text, String query) throws Exception
- Throws:
Exception
-
findPolicyByJsonQuery
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamPolicy> findPolicyByJsonQuery(String text, String query, Integer first, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findPolicyByJsonQuery
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindPolicyByJsonQuery
protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamPolicy> handleFindPolicyByJsonQuery(String text, String query, Integer first, Integer pageSize) throws Exception
- Throws:
Exception
-
findRuleByJsonQuery
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamRule> findRuleByJsonQuery(String text, String query, Integer first, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findRuleByJsonQuery
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindRuleByJsonQuery
protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamRule> handleFindRuleByJsonQuery(String text, String query, Integer first, Integer pageSize) throws Exception
- Throws:
Exception
-
updateAction
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PamAction updateAction(com.soffid.iam.api.PamAction action) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateAction
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateAction
protected abstract com.soffid.iam.api.PamAction handleUpdateAction(com.soffid.iam.api.PamAction action) throws Exception
- Throws:
Exception
-
createPolicy
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PamPolicy createPolicy(com.soffid.iam.api.PamPolicy policy) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createPolicy
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreatePolicy
protected abstract com.soffid.iam.api.PamPolicy handleCreatePolicy(com.soffid.iam.api.PamPolicy policy) throws Exception
- Throws:
Exception
-
updatePolicy
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PamPolicy updatePolicy(com.soffid.iam.api.PamPolicy policy) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updatePolicy
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdatePolicy
protected abstract com.soffid.iam.api.PamPolicy handleUpdatePolicy(com.soffid.iam.api.PamPolicy policy) throws Exception
- Throws:
Exception
-
createRule
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PamRule createRule(com.soffid.iam.api.PamRule rule) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
createRule
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreateRule
protected abstract com.soffid.iam.api.PamRule handleCreateRule(com.soffid.iam.api.PamRule rule) throws Exception
- Throws:
Exception
-
updateRule
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.PamRule updateRule(com.soffid.iam.api.PamRule rule) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
updateRule
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateRule
protected abstract com.soffid.iam.api.PamRule handleUpdateRule(com.soffid.iam.api.PamRule rule) throws Exception
- Throws:
Exception
-
findPolicyActions
@Transactional(rollbackFor=java.lang.Exception.class) public List<com.soffid.iam.api.PamAction> findPolicyActions(com.soffid.iam.api.PamPolicy policy) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findPolicyActions
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindPolicyActions
protected abstract List<com.soffid.iam.api.PamAction> handleFindPolicyActions(com.soffid.iam.api.PamPolicy policy) throws Exception
- Throws:
Exception
-
applyRule
@Transactional(rollbackFor=java.lang.Exception.class) public void applyRule(String sessionKey, String policyName, String ruleName) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
applyRule
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleApplyRule
protected abstract void handleApplyRule(String sessionKey, String policyName, String ruleName) throws Exception
- Throws:
Exception
-
deletePolicy
@Transactional(rollbackFor=java.lang.Exception.class) public void deletePolicy(com.soffid.iam.api.PamPolicy policy) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
deletePolicy
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDeletePolicy
protected abstract void handleDeletePolicy(com.soffid.iam.api.PamPolicy policy) throws Exception
- Throws:
Exception
-
deleteRule
@Transactional(rollbackFor=java.lang.Exception.class) public void deleteRule(com.soffid.iam.api.PamRule rule) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
deleteRule
in interfacecom.soffid.iam.service.PamPolicyService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDeleteRule
protected abstract void handleDeleteRule(com.soffid.iam.api.PamRule rule) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-