本文整理了Java中javax.jcr.Node.followLifecycleTransition()
方法的一些代码示例,展示了Node.followLifecycleTransition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.followLifecycleTransition()
方法的具体详情如下:
包路径:javax.jcr.Node
类名称:Node
方法名:followLifecycleTransition
[英]Causes the lifecycle state of this node to undergo the specified transition
.
This method may change the value of the jcr:currentLifecycleState
property, in most cases it is expected that the implementation will change the value to that of the passed transition
parameter, though this is an implementation-specific issue. If the jcr:currentLifecycleState
property is changed the change is persisted immediately, there is no need to call save
.
[中]使此节点的生命周期状态经历指定的transition
。
此方法可能会更改jcr:currentLifecycleState
属性的值,在大多数情况下,预期实现会将该值更改为传递的transition
参数的值,尽管这是一个特定于实现的问题。如果jcr:currentLifecycleState
属性发生更改,更改将立即保留,无需调用save
。
代码示例来源:origin: org.onehippo.cms7/hippo-repository-connector
public void followLifecycleTransition(String transition) throws UnsupportedRepositoryOperationException, RepositoryException {
node.followLifecycleTransition(transition);
}
代码示例来源:origin: net.adamcin.commons/net.adamcin.commons.jcr
public void followLifecycleTransition(String s) throws RepositoryException {
this.item.followLifecycleTransition(s);
}
代码示例来源:origin: brix-cms/brix-cms
public void followLifecycleTransition(String transition)
throws UnsupportedRepositoryOperationException, InvalidLifecycleTransitionException,
RepositoryException {
getDelegate().followLifecycleTransition(transition);
}
代码示例来源:origin: info.magnolia/magnolia-core
@Override
public void followLifecycleTransition(String transition) throws UnsupportedRepositoryOperationException, InvalidLifecycleTransitionException, RepositoryException {
getWrappedNode().followLifecycleTransition(transition);
}
代码示例来源:origin: apache/jackrabbit
/** {@inheritDoc} */
public void followLifecycleTransition(String transition)
throws RepositoryException, RemoteException {
try {
node.followLifecycleTransition(transition);
} catch (RepositoryException ex) {
throw getRepositoryException(ex);
}
}
代码示例来源:origin: brix-cms/brix-cms
public void execute() throws Exception {
getDelegate().followLifecycleTransition(transition);
}
});
代码示例来源:origin: nl.vpro/jcr-criteria
@Override
public void followLifecycleTransition(String transition) throws RepositoryException {
getNode().followLifecycleTransition(transition);
}
代码示例来源:origin: apache/jackrabbit
public void testFollowLifecycleTransition()
throws RepositoryException, NotExecutableException {
Node node = superuser.getNode(path);
try {
node.followLifecycleTransition(transition);
// Note that there is nothing much here for us to check,
// as the spec doesn't specify any fixed behaviour for
// this method!
} catch (UnsupportedRepositoryOperationException e) {
fail("Unable to follow lifecycle transition \"" + transition
+ "\" for node " + path + ": " + e.getMessage());
} catch (InvalidLifecycleTransitionException e) {
fail("Unable to follow lifecycle transition \"" + transition
+ "\" for node " + path + ": " + e.getMessage());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!