Interface LifeCyclePolicy
- All Known Implementing Classes:
LifeCyclePolicyImpl
public interface LifeCyclePolicy
Represents a life cycle policy in Opencast
-
Method Summary
Modifier and TypeMethodDescriptionGets the access control entries restricting who may manage this policyGets the action to be performed when the policy is appliedGets the date at which the policy's action should be performedGets the parameters for the policy'sActionGets the cron expression that triggers the policy for aTiming.REPEATINGpolicygetId()Gets the policy's identifierGets the policy's organization identifierGets the filters used to determine which entities this policy targets.Gets the type of entity this policy targetsGets the policy'sTiminggetTitle()Gets the policy's titlebooleanisActive()Returns whether the policy is currently activebooleanReturns whether the policy was created from a configuration filevoidsetAccessControlEntries(List<LifeCyclePolicyAccessControlEntry> accessControlEntries) Sets the access control entries restricting who may manage this policyvoidSets the action to be performed when the policy is appliedvoidsetActionDate(Date actionDate) Sets the date at which the policy's action should be performedvoidsetActionParameters(String actionParameters) Sets the parameters for the policy'sActionvoidsetActive(boolean active) Sets whether the policy is currently activevoidsetCreatedFromConfig(boolean createdFromConfig) Sets whether the policy was created from a configuration filevoidsetCronTrigger(String cronTrigger) Sets the cron expression that triggers the policy for aTiming.REPEATINGpolicyvoidSets the policy's identifiervoidsetOrganization(String organization) Sets the policy's organization identifiervoidsetTargetFilters(Map<String, Map<String, EventSearchQueryField<String>>> targetFilters) Sets the filters used to determine which entities this policy targets.voidsetTargetType(TargetType targetType) Sets the type of entity this policy targetsvoidSets the policy'sTimingvoidSets the policy's title
-
Method Details
-
getId
String getId()Gets the policy's identifier- Returns:
- the policy identifier
-
setId
Sets the policy's identifier- Parameters:
id- the policy identifier
-
getOrganization
String getOrganization()Gets the policy's organization identifier- Returns:
- the organization identifier
-
setOrganization
Sets the policy's organization identifier- Parameters:
organization- the organization identifier
-
getTitle
String getTitle()Gets the policy's title- Returns:
- the title
-
setTitle
Sets the policy's title- Parameters:
title- the title
-
getTargetType
TargetType getTargetType()Gets the type of entity this policy targets- Returns:
- the
TargetType
-
setTargetType
Sets the type of entity this policy targets- Parameters:
targetType- theTargetType
-
getAction
Action getAction()Gets the action to be performed when the policy is applied- Returns:
- the
Action
-
setAction
Sets the action to be performed when the policy is applied- Parameters:
action- theAction
-
getActionParameters
String getActionParameters()Gets the parameters for the policy'sAction- Returns:
- the action parameters
-
setActionParameters
Sets the parameters for the policy'sAction- Parameters:
actionParameters- the action parameters
-
getActionDate
Date getActionDate()Gets the date at which the policy's action should be performed- Returns:
- the action date
-
setActionDate
Sets the date at which the policy's action should be performed- Parameters:
actionDate- the action date
-
getCronTrigger
String getCronTrigger()Gets the cron expression that triggers the policy for aTiming.REPEATINGpolicy- Returns:
- the cron trigger expression
-
setCronTrigger
Sets the cron expression that triggers the policy for aTiming.REPEATINGpolicy- Parameters:
cronTrigger- the cron trigger expression
-
getTiming
Timing getTiming()Gets the policy'sTiming- Returns:
- the timing
-
setTiming
Sets the policy'sTiming- Parameters:
timing- the timing
-
isActive
boolean isActive()Returns whether the policy is currently active- Returns:
- true if the policy is active
-
setActive
void setActive(boolean active) Sets whether the policy is currently active- Parameters:
active- true if the policy is active
-
isCreatedFromConfig
boolean isCreatedFromConfig()Returns whether the policy was created from a configuration file- Returns:
- true if the policy was created from configuration
-
setCreatedFromConfig
void setCreatedFromConfig(boolean createdFromConfig) Sets whether the policy was created from a configuration file- Parameters:
createdFromConfig- true if the policy was created from configuration
-
getTargetFilters
Gets the filters used to determine which entities this policy targets. The outer map is keyed by metadata catalog flavor (e.g. "dublincore/episode"). The inner map hols the catalogs name/value pairs.- Returns:
- the target filters
-
setTargetFilters
Sets the filters used to determine which entities this policy targets. The outer map is keyed by metadata catalog flavor (e.g. "dublincore/episode"). The inner map hols the catalogs name/value pairs.- Parameters:
targetFilters- the target filters
-
getAccessControlEntries
List<LifeCyclePolicyAccessControlEntry> getAccessControlEntries()Gets the access control entries restricting who may manage this policy- Returns:
- the list of
LifeCyclePolicyAccessControlEntrys
-
setAccessControlEntries
Sets the access control entries restricting who may manage this policy- Parameters:
accessControlEntries- the list ofLifeCyclePolicyAccessControlEntrys
-