public interface ResourceContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGlobalFunctionGranted(java.lang.Class<? extends net.nemerosa.ontrack.model.security.GlobalFunction> fn)
Checks if the
fn function is granted for the current user. |
boolean |
isProjectFunctionGranted(int projectId,
java.lang.Class<? extends net.nemerosa.ontrack.model.security.ProjectFunction> fn)
Checks if the
fn function is granted for the current user
for the projectId project. |
default boolean |
isProjectFunctionGranted(net.nemerosa.ontrack.model.structure.ProjectEntity projectEntity,
java.lang.Class<? extends net.nemerosa.ontrack.model.security.ProjectFunction> fn)
Checks if the
fn function is granted for the current user
for the projectEntity's project. |
LinksBuilder |
links()
Gets a builder for links
|
java.net.URI |
uri(java.lang.Object methodInvocation) |
java.net.URI uri(java.lang.Object methodInvocation)
URIBuilder.build(Object)LinksBuilder links()
boolean isProjectFunctionGranted(int projectId,
java.lang.Class<? extends net.nemerosa.ontrack.model.security.ProjectFunction> fn)
fn function is granted for the current user
for the projectId project.default boolean isProjectFunctionGranted(net.nemerosa.ontrack.model.structure.ProjectEntity projectEntity,
java.lang.Class<? extends net.nemerosa.ontrack.model.security.ProjectFunction> fn)
fn function is granted for the current user
for the projectEntity's project.boolean isGlobalFunctionGranted(java.lang.Class<? extends net.nemerosa.ontrack.model.security.GlobalFunction> fn)
fn function is granted for the current user.