| Modifier and Type | Method and Description |
|---|---|
static Scope[] |
scopesToArray(boolean addDefault,
Scope... scopes)
Utility for converting scopes to array with required validation and aggregation.
All composite scopes would be expanded to flat structure. All duplicated scopes would be skipped. |
static String |
scopesToString(Scope... scopes)
Convert scopes array to string representation, it's unique for given scopes, scopes order doesn't matter.
Uses ScopeUtil.scopesToArray(false,scopes) upon preparation. |
public static String scopesToString(Scope... scopes)
ScopeUtil.scopesToArray(false,scopes) upon preparation.scopes - scopes arrayString representationpublic static Scope[] scopesToArray(boolean addDefault, Scope... scopes)
scopes - original scopes arrayaddDefault - add default scope if original is emptyCopyright © 2013–2019 BB Corp. All rights reserved.