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

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

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

Node.getAllowedLifecycleTransistions介绍

[英]Returns the list of valid state transitions for this node.
[中]返回此节点的有效状态转换列表。

代码示例

代码示例来源:origin: org.onehippo.cms7/hippo-repository-connector

  1. public String[] getAllowedLifecycleTransistions() throws UnsupportedRepositoryOperationException, RepositoryException {
  2. return node.getAllowedLifecycleTransistions();
  3. }
  4. }

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

  1. public String[] getAllowedLifecycleTransistions() throws RepositoryException {
  2. return this.item.getAllowedLifecycleTransistions();
  3. }
  4. }

代码示例来源:origin: net.adamcin.oakpal/oakpal-core

  1. @Override
  2. public String[] getAllowedLifecycleTransistions() throws RepositoryException {
  3. return delegate.getAllowedLifecycleTransistions();
  4. }

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

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

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

  1. @Override
  2. public String[] getAllowedLifecycleTransistions() throws UnsupportedRepositoryOperationException, RepositoryException {
  3. return getWrappedNode().getAllowedLifecycleTransistions();
  4. }

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

  1. public String[] execute() throws Exception {
  2. return getDelegate().getAllowedLifecycleTransistions();
  3. }
  4. });

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

  1. public String[] getAllowedLifecycleTransistions()
  2. throws UnsupportedRepositoryOperationException, RepositoryException {
  3. return getDelegate().getAllowedLifecycleTransistions();
  4. }

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

  1. @Override
  2. public String[] getAllowedLifecycleTransistions() throws RepositoryException {
  3. return getNode().getAllowedLifecycleTransistions();
  4. }

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

  1. public void testGetAllowedLifecycleTransitions()
  2. throws RepositoryException, NotExecutableException {
  3. Node node = superuser.getNode(path);
  4. try {
  5. String[] transitions = node.getAllowedLifecycleTransistions();
  6. assertNotNull(
  7. "Return value of getAllowedLifecycleTransitions is null",
  8. transitions);
  9. for (int i = 0; i < transitions.length; i++) {
  10. if (transition.equals(transitions[i])) {
  11. return;
  12. }
  13. }
  14. fail("Configured lifecycle transition \"" + transition
  15. + "\" is not among the allowed transitions from node "
  16. + path);
  17. } catch (UnsupportedRepositoryOperationException e) {
  18. fail("Unable to get allowed lifecycle transitions for node "
  19. + path + ": " + e.getMessage());
  20. }
  21. }

相关文章