net.anotheria.anosite.gen.aswebdata.bean.BoxListItemBean Maven / Gradle / Ivy
/**
********************************************************************************
*** BoxListItemBean.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 BoxListItemBean 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 type;
// Elements sort type is ALPHABETHICAL
private String typeForSorting;
private String handler;
// Elements sort type is ALPHABETHICAL
private String handlerForSorting;
private String cssClass;
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 String subboxes;
// Elements sort type is CONTAINERS
private List subboxesForSorting;
private String guards;
// Elements sort type is CONTAINERS
private List guardsForSorting;
private String attributes;
// Elements sort type is CONTAINERS
private List attributesForSorting;
private String feature;
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 setTypeForSorting(String typeForSorting ){
this.typeForSorting = typeForSorting;
}
public String getTypeForSorting(){
return typeForSorting;
}
public void setType(String type ){
this.type = type;
}
public String getType(){
return type;
}
public void setHandlerForSorting(String handlerForSorting ){
this.handlerForSorting = handlerForSorting;
}
public String getHandlerForSorting(){
return handlerForSorting;
}
public void setHandler(String handler ){
this.handler = handler;
}
public String getHandler(){
return handler;
}
public void setCssClass(String cssClass ){
this.cssClass = cssClass;
}
public String getCssClass(){
return cssClass;
}
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 setSubboxesForSorting(List subboxesForSorting ){
this.subboxesForSorting = subboxesForSorting;
}
public List getSubboxesForSorting(){
return subboxesForSorting;
}
public void setSubboxes(String subboxes ){
this.subboxes = subboxes;
}
public String getSubboxes(){
return subboxes;
}
public void setGuardsForSorting(List guardsForSorting ){
this.guardsForSorting = guardsForSorting;
}
public List getGuardsForSorting(){
return guardsForSorting;
}
public void setGuards(String guards ){
this.guards = guards;
}
public String getGuards(){
return guards;
}
public void setAttributesForSorting(List attributesForSorting ){
this.attributesForSorting = attributesForSorting;
}
public List getAttributesForSorting(){
return attributesForSorting;
}
public void setAttributes(String attributes ){
this.attributes = attributes;
}
public String getAttributes(){
return attributes;
}
public void setFeature(String feature ){
this.feature = feature;
}
public String getFeature(){
return feature;
}
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){
BoxListItemBean anotherBean = (BoxListItemBean) anotherComparable;
switch(method){
case BoxListItemBeanSortType.SORT_BY_ID:
return BasicComparable.compareInt(idForSorting, anotherBean.idForSorting);
case BoxListItemBeanSortType.SORT_BY_NAME:
return BasicComparable.compareString(nameForSorting, anotherBean.nameForSorting);
case BoxListItemBeanSortType.SORT_BY_TYPE:
return BasicComparable.compareString(typeForSorting, anotherBean.typeForSorting);
case BoxListItemBeanSortType.SORT_BY_HANDLER:
return BasicComparable.compareString(handlerForSorting, anotherBean.handlerForSorting);
case BoxListItemBeanSortType.SORT_BY_CSSCLASS:
return BasicComparable.compareString(cssClass, anotherBean.cssClass);
case BoxListItemBeanSortType.SORT_BY_MEDIALINKS:
return BasicComparable.compareList(mediaLinksForSorting, anotherBean.mediaLinksForSorting);
case BoxListItemBeanSortType.SORT_BY_SCRIPTS:
return BasicComparable.compareList(scriptsForSorting, anotherBean.scriptsForSorting);
case BoxListItemBeanSortType.SORT_BY_LOCALIZATIONS:
return BasicComparable.compareList(localizationsForSorting, anotherBean.localizationsForSorting);
case BoxListItemBeanSortType.SORT_BY_SUBBOXES:
return BasicComparable.compareList(subboxesForSorting, anotherBean.subboxesForSorting);
case BoxListItemBeanSortType.SORT_BY_GUARDS:
return BasicComparable.compareList(guardsForSorting, anotherBean.guardsForSorting);
case BoxListItemBeanSortType.SORT_BY_ATTRIBUTES:
return BasicComparable.compareList(attributesForSorting, anotherBean.attributesForSorting);
default:
throw new RuntimeException("Sort method "+method+" is not supported.");
}
}
}