We have a custom button called PrintViewButton located at the Action Navigation. We want to apply some security around that button. I'm creating a new CustomSecurityEvaluator class. Below is example code per Oracle documentation. I have two questions.
1. What dll or dlls do I need to reference so my class can access the following
2. Do you have a C# example?
Example code per documentation:
Step 2. Create a plugin named MyEvaluator and compile.
Public Class MyEvaluator : Implements ICustomSecurityEvaluator
Private ReadOnly Property SpecService() As ISpecificationService
Public Function Evaluate() As Boolean Implements ICustomSecurityEvaluator.Evaluate
If (SpecService.Current Is Nothing) Then
//<Your codes here>
Return //<Your result here>
You will need to use the XenoWebControls.dll assembly when implementing a CustomSecurityEvaluator class.
I do not think you need the ObjectHeader import, so I would take that import out:
We do not yet have a C# reference implementation, but you can easily convert that code through some online utilities.
Also, remember that the PLM4PExtensionUtils has some useful classes you can leverage, such as the SpecWorkflowTagEvaluator.IsSpecInWorkflowStatusByTagID method.
Constants class is located ing GSMWebUI.dll, but using it would be difficult.
I would suggest to get to the service in the following manner (I assume you've already referenced GSMLib dll as that is where SpecificationService is located).