Package org.alfresco.repo.quickshare
Class QuickShareLinkExpiryActionImpl
- java.lang.Object
-
- org.alfresco.repo.action.ParameterizedItemImpl
-
- org.alfresco.repo.action.ActionImpl
-
- org.alfresco.repo.quickshare.QuickShareLinkExpiryActionImpl
-
- All Implemented Interfaces:
java.io.Serializable,Action,ParameterizedItem,SchedulableAction,QuickShareLinkExpiryAction
public class QuickShareLinkExpiryActionImpl extends ActionImpl implements QuickShareLinkExpiryAction
Quick share link expiry action implementation class.- Author:
- Jamal Kaabi-Mofrad
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.action.scheduled.SchedulableAction
SchedulableAction.IntervalPeriod
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXECUTOR_NAMEstatic java.lang.StringQUICK_SHARE_LINK_EXPIRY_ACTION_NAME
-
Constructor Summary
Constructors Constructor Description QuickShareLinkExpiryActionImpl(java.lang.String id, java.lang.String sharedId, java.lang.String description)QuickShareLinkExpiryActionImpl(Action action)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.alfresco.service.namespace.QNamecreateQName(java.lang.String sharedId)org.alfresco.service.namespace.QNamegetActionQName()Gets the qualified name which uniquely identifies this quick share link expiry action.ScheduledPersistedActiongetSchedule()Gets the schedule (ScheduledPersistedActionused to get the trigger details.java.lang.IntegergetScheduleIntervalCount()How manySchedulableAction.getScheduleIntervalPeriod()periods should we wait between executions? Will be null if the action isn't scheduled to be repeated.SchedulableAction.IntervalPeriodgetScheduleIntervalPeriod()How long areSchedulableAction.getScheduleIntervalCount()counts measured in?java.util.DategetScheduleStart()Get the first date that the action should be run on or after, or null if it should start shortly after each startup.java.lang.StringgetSharedId()Gets the quick share sharedId.protected voidsetActionQName(org.alfresco.service.namespace.QName actionQName)voidsetSchedule(ScheduledPersistedAction schedule)Sets the schedule (ScheduledPersistedActionused to set the trigger details.voidsetScheduleIntervalCount(java.lang.Integer count)Sets how many periods should be waited between each execution, or null if it shouldn't be repeated.voidsetScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)Sets the interval periodvoidsetScheduleStart(java.util.Date startDate)Sets the first date that the action should be run on or after.-
Methods inherited from class org.alfresco.repo.action.ActionImpl
addActionCondition, addActionCondition, addParameterValues, getActionChain, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionInstance, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getRunAsUser, getTenantId, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionChain, setActionCondition, setCompensatingAction, setCreatedDate, setCreator, setDescription, setExecuteAsynchronously, setExecutionEndDate, setExecutionFailureMessage, setExecutionInstance, setExecutionStartDate, setExecutionStatus, setModifiedDate, setModifier, setNodeRef, setRunAsUser, setTenantId, setTitle, setTrackStatus, toString
-
Methods inherited from class org.alfresco.repo.action.ParameterizedItemImpl
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.alfresco.service.cmr.action.Action
addActionCondition, addActionCondition, addParameterValues, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionCondition, setCompensatingAction, setDescription, setExecuteAsynchronously, setTitle, setTrackStatus
-
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
-
-
-
-
Field Detail
-
EXECUTOR_NAME
public static final java.lang.String EXECUTOR_NAME
- See Also:
- Constant Field Values
-
QUICK_SHARE_LINK_EXPIRY_ACTION_NAME
public static final java.lang.String QUICK_SHARE_LINK_EXPIRY_ACTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QuickShareLinkExpiryActionImpl
public QuickShareLinkExpiryActionImpl(java.lang.String id, java.lang.String sharedId, java.lang.String description)- Parameters:
id- the action idsharedId- a unique name for the quick share link expiry action.description- the action description
-
QuickShareLinkExpiryActionImpl
public QuickShareLinkExpiryActionImpl(Action action)
-
-
Method Detail
-
setActionQName
protected void setActionQName(org.alfresco.service.namespace.QName actionQName)
-
getActionQName
public org.alfresco.service.namespace.QName getActionQName()
Description copied from interface:QuickShareLinkExpiryActionGets the qualified name which uniquely identifies this quick share link expiry action.- Specified by:
getActionQNamein interfaceQuickShareLinkExpiryAction
-
getSchedule
public ScheduledPersistedAction getSchedule()
Description copied from interface:QuickShareLinkExpiryActionGets the schedule (ScheduledPersistedActionused to get the trigger details.- Specified by:
getSchedulein interfaceQuickShareLinkExpiryAction
-
setSchedule
public void setSchedule(ScheduledPersistedAction schedule)
Description copied from interface:QuickShareLinkExpiryActionSets the schedule (ScheduledPersistedActionused to set the trigger details.- Specified by:
setSchedulein interfaceQuickShareLinkExpiryAction
-
getSharedId
public java.lang.String getSharedId()
Description copied from interface:QuickShareLinkExpiryActionGets the quick share sharedId.- Specified by:
getSharedIdin interfaceQuickShareLinkExpiryAction
-
getScheduleStart
public java.util.Date getScheduleStart()
Description copied from interface:SchedulableActionGet the first date that the action should be run on or after, or null if it should start shortly after each startup.- Specified by:
getScheduleStartin interfaceSchedulableAction
-
setScheduleStart
public void setScheduleStart(java.util.Date startDate)
Description copied from interface:SchedulableActionSets the first date that the action should be run on or after. Set to null if the action should be run shortly after each startup.- Specified by:
setScheduleStartin interfaceSchedulableAction
-
getScheduleIntervalCount
public java.lang.Integer getScheduleIntervalCount()
Description copied from interface:SchedulableActionHow manySchedulableAction.getScheduleIntervalPeriod()periods should we wait between executions? Will be null if the action isn't scheduled to be repeated.- Specified by:
getScheduleIntervalCountin interfaceSchedulableAction
-
setScheduleIntervalCount
public void setScheduleIntervalCount(java.lang.Integer count)
Description copied from interface:SchedulableActionSets how many periods should be waited between each execution, or null if it shouldn't be repeated.- Specified by:
setScheduleIntervalCountin interfaceSchedulableAction
-
getScheduleIntervalPeriod
public SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
Description copied from interface:SchedulableActionHow long areSchedulableAction.getScheduleIntervalCount()counts measured in?- Specified by:
getScheduleIntervalPeriodin interfaceSchedulableAction
-
setScheduleIntervalPeriod
public void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
Description copied from interface:SchedulableActionSets the interval period- Specified by:
setScheduleIntervalPeriodin interfaceSchedulableAction
-
createQName
public static org.alfresco.service.namespace.QName createQName(java.lang.String sharedId)
-
-