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


Java FormService类代码示例

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


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

示例1: onSetUpInTransaction

import org.alfresco.repo.forms.FormService; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
   protected void onSetUpInTransaction() throws Exception
   {
       super.onSetUpInTransaction();

       this.formService = (FormService)this.applicationContext.getBean("FormService");
       this.namespaceService = (NamespaceService)this.applicationContext.getBean("NamespaceService");
       this.repositoryHelper = (Repository)this.applicationContext.getBean("repositoryHelper");
       this.transactionHelper = (RetryingTransactionHelper)this.applicationContext.getBean("retryingTransactionHelper");

       NodeRef companyHome = repositoryHelper.getCompanyHome();
       testNode = createNode(companyHome,
               "testDoc" + ActionFormProcessorTest.class.getSimpleName() + ".txt",
               ContentModel.TYPE_CONTENT);
       ContentWriter writer = contentService.getWriter(testNode, ContentModel.PROP_CONTENT, true);
       writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);
       writer.setEncoding("UTF-8");
       writer.putContent("Irrelevant content");

       testNodesToBeTidiedUp = new ArrayList<NodeRef>();
       testNodesToBeTidiedUp.add(testNode);

       // Set the current security context as admin
       AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());
   }
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:27,代码来源:ActionFormProcessorTest.java

示例2: getFormService

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

示例3: getFormService

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

示例4: setFormService

import org.alfresco.repo.forms.FormService; //导入依赖的package包/类
/**
 * Set the form service
 * 
 * @param formService
 *            the form service
 */
public void setFormService(FormService formService)
{
    this.formService = formService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:11,代码来源:ScriptFormService.java

示例5: getFormService

import org.alfresco.repo.forms.FormService; //导入依赖的package包/类
/**
 * Get the form service (or null if one is not provided)
 * @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
FormService getFormService();
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:ServiceRegistry.java


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