jawalevijay05
Contributor
Contributor

Is there any way to provide 'Property conditions and privilege constraints' on the metadata of an extension in Remote Plugin's 'plugin.json'?

SDK Version: 6.7.U2
For local plugin we provide privileges and properties in plugin.xml as below:

<?xml version="1.0" encoding="UTF-8"?>

<extension id="com.vmware.samples.actions.vmActionSet">

  <extendedPoint>vise.actions.sets</extendedPoint>

  <object>

  <actions>

  <com.vmware.actionsfw.ActionSpec>

  <uid>com.vmware.samples.actions.myVmAction1</uid>

  <label>#{action1.label}</label>

  <command className="com.vmware.samples.actions.VmActionCommand" />

  </com.vmware.actionsfw.ActionSpec>

  </actions>

  </object>

  <metadata>

  <objectType>Folder</objectType>

  <propertyConditions>

  <com.vmware.data.query.CompositeConstraint>

  <nestedConstraints>

  <com.vmware.data.query.PropertyConstraint>

  <propertyName>isRootFolder</propertyName>

  <comparator>EQUALS</comparator>

  <comparableValue>

  <String>true</String>

  </comparableValue>

  </com.vmware.data.query.PropertyConstraint>

  <com.vmware.data.query.PropertyConstraint>

  <propertyName>childType</propertyName>

  <comparator>CONTAINS</comparator>

  <comparableValue>

  <String>VirtualMachine</String>

  </comparableValue>

  </com.vmware.data.query.PropertyConstraint>

  </nestedConstraints>

  <conjoiner>AND</conjoiner>

  </com.vmware.data.query.CompositeConstraint>

  </propertyConditions>

  <privilege>Global.Licenses</privilege>

  </metadata>

</extension>

How can we achieve this functionality in Remote Plugin development? Is there any alternative way?
Or will this functionality be supported in a future release?

0 Kudos
0 Replies