use of org.jaffa.loader.policy.BusinessFunctionManager in project jaffa-framework by jaffa-projects.
the class RepositoryJsonServiceTest method setUp.
/**
* This setup function registers resources to each managed repository to produce correct retrieval results
* @throws Exception
*/
@Before
public void setUp() throws Exception {
managerRepositoryService = ManagerRepositoryService.getInstance();
ContextKey testKey = new ContextKey("testKey", "file1.xml", "NULL", "1-PRODUCT");
SchedulerManager testManager = new SchedulerManager();
Task testTask = new Task();
repositoryJsonService = new RepositoryJsonService();
testKey = new ContextKey("testKey", "file1.xml", "NULL", "1-PRODUCT");
testManager = new SchedulerManager();
testTask = new Task();
// Must populate a repository element in order to retrieve data
testTask.setAutoCreateDataBean(true);
testTask.setDataBean("DataBeanTest");
testTask.setType("TestType");
testManager.registerSchedulerTask(testKey, testTask);
// Add managers to ManagerRepositoryService
managerRepositoryService.add("Task", testManager);
managerRepositoryService.add("ComponentManager", new ComponentManager());
managerRepositoryService.add("ApplicationRulesManager", new ApplicationRulesManager());
managerRepositoryService.add("NavigationManager", new NavigationManager());
managerRepositoryService.add("BusinessFunctionManager", new BusinessFunctionManager());
managerRepositoryService.add("RoleManager", new RoleManager());
managerRepositoryService.add("JndiJmsManager", new JndiJmsManager());
managerRepositoryService.add("MessagingManager", new MessagingManager());
managerRepositoryService.add("SoaEventManager", new SoaEventManager());
managerRepositoryService.add("TransactionManager", new TransactionManager());
}
use of org.jaffa.loader.policy.BusinessFunctionManager in project jaffa-framework by jaffa-projects.
the class CheckPolicyTest method setup.
/**
* setting the up objects/properties before a Test is run
* @throws Exception
*/
@Before
public void setup() {
// initialize
BusinessFunctionManager businessFunctionManager = xmlLoaderConfig.getBean(BusinessFunctionManager.class);
checkPolicy = new CheckPolicy();
checkPolicy.setBusinessFunctionManager(businessFunctionManager);
RoleManager roleManager = xmlLoaderConfig.getBean(RoleManager.class);
policyManager.setRoleManager(roleManager);
}
use of org.jaffa.loader.policy.BusinessFunctionManager in project jaffa-framework by jaffa-projects.
the class CoreLoaderConfig method businessFunctionManager.
/**
* @return Returns a BusinessFunctionManager
*/
@Bean
public BusinessFunctionManager businessFunctionManager() {
BusinessFunctionManager businessFunctionManager = new BusinessFunctionManager();
CheckPolicy.setBusinessFunctionManager(businessFunctionManager);
return businessFunctionManager;
}
use of org.jaffa.loader.policy.BusinessFunctionManager in project jaffa-framework by jaffa-projects.
the class RepositoryJsonServiceTest method setUp.
/**
* This setup function registers resources to each managed repository to produce correct retrieval results
* @throws Exception
*/
@Before
public void setUp() throws Exception {
managerRepositoryService = ManagerRepositoryService.getInstance();
repositoryJsonService = new RepositoryJsonService();
testKey = new ContextKey("testKey", "file1.xml", "NULL", "1-PRODUCT");
testManager = new SchedulerManager();
testTask = new Task();
// Must populate a repository element in order to retrieve data
testTask.setAutoCreateDataBean(true);
testTask.setDataBean("DataBeanTest");
testTask.setType("TestType");
testManager.registerSchedulerTask(testKey, testTask);
// Add managers to ManagerRepositoryService
managerRepositoryService.add("Task", testManager);
managerRepositoryService.add("ComponentManager", new ComponentManager());
managerRepositoryService.add("ApplicationRulesManager", new ApplicationRulesManager());
managerRepositoryService.add("NavigationManager", new NavigationManager());
managerRepositoryService.add("BusinessFunctionManager", new BusinessFunctionManager());
managerRepositoryService.add("RoleManager", new RoleManager());
managerRepositoryService.add("JndiJmsManager", new JndiJmsManager());
managerRepositoryService.add("MessagingManager", new MessagingManager());
managerRepositoryService.add("SoaEventManager", new SoaEventManager());
managerRepositoryService.add("TransactionManager", new TransactionManager());
}
Aggregations