如何禁用 Apache OFBiz 中的应用程序?
如何禁用 OFBiz 自带的一些默认应用程序? (特别是人力资源申请)。
当我重新启动应用程序时,删除 applications\component-load.xml
给了我 NULL 指针异常。搜索谷歌给了我这个: http://www.mail- archive.com/[email protected]/msg05714.html 建议我删除应用程序目录。我不想这样做,我只是想禁用一个应用程序。我稍后可能需要启用它。
How to disable some of the default applications that come with OFBiz? (In particular the HR application).
Removing <load-component component-location="humanres"/>
the applications\component-load.xml
gave me NULL pointer exception when I restarted the application. Searching Google gave me this: http://www.mail-archive.com/[email protected]/msg05714.html which suggested that I remove the applications directory. I don't want to do that, I simply want to disable an application. I may need to enable it later.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 OFBiz 中禁用应用程序或框架组件并不容易,因为存在应用程序间依赖关系,主要基于实体定义。在这种特定情况下,由于会计对人力资源组件的依赖性,会产生错误。
如果您确实想禁用该组件,则必须找出所有依赖项并修复它们。您想要“禁用”HR 组件有什么具体原因吗?相反,您可以通过设置 app-bar-display="false" 将其从屏幕上删除,甚至可以阻止使用某些权限登录该应用程序。
另一方面,禁用特殊用途的应用程序应该是直接的。
It is not that easy to disable an application or framework components in OFBiz because there are inter-app dependencies, mostly based on entity definitions. In this specific case the error is generated because of dependency from accounting to HR component.
If you really want to disable the component you have to tract down all the dependencies and fix them. Is there a specific reason you want to "disable" HR component? Instead you can remove it fromt the screen by setting app-bar-display="false" and even prevent logging in that application with some permissions for example.
From the other hand, disabling special-purpsoe apps should be straight forward.
另一种可能的解决方案是注释掉您的菜单下拉菜单(使用 firebug 中的检查元素查找 src 文件)并在屏幕或针对所需应用程序的
*.ftl
中编写您自己的菜单(链接)网址)。PS:您仍然可以找到依赖项并删除不需要的组件,但如果您有很多时间,我更喜欢这样做。
The other possible solution is comment out your menu drop down (Find out src file using inspect Element in firebug) and the write your own menus (links) in a screen or
*.ftl
which targets to required application URLs).PS: You can still find the dependency and remove unwanted components but I prefer to do it if you have so much of time.