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


Java ExporterService类代码示例

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


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

示例1: onSetUpInTransaction

import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
@Override
protected void onSetUpInTransaction() throws Exception
{
    nodeService = (NodeService)applicationContext.getBean(ServiceRegistry.NODE_SERVICE.getLocalName());
    exporterService = (ExporterService)applicationContext.getBean("exporterComponent");
    importerService = (ImporterService)applicationContext.getBean("importerComponent");
    fileFolderService = (FileFolderService) applicationContext.getBean("fileFolderService");
    categoryService = (CategoryService) applicationContext.getBean("categoryService");     
    transactionService = (TransactionService) applicationContext.getBean("transactionService");
    permissionService = (PermissionServiceSPI) applicationContext.getBean("permissionService");

    this.authenticationService = (MutableAuthenticationService) applicationContext.getBean("AuthenticationService");
    this.authenticationComponent = (AuthenticationComponent) applicationContext.getBean("authenticationComponent");
    this.authenticationComponent.setSystemUserAsCurrentUser();
    this.storeRef = nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "Test_" + System.currentTimeMillis());
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:17,代码来源:ExporterComponentTest.java

示例2: getServiceRegistry

import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
protected @Override
/*package*/ int execute()
	throws ToolException
{
    ExporterService exporter = getServiceRegistry().getExporterService();
    MimetypeService mimetypeService = getServiceRegistry().getMimetypeService();

    // create export package handler
    ExportPackageHandler exportHandler = null;
    if (context.zipped)
    {
        exportHandler = new ZipHandler(context.getDestDir(), context.getZipFile(), context.getPackageFile(), context.getPackageDir(), context.overwrite, mimetypeService);
    }
    else
    {
        exportHandler = new FileHandler(context.getDestDir(), context.getPackageFile(), context.getPackageDir(), context.overwrite, mimetypeService);
    }

    // export Repository content to export package
    ExporterCrawlerParameters parameters = new ExporterCrawlerParameters();
    parameters.setExportFrom(context.getLocation());
    parameters.setCrawlSelf(context.self);
    parameters.setCrawlChildNodes(context.children);
    
    try
    {
        exporter.exportView(exportHandler, parameters, new ExportProgress());
    }
    catch(ExporterException e)
    {
        throw new ToolException("Failed to export", e);
    }
    
    return 0;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:36,代码来源:Export.java

示例3: setExporterService

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

示例4: getExporterService

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

示例5: getExporterService

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

示例6: setExporterService

import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
/**
 * Sets the ExporterService to use
 * 
 * @param exporterService The ExporterService
 */
public void setExporterService(ExporterService exporterService) 
{
    this.exporterService = exporterService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:10,代码来源:ExporterActionExecuter.java

示例7: getExporterService

import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
/**
 * @return the exporter service or null if not present
 * @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
ExporterService getExporterService();
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:ServiceRegistry.java

示例8: setExporterService

import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
/**
    * Sets the ExporterService to use
    * 
    * @param exporterService The ExporterService
    */
public void setExporterService(ExporterService exporterService) 
{
	this.exporterService = exporterService;
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:10,代码来源:ExporterActionExecuter.java


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