org.apache.archiva.redback.role.model.ModelOperation Maven / Gradle / Ivy
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.7,
// any modifications will be overwritten.
// ==============================================================
package org.apache.archiva.redback.role.model;
/**
* Class ModelOperation.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class ModelOperation
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field id.
*/
private String id;
/**
* Field name.
*/
private String name;
/**
* Field description.
*/
private String description;
/**
*
* this operation should persist even if all
* referring
* permissions are removed
* .
*/
private boolean permanent = false;
//-----------/
//- Methods -/
//-----------/
/**
* Method equals.
*
* @param other
* @return boolean
*/
public boolean equals( Object other )
{
if ( this == other )
{
return true;
}
if ( !( other instanceof ModelOperation ) )
{
return false;
}
ModelOperation that = (ModelOperation) other;
boolean result = true;
result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
return result;
} //-- boolean equals( Object )
/**
* Get the description field.
*
* @return String
*/
public String getDescription()
{
return this.description;
} //-- String getDescription()
/**
* Get the id field.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* Get the name field.
*
* @return String
*/
public String getName()
{
return this.name;
} //-- String getName()
/**
* Method hashCode.
*
* @return int
*/
public int hashCode()
{
int result = 17;
result = 37 * result + ( id != null ? id.hashCode() : 0 );
return result;
} //-- int hashCode()
/**
* Get this operation should persist even if all referring
* permissions are removed.
*
* @return boolean
*/
public boolean isPermanent()
{
return this.permanent;
} //-- boolean isPermanent()
/**
* Set the description field.
*
* @param description
*/
public void setDescription( String description )
{
this.description = description;
} //-- void setDescription( String )
/**
* Set the id field.
*
* @param id
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
/**
* Set the name field.
*
* @param name
*/
public void setName( String name )
{
this.name = name;
} //-- void setName( String )
/**
* Set this operation should persist even if all referring
* permissions are removed.
*
* @param permanent
*/
public void setPermanent( boolean permanent )
{
this.permanent = permanent;
} //-- void setPermanent( boolean )
/**
* Method toString.
*
* @return String
*/
public java.lang.String toString()
{
StringBuilder buf = new StringBuilder( 128 );
buf.append( "id = '" );
buf.append( getId() );
buf.append( "'" );
return buf.toString();
} //-- java.lang.String toString()
}