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:
parent
7c864237c6
commit
fec7f9f8d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue