本文整理汇总了Java中org.alfresco.repo.action.executer.CheckInActionExecuter类的典型用法代码示例。如果您正苦于以下问题:Java CheckInActionExecuter类的具体用法?Java CheckInActionExecuter怎么用?Java CheckInActionExecuter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CheckInActionExecuter类属于org.alfresco.repo.action.executer包,在下文中一共展示了CheckInActionExecuter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testRemove
import org.alfresco.repo.action.executer.CheckInActionExecuter; //导入依赖的package包/类
/**
* Test remove action
*/
public void testRemove()
{
assertEquals(0, this.actionService.getActions(this.nodeRef).size());
Action action1 = this.actionService.createAction(AddFeaturesActionExecuter.NAME);
this.actionService.saveAction(this.nodeRef, action1);
Action action2 = this.actionService.createAction(CheckInActionExecuter.NAME);
this.actionService.saveAction(this.nodeRef, action2);
assertEquals(2, this.actionService.getActions(this.nodeRef).size());
this.actionService.removeAction(this.nodeRef, action1);
assertEquals(1, this.actionService.getActions(this.nodeRef).size());
this.actionService.removeAllActions(this.nodeRef);
assertEquals(0, this.actionService.getActions(this.nodeRef).size());
}
示例2: prepareForSave
import org.alfresco.repo.action.executer.CheckInActionExecuter; //导入依赖的package包/类
public void prepareForSave(Map<String, Serializable> actionProps,
Map<String, Serializable> repoProps)
{
repoProps.put(CheckInActionExecuter.PARAM_DESCRIPTION,
actionProps.get(PROP_CHECKIN_DESC));
repoProps.put(CheckInActionExecuter.PARAM_MINOR_CHANGE,
actionProps.get(PROP_CHECKIN_MINOR));
}
示例3: prepareForEdit
import org.alfresco.repo.action.executer.CheckInActionExecuter; //导入依赖的package包/类
public void prepareForEdit(Map<String, Serializable> actionProps,
Map<String, Serializable> repoProps)
{
String checkDesc = (String)repoProps.get(CheckInActionExecuter.PARAM_DESCRIPTION);
actionProps.put(PROP_CHECKIN_DESC, checkDesc);
Boolean minorChange = (Boolean)repoProps.get(CheckInActionExecuter.PARAM_MINOR_CHANGE);
actionProps.put(PROP_CHECKIN_MINOR, minorChange);
}
示例4: testCheckInAction
import org.alfresco.repo.action.executer.CheckInActionExecuter; //导入依赖的package包/类
/**
* Test:
* rule type: inbound
* condition: no-condition()
* action: checkin()
*/
public void testCheckInAction()
{
Map<String, Serializable> params = new HashMap<String, Serializable>(1);
params.put(CheckInActionExecuter.PARAM_DESCRIPTION, "The version description.");
Rule rule = createRule(
RuleType.INBOUND,
CheckInActionExecuter.NAME,
params,
NoConditionEvaluator.NAME,
null);
this.ruleService.saveRule(this.nodeRef, rule);
List<NodeRef> list = transactionService.getRetryingTransactionHelper().doInTransaction(
new RetryingTransactionCallback<List<NodeRef>>()
{
public List<NodeRef> execute()
{
// Create a new node and check-it out
NodeRef newNodeRef = RuleServiceCoverageTest.this.nodeService.createNode(
RuleServiceCoverageTest.this.rootNodeRef,
ContentModel.ASSOC_CHILDREN,
QName.createQName(TEST_NAMESPACE, "origional"),
ContentModel.TYPE_CONTENT,
getContentProperties()).getChildRef();
NodeRef workingCopy = RuleServiceCoverageTest.this.cociService.checkout(newNodeRef);
// Move the working copy into the actionable folder
RuleServiceCoverageTest.this.nodeService.moveNode(
workingCopy,
RuleServiceCoverageTest.this.nodeRef,
ContentModel.ASSOC_CHILDREN,
QName.createQName(TEST_NAMESPACE, "moved"));
List<NodeRef> result = new ArrayList<NodeRef>();
result.add(newNodeRef);
result.add(workingCopy);
return result;
}
});
// Check that the working copy has been removed
assertFalse(this.nodeService.exists(list.get(1)));
// Check that the origional is no longer locked
assertEquals(LockStatus.NO_LOCK, this.lockService.getLockStatus(list.get(0)));
//System.out.println(NodeStoreInspector.dumpNodeStore(this.nodeService, this.testStoreRef));
}
示例5: getJSPPath
import org.alfresco.repo.action.executer.CheckInActionExecuter; //导入依赖的package包/类
public String getJSPPath()
{
return getJSPPath(CheckInActionExecuter.NAME);
}