本文整理汇总了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());
}
示例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;
}
示例3: setExporterService
import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
public void setExporterService(ExporterService exporterService)
{
this.exporterService = exporterService;
}
示例4: getExporterService
import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
@Override
public ExporterService getExporterService()
{
return (ExporterService)getService(EXPORTER_SERVICE);
}
示例5: getExporterService
import org.alfresco.service.cmr.view.ExporterService; //导入依赖的package包/类
@Override
public ExporterService getExporterService()
{
// A mock response
return null;
}
示例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;
}
示例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();
示例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;
}