Show Me Glossary
 

GenieQueryFilter Walk-Through

Previous previous|next Next Page

Timothy begins by designing a public class - GenieQueryFilter by implementing the QueryFilterPlugin interface.

This class will return the security attributes values that correspond to the currently logged in end-user, which will be used to construct the user-defined query filter string to be added to the Text query.

For example, if “resp” is a grant security attribute for responsibilities and if User1 is logged in, then QueryFilterPlugin.getSecurityValues(“resp”) should return an array of values corresponding to the responsibilities of User1. These values can be used to build a filter to return the documents authorized for User1 and his/her responsibilities.

Lets view the class implementation designed by Timothy.

 

Show Me

Show Me

Click here to view the complete pseudo-code of GeneiQueryFilter.java.