当前位置: 首页>>代码示例>>Java>>正文


Java CalendarService类代码示例

本文整理汇总了Java中org.alfresco.service.cmr.calendar.CalendarService的典型用法代码示例。如果您正苦于以下问题:Java CalendarService类的具体用法?Java CalendarService怎么用?Java CalendarService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CalendarService类属于org.alfresco.service.cmr.calendar包,在下文中一共展示了CalendarService类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initTestsContext

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
@BeforeClass
public static void initTestsContext() throws Exception
{
	calendarService = (CalendarService) appContext.getBean("CalendarService");
	nodeService = (NodeService) appContext.getBean("nodeService");
	transactionHelper = (RetryingTransactionHelper) appContext.getBean("retryingTransactionHelper");
	siteService = (SiteService) appContext.getBean("SiteService");

	meetingServiceHandler = new AlfrescoMeetingServiceHandler();
	meetingServiceHandler.setCalendarService(calendarService);
	meetingServiceHandler.setNodeService(nodeService);
	meetingServiceHandler.setSiteService(siteService);
	meetingServiceHandler.setTransactionService((TransactionService) appContext.getBean("transactionService"));
	meetingServiceHandler.setPersonService((PersonService) appContext.getBean("personService"));

    // Do the setup as admin
    AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER);

    createTestSite();
    createRecurrence();
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:22,代码来源:AlfrescoMeetingServiceHandlerTest.java

示例2: initTestsContext

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
@BeforeClass public static void initTestsContext() throws Exception
{
    AUTHENTICATION_SERVICE = (MutableAuthenticationService)testContext.getBean("authenticationService");
    BEHAVIOUR_FILTER       = (BehaviourFilter)testContext.getBean("policyBehaviourFilter");
    CALENDAR_SERVICE       = (CalendarService)testContext.getBean("CalendarService");
    DICTIONARY_SERVICE     = (DictionaryService)testContext.getBean("dictionaryService");
    NODE_SERVICE           = (NodeService)testContext.getBean("nodeService");
    PUBLIC_NODE_SERVICE    = (NodeService)testContext.getBean("NodeService");
    PERSON_SERVICE         = (PersonService)testContext.getBean("personService");
    TRANSACTION_HELPER     = (RetryingTransactionHelper)testContext.getBean("retryingTransactionHelper");
    PERMISSION_SERVICE     = (PermissionService)testContext.getBean("permissionService");
    SITE_SERVICE           = (SiteService)testContext.getBean("SiteService");
    // Get the canned query registry, and from that the factory
    @SuppressWarnings("unchecked")
    NamedObjectRegistry<CannedQueryFactory<? extends Object>> calendarCannedQueryRegistry =
       (NamedObjectRegistry<CannedQueryFactory<? extends Object>>)testContext.getBean("calendarCannedQueryRegistry");
    CALENDAR_CQ_FACTORY = (GetCalendarEntriesCannedQueryFactory)
       calendarCannedQueryRegistry.getNamedObject(CalendarServiceImpl.CANNED_QUERY_GET_ENTRIES);
    
    // Do the setup as admin
    AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER);
    createUser(TEST_USER);
    
    // We need to create the test site as the test user so that they can contribute content to it in tests below.
    AuthenticationUtil.setFullyAuthenticatedUser(TEST_USER);
    createTestSites();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:28,代码来源:CalendarServiceImplTest.java

示例3: initTestsContext

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
@BeforeClass public static void initTestsContext() throws Exception
{
    AUTHENTICATION_SERVICE = (MutableAuthenticationService)testContext.getBean("authenticationService");
    BEHAVIOUR_FILTER       = (BehaviourFilter)testContext.getBean("policyBehaviourFilter");
    CALENDAR_SERVICE       = (CalendarService)testContext.getBean("CalendarService");
    DICTIONARY_SERVICE     = (DictionaryService)testContext.getBean("dictionaryService");
    NODE_SERVICE           = (NodeService)testContext.getBean("nodeService");
    PUBLIC_NODE_SERVICE    = (NodeService)testContext.getBean("NodeService");
    PERSON_SERVICE         = (PersonService)testContext.getBean("personService");
    TRANSACTION_HELPER     = (RetryingTransactionHelper)testContext.getBean("retryingTransactionHelper");
    PERMISSION_SERVICE     = (PermissionService)testContext.getBean("permissionService");
    SITE_SERVICE           = (SiteService)testContext.getBean("SiteService");
    TAGGING_SERVICE        = (TaggingService)testContext.getBean("TaggingService");

    // Get the canned query registry, and from that the factory
    @SuppressWarnings("unchecked")
    NamedObjectRegistry<CannedQueryFactory<? extends Object>> calendarCannedQueryRegistry =
       (NamedObjectRegistry<CannedQueryFactory<? extends Object>>)testContext.getBean("calendarCannedQueryRegistry");
    CALENDAR_CQ_FACTORY = (GetCalendarEntriesCannedQueryFactory)
       calendarCannedQueryRegistry.getNamedObject(CalendarServiceImpl.CANNED_QUERY_GET_ENTRIES);
    
    // Do the setup as admin
    AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER);
    createUser(TEST_USER);
    
    // We need to create the test site as the test user so that they can contribute content to it in tests below.
    AuthenticationUtil.setFullyAuthenticatedUser(TEST_USER);
    createTestSites();
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:30,代码来源:CalendarServiceImplTest.java

示例4: setCalendarService

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
public void setCalendarService(CalendarService calendarService)
{
    this.calendarService = calendarService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:CalendarAllDayEventDatesCorrectingPatch.java

示例5: getCalendarService

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
@Override
public CalendarService getCalendarService() 
{
    return (CalendarService)getService(CALENDAR_SERVICE);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:6,代码来源:ServiceDescriptorRegistry.java

示例6: getCalendarService

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
@Override
public CalendarService getCalendarService()
{
    // A mock response
    return null;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:7,代码来源:MockedTestServiceRegistry.java

示例7: getCalendarService

import org.alfresco.service.cmr.calendar.CalendarService; //导入依赖的package包/类
/**
 * Get the calendar service (or null if one is not provided)
 * 
 * @since 4.0
 * @deprecated This method has been deprecated as it would return a service that is not part of the public API. 
 * The service itself is not deprecated, but access to it via the ServiceRegistry will be removed in the future.
 */
@NotAuditable
CalendarService getCalendarService();
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:10,代码来源:ServiceRegistry.java


注:本文中的org.alfresco.service.cmr.calendar.CalendarService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。