Class RedirectCleaningAction
java.lang.Object
sk.iway.iwcm.components.redirects.RedirectCleaningAction
- All Implemented Interfaces:
Serializable
Serializable read-only DataTable row describing one operation in a redirect
cleaning preview. A database redirect can occur at most once in a plan.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOperations produced by redirect cleaning analysis inside one domain scope. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty action required by DataTable and cached snapshot deserialization.RedirectCleaningAction(Long id, RedirectCleaningAction.ActionType action, String oldUrl, String currentNewUrl, String proposedNewUrl, String domainName, Integer redirectCode, Date insertDate) Creates a complete redirect cleaning action snapshot. -
Method Summary
Modifier and TypeMethodDescriptiongetId()booleanisDelete()Indicates whether this action removes the redirect instead of updating its target URL.voidvoidsetCurrentNewUrl(String currentNewUrl) voidsetDomainName(String domainName) voidvoidsetInsertDate(Date insertDate) voidvoidsetProposedNewUrl(String proposedNewUrl) voidsetRedirectCode(Integer redirectCode)
-
Constructor Details
-
RedirectCleaningAction
public RedirectCleaningAction()Creates an empty action required by DataTable and cached snapshot deserialization. -
RedirectCleaningAction
public RedirectCleaningAction(Long id, RedirectCleaningAction.ActionType action, String oldUrl, String currentNewUrl, String proposedNewUrl, String domainName, Integer redirectCode, Date insertDate) Creates a complete redirect cleaning action snapshot.- Parameters:
id- database redirect identifieraction- operation to executeoldUrl- source URLcurrentNewUrl- target URL at analysis timeproposedNewUrl- optimized target URL, ornullfor delete actionsdomainName- original redirect domainredirectCode- HTTP redirect status codeinsertDate- redirect creation timestamp
-
-
Method Details
-
isDelete
public boolean isDelete()Indicates whether this action removes the redirect instead of updating its target URL.- Returns:
truefor all delete actions,falseforRedirectCleaningAction.ActionType.UPDATE_OPTIMIZE
-
getId
-
getAction
-
getOldUrl
-
getCurrentNewUrl
-
getProposedNewUrl
-
getDomainName
-
getRedirectCode
-
getInsertDate
-
setId
-
setAction
-
setOldUrl
-
setCurrentNewUrl
-
setProposedNewUrl
-
setDomainName
-
setRedirectCode
-
setInsertDate
-