大家知道,Autodesk Vault 2014有几个版本,依次为( Basic, Workgroup, Professional),不同版本的功能不相同,关于Vault产品功能的不同之处可以在Vault的产品主页看到。但经常会有客户问到Vault的API在不同版本下有什么不同吗? 或者要实现某个功能,在Vault Basic可以满足需要吗?毕竟大家都想尽可能的节约成本。
对于Vault API来说,各个版本的API功能区别主要体现在是否支持某些服务,这些服务的列表在Vault SDK的“Web Services”节中可以找到。为了方便,我总结了下面这个表格:
Vault Basic | Vault Workgroup | Vault Professional | |
AdminService Contains methods for manipulating users and groups. | ✓ | ✓ | ✓ |
AuthService | ✓ | ✓ | ✓ |
DocumentService Contains methods for manipulating files and folders within a vault. | ✓ | ✓ | ✓ |
FilestoreService A service for uploading and downloading binary file data. | ✓ | ✓ | ✓ |
FilestoreVaultService | ✓ | ✓ | ✓ |
KnowledgeVaultService | ✓ | ✓ | ✓ |
InformationService | ✓ | ✓ | ✓ |
IdentificationService | ✓ | ✓ | ✓ |
ItemService | ✓ | ✓ | ✓ |
BehaviorService | Limited | ✓ | ✓ |
CategoryService | Limited | ✓ | ✓ |
JobService | Limited | ✓ | ✓ |
LifeCycleService | Limited | ✓ | ✓ |
PropertyService | Limited | ✓ | ✓ |
ReplicationService | Limited | ✓ | ✓ |
RevisionService | Limited | ✓ | ✓ |
SecurityService | Limited | ✓ | ✓ |
ReplicationService | Limited | Limited | ✓ |
DocumentServiceExtensions | - | ✓ | ✓ |
ChangeOrderService | - | - | ✓ |
CustomEntityService | - | - | ✓ |
ForumService | - | - | ✓ |
ItemService | - | - | ✓ |
PackageService | - | - | ✓ |
WinAuthService | - | - | ✓ |
除此之外,Vault API还提供了方法来检测你现在正在连接的vault服务器的版本, Web Service API中的InformationService有GetSupportedProducts()方法可以用来判断当前Vault服务器所支持的Vault版本。另外,VDF还提供了一些有用的特性来检查你是否正在使用适当的Vault版本,在VDF中的IVaultConnectManagerService,你可以使用SetProductRequirements()方法指定你的应用所需要的Vault版本,通过这样的方法,你可以阻止应用连接到不支持的Vault版本。具体的用法,大家可以参考SDK中的在线帮助文档。