aslsocial/src/main/java/org/gcube/applicationsupportlayer/social/ScopeBeanExt.java

20 lines
428 B
Java

package org.gcube.applicationsupportlayer.social;
import org.gcube.common.scope.impl.ScopeBean;
public class ScopeBeanExt extends ScopeBean {
public ScopeBeanExt(String scope) throws IllegalArgumentException {
super(scope);
}
/**
*
* @return the infrastructure scope e.g. /gcube
*/
public String getInfrastructureScope() {
String[] components = name().split(separator);
return separator+components[1];
}
}