javax.jcr.Node.followLifecycleTransition()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中javax.jcr.Node.followLifecycleTransition()方法的一些代码示例,展示了Node.followLifecycleTransition()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.followLifecycleTransition()方法的具体详情如下:
包路径:javax.jcr.Node
类名称:Node
方法名:followLifecycleTransition

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

  1. public void followLifecycleTransition(String transition) throws UnsupportedRepositoryOperationException, RepositoryException {
  2. node.followLifecycleTransition(transition);
  3. }

代码示例来源:origin: net.adamcin.commons/net.adamcin.commons.jcr

  1. public void followLifecycleTransition(String s) throws RepositoryException {
  2. this.item.followLifecycleTransition(s);
  3. }

代码示例来源:origin: brix-cms/brix-cms

  1. public void followLifecycleTransition(String transition)
  2. throws UnsupportedRepositoryOperationException, InvalidLifecycleTransitionException,
  3. RepositoryException {
  4. getDelegate().followLifecycleTransition(transition);
  5. }

代码示例来源:origin: info.magnolia/magnolia-core

  1. @Override
  2. public void followLifecycleTransition(String transition) throws UnsupportedRepositoryOperationException, InvalidLifecycleTransitionException, RepositoryException {
  3. getWrappedNode().followLifecycleTransition(transition);
  4. }

代码示例来源:origin: apache/jackrabbit

  1. /** {@inheritDoc} */
  2. public void followLifecycleTransition(String transition)
  3. throws RepositoryException, RemoteException {
  4. try {
  5. node.followLifecycleTransition(transition);
  6. } catch (RepositoryException ex) {
  7. throw getRepositoryException(ex);
  8. }
  9. }

代码示例来源:origin: brix-cms/brix-cms

  1. public void execute() throws Exception {
  2. getDelegate().followLifecycleTransition(transition);
  3. }
  4. });

代码示例来源:origin: nl.vpro/jcr-criteria

  1. @Override
  2. public void followLifecycleTransition(String transition) throws RepositoryException {
  3. getNode().followLifecycleTransition(transition);
  4. }

代码示例来源:origin: apache/jackrabbit

  1. public void testFollowLifecycleTransition()
  2. throws RepositoryException, NotExecutableException {
  3. Node node = superuser.getNode(path);
  4. try {
  5. node.followLifecycleTransition(transition);
  6. // Note that there is nothing much here for us to check,
  7. // as the spec doesn't specify any fixed behaviour for
  8. // this method!
  9. } catch (UnsupportedRepositoryOperationException e) {
  10. fail("Unable to follow lifecycle transition \"" + transition
  11. + "\" for node " + path + ": " + e.getMessage());
  12. } catch (InvalidLifecycleTransitionException e) {
  13. fail("Unable to follow lifecycle transition \"" + transition
  14. + "\" for node " + path + ": " + e.getMessage());
  15. }
  16. }
  17. }

相关文章