added scope validator method

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/portal-auth-library@142254 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-02-06 13:33:10 +00:00
parent 7c864237c6
commit fec7f9f8d9
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ public class AuthUtil {
* @param context
* @return <code>true</code> if the scope is valid and exists or <code>false</code> otherwise
*/
public boolean isValidContext(String context) {
public static boolean isValidContext(String context) {
GroupManager gm = new LiferayGroupManager();
try {
long groupId = gm.getGroupIdFromInfrastructureScope(context);