Package io.digdag.spi.ac
Interface AccessController
-
public interface AccessController
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAccessController.ListFilter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckBackfillSchedule(ScheduleTarget target, AuthenticatedUser user)Check if the user has permissions to backfill the schedule.voidcheckDeleteProject(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to delete the project.voidcheckDeleteProjectSecret(SecretTarget target, AuthenticatedUser user)Check if the user has permissions to delete a project from the project.voidcheckDisableSchedule(ScheduleTarget target, AuthenticatedUser user)Check if the user has permissions to disable the schedule.voidcheckEnableSchedule(ScheduleTarget target, AuthenticatedUser user)Check if the user has permissions to enable the schedule.voidcheckGetAttempt(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get the attempt.voidcheckGetAttemptsFromSession(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get attempts from the session.voidcheckGetLogFiles(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get any log files from the attempt.voidcheckGetProject(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to get the project.voidcheckGetProjectArchive(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to download archive of the project.voidcheckGetProjectSecretList(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to get any secrets from the project.voidcheckGetSchedule(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get the schedule.voidcheckGetScheduleFromWorkflow(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get schedules from the workflow.voidcheckGetSession(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get the session.voidcheckGetTasksFromAttempt(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get tasks from the attempt.voidcheckGetWorkflow(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to get the workflow.voidcheckKillAttempt(AttemptTarget target, AuthenticatedUser user)Check if the user has permissions to kill the attempt.voidcheckListProjectsOfSite(SiteTarget target, AuthenticatedUser user)Check if the user has permissions to list projects within the site.voidcheckListSchedulesOfProject(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to list schedules within the project.voidcheckListSchedulesOfSite(SiteTarget target, AuthenticatedUser user)Check if the user has permissions to list schedules within the site.voidcheckListSessionsOfProject(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to list sessions.voidcheckListSessionsOfSite(SiteTarget target, AuthenticatedUser user)Check if the user has permissions to list sessions within the site.voidcheckListSessionsOfWorkflow(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to list sessions within the workflow.voidcheckListWorkflowsOfProject(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to list workflows within the project.voidcheckListWorkflowsOfSite(SiteTarget target, AuthenticatedUser user)Check if the user has permissions to list workflows within the site.voidcheckPutLogFile(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to put log files to the attempt.voidcheckPutProject(ProjectTarget target, AuthenticatedUser user)Check if the user has permissions to put a project.voidcheckPutProjectSecret(SecretTarget target, AuthenticatedUser user)Check if the user has permissions to put a secret to the project.voidcheckRunWorkflow(WorkflowTarget target, AuthenticatedUser user)Check if the user has permissions to run the workflow.voidcheckSkipSchedule(ScheduleTarget target, AuthenticatedUser user)Check if the user has permissions to skip the schedule.AccessController.ListFiltergetListProjectsFilterOfSite(SiteTarget target, AuthenticatedUser user)Return a filter to return only allowed projects within the site.AccessController.ListFiltergetListSchedulesFilterOfProject(ProjectTarget target, AuthenticatedUser user)Return a filter to return only allowed schedules within the project.AccessController.ListFiltergetListSchedulesFilterOfSite(SiteTarget target, AuthenticatedUser user)Return a filter to return only allowed schedules within the site.AccessController.ListFiltergetListSessionsFilterOfProject(ProjectTarget target, AuthenticatedUser user)Return a filter to return only allowed sessions within the project.AccessController.ListFiltergetListSessionsFilterOfSite(SiteTarget target, AuthenticatedUser user)Return a filter to return only allowed sessions within the site.AccessController.ListFiltergetListSessionsFilterOfWorkflow(WorkflowTarget target, AuthenticatedUser user)Return a filter to return only allowed sessions within the workflow.AccessController.ListFiltergetListWorkflowsFilterOfProject(ProjectTarget target, AuthenticatedUser user)Return a filter to return only allowed workflows within the project.AccessController.ListFiltergetListWorkflowsFilterOfSite(SiteTarget target, AuthenticatedUser user)Return a filter to return only allowed workflows within the site.
-
-
-
Method Detail
-
checkPutProject
void checkPutProject(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to put a project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkDeleteProject
void checkDeleteProject(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to delete the project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetProject
void checkGetProject(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get the project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkListProjectsOfSite
void checkListProjectsOfSite(SiteTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list projects within the site.- Parameters:
target-user-- Throws:
AccessControlException
-
getListProjectsFilterOfSite
AccessController.ListFilter getListProjectsFilterOfSite(SiteTarget target, AuthenticatedUser user)
Return a filter to return only allowed projects within the site.- Parameters:
target-user-- Returns:
-
checkGetProjectArchive
void checkGetProjectArchive(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to download archive of the project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkPutProjectSecret
void checkPutProjectSecret(SecretTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to put a secret to the project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkDeleteProjectSecret
void checkDeleteProjectSecret(SecretTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to delete a project from the project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetProjectSecretList
void checkGetProjectSecretList(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get any secrets from the project.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetWorkflow
void checkGetWorkflow(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get the workflow.- Parameters:
target-user-- Throws:
AccessControlException
-
checkListWorkflowsOfSite
void checkListWorkflowsOfSite(SiteTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list workflows within the site.- Parameters:
target-user-- Throws:
AccessControlException
-
getListWorkflowsFilterOfSite
AccessController.ListFilter getListWorkflowsFilterOfSite(SiteTarget target, AuthenticatedUser user)
Return a filter to return only allowed workflows within the site.- Parameters:
target-user-- Returns:
-
checkListWorkflowsOfProject
void checkListWorkflowsOfProject(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list workflows within the project.- Parameters:
target-user-- Throws:
AccessControlException
-
getListWorkflowsFilterOfProject
AccessController.ListFilter getListWorkflowsFilterOfProject(ProjectTarget target, AuthenticatedUser user)
Return a filter to return only allowed workflows within the project.- Parameters:
target-user-- Returns:
-
checkRunWorkflow
void checkRunWorkflow(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to run the workflow.- Parameters:
target-user-- Throws:
AccessControlException
-
checkPutLogFile
void checkPutLogFile(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to put log files to the attempt.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetLogFiles
void checkGetLogFiles(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get any log files from the attempt.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetSession
void checkGetSession(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get the session.- Parameters:
target-user-- Throws:
AccessControlException
-
checkListSessionsOfSite
void checkListSessionsOfSite(SiteTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list sessions within the site.- Parameters:
target-user-- Throws:
AccessControlException
-
getListSessionsFilterOfSite
AccessController.ListFilter getListSessionsFilterOfSite(SiteTarget target, AuthenticatedUser user)
Return a filter to return only allowed sessions within the site.- Parameters:
target-user-- Returns:
-
checkListSessionsOfProject
void checkListSessionsOfProject(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list sessions.- Parameters:
target-user-- Throws:
AccessControlException
-
getListSessionsFilterOfProject
AccessController.ListFilter getListSessionsFilterOfProject(ProjectTarget target, AuthenticatedUser user)
Return a filter to return only allowed sessions within the project.- Parameters:
target-user-- Returns:
-
checkListSessionsOfWorkflow
void checkListSessionsOfWorkflow(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list sessions within the workflow.- Parameters:
target-user-- Throws:
AccessControlException
-
getListSessionsFilterOfWorkflow
AccessController.ListFilter getListSessionsFilterOfWorkflow(WorkflowTarget target, AuthenticatedUser user)
Return a filter to return only allowed sessions within the workflow.- Parameters:
target-user-- Returns:
-
checkGetAttemptsFromSession
void checkGetAttemptsFromSession(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get attempts from the session.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetAttempt
void checkGetAttempt(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get the attempt.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetTasksFromAttempt
void checkGetTasksFromAttempt(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get tasks from the attempt.- Parameters:
target-user-- Throws:
AccessControlException
-
checkKillAttempt
void checkKillAttempt(AttemptTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to kill the attempt.- Parameters:
target-user-- Throws:
AccessControlException
-
checkGetSchedule
void checkGetSchedule(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get the schedule.- Parameters:
target-user-- Throws:
AccessControlException
-
checkListSchedulesOfSite
void checkListSchedulesOfSite(SiteTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list schedules within the site.- Parameters:
target-user-- Throws:
AccessControlException
-
getListSchedulesFilterOfSite
AccessController.ListFilter getListSchedulesFilterOfSite(SiteTarget target, AuthenticatedUser user)
Return a filter to return only allowed schedules within the site.- Parameters:
target-user-- Returns:
-
checkListSchedulesOfProject
void checkListSchedulesOfProject(ProjectTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to list schedules within the project.- Parameters:
target-user-- Throws:
AccessControlException
-
getListSchedulesFilterOfProject
AccessController.ListFilter getListSchedulesFilterOfProject(ProjectTarget target, AuthenticatedUser user)
Return a filter to return only allowed schedules within the project.- Parameters:
target-user-- Returns:
-
checkGetScheduleFromWorkflow
void checkGetScheduleFromWorkflow(WorkflowTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to get schedules from the workflow.- Parameters:
target-user-- Throws:
AccessControlException
-
checkSkipSchedule
void checkSkipSchedule(ScheduleTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to skip the schedule.- Parameters:
target-user-- Throws:
AccessControlException
-
checkBackfillSchedule
void checkBackfillSchedule(ScheduleTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to backfill the schedule.- Parameters:
target-user-- Throws:
AccessControlException
-
checkDisableSchedule
void checkDisableSchedule(ScheduleTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to disable the schedule.- Parameters:
target-user-- Throws:
AccessControlException
-
checkEnableSchedule
void checkEnableSchedule(ScheduleTarget target, AuthenticatedUser user) throws AccessControlException
Check if the user has permissions to enable the schedule.- Parameters:
target-user-- Throws:
AccessControlException
-
-