net.anotheria.anosite.gen.aswebdata.bean.PagexListItemBean Maven / Gradle / Ivy
/**
********************************************************************************
*** PagexListItemBean.java ***
*** generated by AnoSiteGenerator (ASG), Version: 3.2.2 ***
*** Copyright (C) 2005 - 2023 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.aswebdata.bean;
import java.util.List;
import net.anotheria.util.sorter.IComparable;
import net.anotheria.util.BasicComparable;
/**
* Generated by class net.anotheria.asg.generator.view.action.ModuleBeanGenerator
*/
public class PagexListItemBean implements IComparable{
// Generated by: class net.anotheria.asg.generator.view.action.ModuleBeanGenerator.generateListItemBean
private String id;
// Elements sort type is NUMERICAL
private int idForSorting;
private String name;
// Elements sort type is ALPHABETHICAL
private String nameForSorting;
private String localizedNameEN;
private String localizedNameForSortingEN;
private String localizedNameDE;
private String localizedNameForSortingDE;
private String template;
private String c1;
// Elements sort type is CONTAINERS
private List c1ForSorting;
private String c2;
// Elements sort type is CONTAINERS
private List c2ForSorting;
private String c3;
// Elements sort type is CONTAINERS
private List c3ForSorting;
private String header;
// Elements sort type is CONTAINERS
private List headerForSorting;
private String footer;
// Elements sort type is CONTAINERS
private List footerForSorting;
private String mediaLinks;
// Elements sort type is CONTAINERS
private List mediaLinksForSorting;
private String scripts;
// Elements sort type is CONTAINERS
private List scriptsForSorting;
private String localizations;
// Elements sort type is CONTAINERS
private List localizationsForSorting;
private boolean httpsonly;
private String previewLink;
private String editLink;
private String duplicateLink;
private String deleteWithConfirmationLink;
private String lockLink;
private String unlockLink;
private String showUsagesLink;
private String versionLink;
private String transferLink;
private String plainId;
private String documentLastUpdateTimestamp;
public void setIdForSorting(String idForSorting ){
this.idForSorting = Integer.parseInt(idForSorting);
}
public int getIdForSorting(){
return idForSorting;
}
public void setId(String id ){
this.id = id;
}
public String getId(){
return id;
}
public void setNameForSorting(String nameForSorting ){
this.nameForSorting = nameForSorting;
}
public String getNameForSorting(){
return nameForSorting;
}
public void setName(String name ){
this.name = name;
}
public String getName(){
return name;
}
public void setLocalizedNameForSortingEN(String localizedNameForSorting ){
this.localizedNameForSortingEN = localizedNameForSorting;
}
public String getLocalizedNameForSortingEN(){
return localizedNameForSortingEN;
}
public void setLocalizedNameEN(String localizedName ){
this.localizedNameEN = localizedName;
}
public String getLocalizedNameEN(){
return localizedNameEN;
}
public void setLocalizedNameForSortingDE(String localizedNameForSorting ){
this.localizedNameForSortingDE = localizedNameForSorting;
}
public String getLocalizedNameForSortingDE(){
return localizedNameForSortingDE;
}
public void setLocalizedNameDE(String localizedName ){
this.localizedNameDE = localizedName;
}
public String getLocalizedNameDE(){
return localizedNameDE;
}
public void setTemplate(String template ){
this.template = template;
}
public String getTemplate(){
return template;
}
public void setC1ForSorting(List c1ForSorting ){
this.c1ForSorting = c1ForSorting;
}
public List getC1ForSorting(){
return c1ForSorting;
}
public void setC1(String c1 ){
this.c1 = c1;
}
public String getC1(){
return c1;
}
public void setC2ForSorting(List c2ForSorting ){
this.c2ForSorting = c2ForSorting;
}
public List getC2ForSorting(){
return c2ForSorting;
}
public void setC2(String c2 ){
this.c2 = c2;
}
public String getC2(){
return c2;
}
public void setC3ForSorting(List c3ForSorting ){
this.c3ForSorting = c3ForSorting;
}
public List getC3ForSorting(){
return c3ForSorting;
}
public void setC3(String c3 ){
this.c3 = c3;
}
public String getC3(){
return c3;
}
public void setHeaderForSorting(List headerForSorting ){
this.headerForSorting = headerForSorting;
}
public List getHeaderForSorting(){
return headerForSorting;
}
public void setHeader(String header ){
this.header = header;
}
public String getHeader(){
return header;
}
public void setFooterForSorting(List footerForSorting ){
this.footerForSorting = footerForSorting;
}
public List getFooterForSorting(){
return footerForSorting;
}
public void setFooter(String footer ){
this.footer = footer;
}
public String getFooter(){
return footer;
}
public void setMediaLinksForSorting(List mediaLinksForSorting ){
this.mediaLinksForSorting = mediaLinksForSorting;
}
public List getMediaLinksForSorting(){
return mediaLinksForSorting;
}
public void setMediaLinks(String mediaLinks ){
this.mediaLinks = mediaLinks;
}
public String getMediaLinks(){
return mediaLinks;
}
public void setScriptsForSorting(List scriptsForSorting ){
this.scriptsForSorting = scriptsForSorting;
}
public List getScriptsForSorting(){
return scriptsForSorting;
}
public void setScripts(String scripts ){
this.scripts = scripts;
}
public String getScripts(){
return scripts;
}
public void setLocalizationsForSorting(List localizationsForSorting ){
this.localizationsForSorting = localizationsForSorting;
}
public List getLocalizationsForSorting(){
return localizationsForSorting;
}
public void setLocalizations(String localizations ){
this.localizations = localizations;
}
public String getLocalizations(){
return localizations;
}
public void setHttpsonly(boolean httpsonly ){
this.httpsonly = httpsonly;
}
public boolean isHttpsonly(){
return httpsonly;
}
public void setPreviewLink(String previewLink ){
this.previewLink = previewLink;
}
public String getPreviewLink(){
return previewLink;
}
public void setEditLink(String editLink ){
this.editLink = editLink;
}
public String getEditLink(){
return editLink;
}
public void setDuplicateLink(String duplicateLink ){
this.duplicateLink = duplicateLink;
}
public String getDuplicateLink(){
return duplicateLink;
}
public void setDeleteWithConfirmationLink(String deleteWithConfirmationLink ){
this.deleteWithConfirmationLink = deleteWithConfirmationLink;
}
public String getDeleteWithConfirmationLink(){
return deleteWithConfirmationLink;
}
public void setLockLink(String lockLink ){
this.lockLink = lockLink;
}
public String getLockLink(){
return lockLink;
}
public void setUnlockLink(String unlockLink ){
this.unlockLink = unlockLink;
}
public String getUnlockLink(){
return unlockLink;
}
public void setShowUsagesLink(String showUsagesLink ){
this.showUsagesLink = showUsagesLink;
}
public String getShowUsagesLink(){
return showUsagesLink;
}
public void setVersionLink(String versionLink ){
this.versionLink = versionLink;
}
public String getVersionLink(){
return versionLink;
}
public void setTransferLink(String transferLink ){
this.transferLink = transferLink;
}
public String getTransferLink(){
return transferLink;
}
public void setPlainId(String plainId ){
this.plainId = plainId;
}
public String getPlainId(){
return plainId;
}
public void setDocumentLastUpdateTimestamp(String documentLastUpdateTimestamp ){
this.documentLastUpdateTimestamp = documentLastUpdateTimestamp;
}
public String getDocumentLastUpdateTimestamp(){
return documentLastUpdateTimestamp;
}
/**
* LockableObject "locked" property. For object Locking.
*/
private boolean locked;
public void setLocked(boolean locked ){
this.locked = locked;
}
public boolean isLocked(){
return locked;
}
/**
* LockableObject "lockerId" property. For userName containing.
*/
private String lockerId;
public void setLockerId(String lockerId ){
this.lockerId = lockerId;
}
public String getLockerId(){
return lockerId;
}
/**
* LockableObject "lockingTime" property.
*/
private String lockingTime;
public void setLockingTime(String lockingTime ){
this.lockingTime = lockingTime;
}
public String getLockingTime(){
return lockingTime;
}
public int compareTo(IComparable anotherComparable, int method){
PagexListItemBean anotherBean = (PagexListItemBean) anotherComparable;
switch(method){
case PagexListItemBeanSortType.SORT_BY_ID:
return BasicComparable.compareInt(idForSorting, anotherBean.idForSorting);
case PagexListItemBeanSortType.SORT_BY_NAME:
return BasicComparable.compareString(nameForSorting, anotherBean.nameForSorting);
case PagexListItemBeanSortType.SORT_BY_LOCALIZEDNAMEEN:
return BasicComparable.compareString(localizedNameForSortingEN, anotherBean.localizedNameForSortingEN);
case PagexListItemBeanSortType.SORT_BY_LOCALIZEDNAMEDE:
return BasicComparable.compareString(localizedNameForSortingDE, anotherBean.localizedNameForSortingDE);
case PagexListItemBeanSortType.SORT_BY_TEMPLATE:
return BasicComparable.compareString(template, anotherBean.template);
case PagexListItemBeanSortType.SORT_BY_C1:
return BasicComparable.compareList(c1ForSorting, anotherBean.c1ForSorting);
case PagexListItemBeanSortType.SORT_BY_C2:
return BasicComparable.compareList(c2ForSorting, anotherBean.c2ForSorting);
case PagexListItemBeanSortType.SORT_BY_C3:
return BasicComparable.compareList(c3ForSorting, anotherBean.c3ForSorting);
case PagexListItemBeanSortType.SORT_BY_HEADER:
return BasicComparable.compareList(headerForSorting, anotherBean.headerForSorting);
case PagexListItemBeanSortType.SORT_BY_FOOTER:
return BasicComparable.compareList(footerForSorting, anotherBean.footerForSorting);
case PagexListItemBeanSortType.SORT_BY_MEDIALINKS:
return BasicComparable.compareList(mediaLinksForSorting, anotherBean.mediaLinksForSorting);
case PagexListItemBeanSortType.SORT_BY_SCRIPTS:
return BasicComparable.compareList(scriptsForSorting, anotherBean.scriptsForSorting);
case PagexListItemBeanSortType.SORT_BY_LOCALIZATIONS:
return BasicComparable.compareList(localizationsForSorting, anotherBean.localizationsForSorting);
default:
throw new RuntimeException("Sort method "+method+" is not supported.");
}
}
}