The Component SDK includes a batch script for creating a new Security Manager.
To create a new Security Manager project:
For Linux:
./create-bddsecuritymanager.sh <securityManagerName>
For Windows:
create-bddsecuritymanager.bat <securityManagerName>
Where <securityManagerName> is the name you want to use for the security manager. For example:
./create-bddsecuritymanager.sh restrict-region-data
The name cannot have spaces.
This command creates a <securityManagerName> directory in bddsecuritymanager.
This directory is an Eclipse project that you can import directly into Eclipse.
It also contains a sample implementation that can help you understand how the Security Manager is used.
public void applySecurity(PortletRequest request, MDEXState mdexState, Query query) throws BddSecurityException;
The Query class in this signature is com.endeca.portal.data.Query. This class provides a simple wrapper around a Conversation Service request.
Extensions Guide · Version 1.4.0 · October 2016
Copyright © 2015, 2016 Oracle and/or its affiliates. All rights reserved.