net.anotheria.anosite.gen.assitedata.bean.SiteListItemBean Maven / Gradle / Ivy
/**
********************************************************************************
*** SiteListItemBean.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.assitedata.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 SiteListItemBean 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 titleEN;
private String titleDE;
private String topNavi;
// Elements sort type is CONTAINERS
private List topNaviForSorting;
private String mainNavi;
// Elements sort type is CONTAINERS
private List mainNaviForSorting;
private String startpage;
// Elements sort type is ALPHABETHICAL
private String startpageForSorting;
private String searchpage;
// Elements sort type is ALPHABETHICAL
private String searchpageForSorting;
private String editLink;
private String duplicateLink;
private String deleteWithConfirmationLink;
private String lockLink;
private String unlockLink;
private String showUsagesLink;
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 setTitleEN(String title ){
this.titleEN = title;
}
public String getTitleEN(){
return titleEN;
}
public void setTitleDE(String title ){
this.titleDE = title;
}
public String getTitleDE(){
return titleDE;
}
public void setTopNaviForSorting(List topNaviForSorting ){
this.topNaviForSorting = topNaviForSorting;
}
public List getTopNaviForSorting(){
return topNaviForSorting;
}
public void setTopNavi(String topNavi ){
this.topNavi = topNavi;
}
public String getTopNavi(){
return topNavi;
}
public void setMainNaviForSorting(List mainNaviForSorting ){
this.mainNaviForSorting = mainNaviForSorting;
}
public List getMainNaviForSorting(){
return mainNaviForSorting;
}
public void setMainNavi(String mainNavi ){
this.mainNavi = mainNavi;
}
public String getMainNavi(){
return mainNavi;
}
public void setStartpageForSorting(String startpageForSorting ){
this.startpageForSorting = startpageForSorting;
}
public String getStartpageForSorting(){
return startpageForSorting;
}
public void setStartpage(String startpage ){
this.startpage = startpage;
}
public String getStartpage(){
return startpage;
}
public void setSearchpageForSorting(String searchpageForSorting ){
this.searchpageForSorting = searchpageForSorting;
}
public String getSearchpageForSorting(){
return searchpageForSorting;
}
public void setSearchpage(String searchpage ){
this.searchpage = searchpage;
}
public String getSearchpage(){
return searchpage;
}
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 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){
SiteListItemBean anotherBean = (SiteListItemBean) anotherComparable;
switch(method){
case SiteListItemBeanSortType.SORT_BY_ID:
return BasicComparable.compareInt(idForSorting, anotherBean.idForSorting);
case SiteListItemBeanSortType.SORT_BY_NAME:
return BasicComparable.compareString(nameForSorting, anotherBean.nameForSorting);
case SiteListItemBeanSortType.SORT_BY_TITLEEN:
return BasicComparable.compareString(titleEN, anotherBean.titleEN);
case SiteListItemBeanSortType.SORT_BY_TITLEDE:
return BasicComparable.compareString(titleDE, anotherBean.titleDE);
case SiteListItemBeanSortType.SORT_BY_TOPNAVI:
return BasicComparable.compareList(topNaviForSorting, anotherBean.topNaviForSorting);
case SiteListItemBeanSortType.SORT_BY_MAINNAVI:
return BasicComparable.compareList(mainNaviForSorting, anotherBean.mainNaviForSorting);
case SiteListItemBeanSortType.SORT_BY_STARTPAGE:
return BasicComparable.compareString(startpageForSorting, anotherBean.startpageForSorting);
case SiteListItemBeanSortType.SORT_BY_SEARCHPAGE:
return BasicComparable.compareString(searchpageForSorting, anotherBean.searchpageForSorting);
default:
throw new RuntimeException("Sort method "+method+" is not supported.");
}
}
}