本文整理了Java中javax.jcr.Node.getAllowedLifecycleTransistions()
方法的一些代码示例,展示了Node.getAllowedLifecycleTransistions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getAllowedLifecycleTransistions()
方法的具体详情如下:
包路径:javax.jcr.Node
类名称:Node
方法名:getAllowedLifecycleTransistions
[英]Returns the list of valid state transitions for this node.
[中]返回此节点的有效状态转换列表。
代码示例来源:origin: org.onehippo.cms7/hippo-repository-connector
public String[] getAllowedLifecycleTransistions() throws UnsupportedRepositoryOperationException, RepositoryException {
return node.getAllowedLifecycleTransistions();
}
}
代码示例来源:origin: net.adamcin.commons/net.adamcin.commons.jcr
public String[] getAllowedLifecycleTransistions() throws RepositoryException {
return this.item.getAllowedLifecycleTransistions();
}
}
代码示例来源:origin: net.adamcin.oakpal/oakpal-core
@Override
public String[] getAllowedLifecycleTransistions() throws RepositoryException {
return delegate.getAllowedLifecycleTransistions();
}
代码示例来源:origin: apache/jackrabbit
/** {@inheritDoc} */
public String[] getAllowedLifecycleTransistions()
throws RepositoryException, RemoteException {
try {
return node.getAllowedLifecycleTransistions();
} catch (RepositoryException ex) {
throw getRepositoryException(ex);
}
}
代码示例来源:origin: info.magnolia/magnolia-core
@Override
public String[] getAllowedLifecycleTransistions() throws UnsupportedRepositoryOperationException, RepositoryException {
return getWrappedNode().getAllowedLifecycleTransistions();
}
代码示例来源:origin: brix-cms/brix-cms
public String[] execute() throws Exception {
return getDelegate().getAllowedLifecycleTransistions();
}
});
代码示例来源:origin: brix-cms/brix-cms
public String[] getAllowedLifecycleTransistions()
throws UnsupportedRepositoryOperationException, RepositoryException {
return getDelegate().getAllowedLifecycleTransistions();
}
代码示例来源:origin: nl.vpro/jcr-criteria
@Override
public String[] getAllowedLifecycleTransistions() throws RepositoryException {
return getNode().getAllowedLifecycleTransistions();
}
代码示例来源:origin: apache/jackrabbit
public void testGetAllowedLifecycleTransitions()
throws RepositoryException, NotExecutableException {
Node node = superuser.getNode(path);
try {
String[] transitions = node.getAllowedLifecycleTransistions();
assertNotNull(
"Return value of getAllowedLifecycleTransitions is null",
transitions);
for (int i = 0; i < transitions.length; i++) {
if (transition.equals(transitions[i])) {
return;
}
}
fail("Configured lifecycle transition \"" + transition
+ "\" is not among the allowed transitions from node "
+ path);
} catch (UnsupportedRepositoryOperationException e) {
fail("Unable to get allowed lifecycle transitions for node "
+ path + ": " + e.getMessage());
}
}
内容来源于网络,如有侵权,请联系作者删除!