Class ProvisioningEngineImpl
java.lang.Object
com.tremolosecurity.provisioning.core.ProvisioningEngineImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicTarget
(ConfigManager cfgMgr, TargetType targetCfg) void
void
void
void
clearDLQ()
void
void
deleteRemovedJobs
(HashSet<String> jobKeys, String groupName) void
deleteRemovedLocalJobs
(HashSet<String> jobKeys, String groupName) void
dlqMessage
(jakarta.jms.TextMessage m) void
doApproval
(int id, String userID, boolean approved, String reason) void
void
enqueue
(WorkflowHolder wfHolder) void
enqueue
(WorkflowHolder wfHolder, int num) void
execute()
org.hibernate.SessionFactory
int
int
Retrieves a provisioning target by its name as configured in the administration systemgetWorkFlow
(String name) getWorkFlow
(String name, User user) getWorkflowCopy
(String name) void
void
void
void
void
Initializes the configured workflows from their XML sourceboolean
boolean
boolean
void
logAction
(String target, boolean isEntry, ProvisioningUtil.ActionType actionType, int approval, Workflow wf, String attribute, String val) void
void
reEnQueue
(jakarta.jms.TextMessage tm, int numOfTries, JMSSessionHolder session) void
reEnQueueTask
(jakarta.jms.TextMessage tm, int numOfTries) void
removeDynamicWorkflow
(String name) void
removeMessageListener
(String name) void
removeTarget
(String name) void
void
replaceTarget
(ConfigManager cfgMgr, TargetType targetCfg) void
returnQueueConnection
(jakarta.jms.Connection con) void
sendNotification
(String email, String msgTxt, User user) void
sendNotification
(String email, String msgTxt, User user, String contentType) void
sendNotification
(String email, String msgTxt, String subject, User user) void
-
Constructor Details
-
ProvisioningEngineImpl
Default constructor- Parameters:
cfgMgr
-- Throws:
ProvisioningException
-
-
Method Details
-
initReports
- Specified by:
initReports
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
initWorkFlows
Description copied from interface:ProvisioningEngine
Initializes the configured workflows from their XML source- Specified by:
initWorkFlows
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
addDynamicWorkflow
- Specified by:
addDynamicWorkflow
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
replaceDynamicWorkflow
- Specified by:
replaceDynamicWorkflow
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
removeDynamicWorkflow
- Specified by:
removeDynamicWorkflow
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
addDynamicTarget
public void addDynamicTarget(ConfigManager cfgMgr, TargetType targetCfg) throws ProvisioningException - Specified by:
addDynamicTarget
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
removeTarget
- Specified by:
removeTarget
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
replaceTarget
- Specified by:
replaceTarget
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
getTarget
Description copied from interface:ProvisioningEngine
Retrieves a provisioning target by its name as configured in the administration system- Specified by:
getTarget
in interfaceProvisioningEngine
- Parameters:
name
- The name of the target- Returns:
- The target implementation class
- Throws:
ProvisioningException
- Thrown if no target exists with that name
-
getWorkFlow
- Specified by:
getWorkFlow
in interfaceProvisioningEngine
- Parameters:
name
-user
-- Returns:
- Throws:
ProvisioningException
-
getWorkFlow
- Specified by:
getWorkFlow
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
getWorkflowCopy
- Specified by:
getWorkflowCopy
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
doApproval
public void doApproval(int id, String userID, boolean approved, String reason) throws ProvisioningException - Specified by:
doApproval
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
getUserIDAttribute
- Specified by:
getUserIDAttribute
in interfaceProvisioningEngine
-
getApproverAttributes
- Specified by:
getApproverAttributes
in interfaceProvisioningEngine
-
getUserAttrbiutes
- Specified by:
getUserAttrbiutes
in interfaceProvisioningEngine
-
logAction
public void logAction(String target, boolean isEntry, ProvisioningUtil.ActionType actionType, int approval, Workflow wf, String attribute, String val) throws ProvisioningException - Specified by:
logAction
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
sendNotification
- Specified by:
sendNotification
in interfaceProvisioningEngine
- Throws:
Exception
-
sendNotification
public void sendNotification(String email, String msgTxt, User user, String contentType) throws Exception - Specified by:
sendNotification
in interfaceProvisioningEngine
- Throws:
Exception
-
sendNotification
public void sendNotification(String email, String msgTxt, String subject, User user) throws Exception - Specified by:
sendNotification
in interfaceProvisioningEngine
- Throws:
Exception
-
sendNotification
public void sendNotification(String email, String msgTxt, String subject, User user, String contentType) throws Exception - Specified by:
sendNotification
in interfaceProvisioningEngine
- Throws:
Exception
-
getSmtpHost
- Specified by:
getSmtpHost
in interfaceProvisioningEngine
-
getSmtpPort
public int getSmtpPort()- Specified by:
getSmtpPort
in interfaceProvisioningEngine
-
getSmtpUser
- Specified by:
getSmtpUser
in interfaceProvisioningEngine
-
getSmtpPassword
- Specified by:
getSmtpPassword
in interfaceProvisioningEngine
-
getSmtpSubject
- Specified by:
getSmtpSubject
in interfaceProvisioningEngine
-
getSmtpFrom
- Specified by:
getSmtpFrom
in interfaceProvisioningEngine
-
isSmtpTLS
public boolean isSmtpTLS()- Specified by:
isSmtpTLS
in interfaceProvisioningEngine
-
isUseSOCKSProxy
public boolean isUseSOCKSProxy()- Specified by:
isUseSOCKSProxy
in interfaceProvisioningEngine
-
getSocksProxyHost
- Specified by:
getSocksProxyHost
in interfaceProvisioningEngine
-
getLocalhost
- Specified by:
getLocalhost
in interfaceProvisioningEngine
-
getSocksProxyPort
public int getSocksProxyPort()- Specified by:
getSocksProxyPort
in interfaceProvisioningEngine
-
clearDLQ
- Specified by:
clearDLQ
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
dlqMessage
public void dlqMessage(jakarta.jms.TextMessage m) - Specified by:
dlqMessage
in interfaceProvisioningEngine
-
endBroker
public void endBroker() -
enqueue
- Throws:
ProvisioningException
-
enqueue
- Throws:
ProvisioningException
-
execute
public void execute() -
returnQueueConnection
public void returnQueueConnection(jakarta.jms.Connection con) - Specified by:
returnQueueConnection
in interfaceProvisioningEngine
-
getTaskMessageProducer
- Throws:
Exception
-
isInternalQueue
public boolean isInternalQueue()- Specified by:
isInternalQueue
in interfaceProvisioningEngine
-
initMessageConsumers
- Specified by:
initMessageConsumers
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
encryptObject
- Specified by:
encryptObject
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
decryptObject
- Specified by:
decryptObject
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
initScheduler
- Specified by:
initScheduler
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
deleteRemovedJobs
-
deleteRemovedLocalJobs
-
addNewJob
public void addNewJob(HashSet<String> jobKeys, JobType jobType) throws org.quartz.SchedulerException, ProvisioningException, ClassNotFoundException - Specified by:
addNewJob
in interfaceProvisioningEngine
- Throws:
org.quartz.SchedulerException
ProvisioningException
ClassNotFoundException
-
initListeners
- Specified by:
initListeners
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
addMessageListener
public void addMessageListener(MessageListenerType mlt) throws InstantiationException, IllegalAccessException, ClassNotFoundException, ProvisioningException, jakarta.jms.JMSException - Specified by:
addMessageListener
in interfaceProvisioningEngine
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
ProvisioningException
jakarta.jms.JMSException
-
removeMessageListener
- Specified by:
removeMessageListener
in interfaceProvisioningEngine
-
reEnQueueTask
-
reEnQueue
- Specified by:
reEnQueue
in interfaceProvisioningEngine
-
getHibernateSessionFactory
- Specified by:
getHibernateSessionFactory
in interfaceProvisioningEngine
- Throws:
ProvisioningException
-
rebuildHibernate
public void rebuildHibernate()- Specified by:
rebuildHibernate
in interfaceProvisioningEngine
-
deleteJob
- Specified by:
deleteJob
in interfaceProvisioningEngine
- Throws:
org.quartz.SchedulerException
-