net.anotheria.anosite.gen.aswizarddata.bean.WizardDefListItemBean Maven / Gradle / Ivy
/**
********************************************************************************
*** WizardDefListItemBean.java ***
*** generated by AnoSiteGenerator (ASG), Version: 1.3.3 ***
*** Copyright (C) 2005 - 2010 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.aswizarddata.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 WizardDefListItemBean 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 List wizardSteps;
private String handler;
private String wizardCancelRedirectUrl;
private String wizardFinishRedirectUrl;
private String editLink;
private String duplicateLink;
private String deleteWithConfirmationLink;
private String lockLink;
private String unlockLink;
private String versionLink;
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 setWizardSteps(List wizardSteps ){
this.wizardSteps = wizardSteps;
}
public List getWizardSteps(){
return wizardSteps;
}
public void setHandler(String handler ){
this.handler = handler;
}
public String getHandler(){
return handler;
}
public void setWizardCancelRedirectUrl(String wizardCancelRedirectUrl ){
this.wizardCancelRedirectUrl = wizardCancelRedirectUrl;
}
public String getWizardCancelRedirectUrl(){
return wizardCancelRedirectUrl;
}
public void setWizardFinishRedirectUrl(String wizardFinishRedirectUrl ){
this.wizardFinishRedirectUrl = wizardFinishRedirectUrl;
}
public String getWizardFinishRedirectUrl(){
return wizardFinishRedirectUrl;
}
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 setVersionLink(String versionLink ){
this.versionLink = versionLink;
}
public String getVersionLink(){
return versionLink;
}
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){
WizardDefListItemBean anotherBean = (WizardDefListItemBean) anotherComparable;
switch(method){
case WizardDefListItemBeanSortType.SORT_BY_ID:
return BasicComparable.compareInt(idForSorting, anotherBean.idForSorting);
case WizardDefListItemBeanSortType.SORT_BY_NAME:
return BasicComparable.compareString(nameForSorting, anotherBean.nameForSorting);
case WizardDefListItemBeanSortType.SORT_BY_WIZARDSTEPS:
return BasicComparable.compareList(wizardSteps, anotherBean.wizardSteps);
case WizardDefListItemBeanSortType.SORT_BY_HANDLER:
return BasicComparable.compareString(handler, anotherBean.handler);
case WizardDefListItemBeanSortType.SORT_BY_WIZARDCANCELREDIRECTURL:
return BasicComparable.compareString(wizardCancelRedirectUrl, anotherBean.wizardCancelRedirectUrl);
case WizardDefListItemBeanSortType.SORT_BY_WIZARDFINISHREDIRECTURL:
return BasicComparable.compareString(wizardFinishRedirectUrl, anotherBean.wizardFinishRedirectUrl);
default:
throw new RuntimeException("Sort method "+method+" is not supported.");
}
}
}