Class GrantFragment
java.lang.Object
com.kosdev.kos.commons.util.json.fragments.GrantFragment
- All Implemented Interfaces:
KosDescriptorFragment
Standard information about grants encoded into
descriptor.json within
a KAB of type kos.grant. The fields of this object describe details
about one or more grants.- Since:
- 9
- Version:
- 9
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInformation about a single grant. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional authority that this grant is restricted to.List of grants in the fragment.voidsetAuthority(String authority) Optional authority that this grant is restricted to.voidsetGrants(List<GrantFragment.Grant> grants) List of grants in the fragment.
-
Field Details
-
PATH
Path to where thisGrantFragmentobject exists in a standard KOS descriptor.json file:kos.grants.- See Also:
-
-
Constructor Details
-
GrantFragment
public GrantFragment()
-
-
Method Details
-
getAuthority
Optional authority that this grant is restricted to. -
getGrants
List of grants in the fragment. -
setAuthority
Optional authority that this grant is restricted to. -
setGrants
List of grants in the fragment.
-