本文整理汇总了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());
}
示例2: getFormService
import org.alfresco.repo.forms.FormService; //导入依赖的package包/类
@Override
public FormService getFormService()
{
return (FormService)getService(FORM_SERVICE);
}
示例3: getFormService
import org.alfresco.repo.forms.FormService; //导入依赖的package包/类
@Override
public FormService getFormService()
{
// A mock response
return null;
}
示例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;
}
示例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();