org.apache.archiva.redback.role.model.ModelApplication 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;
/**
*
* container for applications
* .
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class ModelApplication
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field version.
*/
private String version;
/**
* Field id.
*/
private String id;
/**
* Field description.
*/
private String description;
/**
* Field longDescription.
*/
private String longDescription;
/**
* Field resources.
*/
private java.util.List resources;
/**
* Field operations.
*/
private java.util.List operations;
/**
* Field roles.
*/
private java.util.List roles;
/**
* Field templates.
*/
private java.util.List templates;
//-----------/
//- Methods -/
//-----------/
/**
* Method addOperation.
*
* @param modelOperation
*/
public void addOperation( ModelOperation modelOperation )
{
getOperations().add( modelOperation );
} //-- void addOperation( ModelOperation )
/**
* Method addResource.
*
* @param modelResource
*/
public void addResource( ModelResource modelResource )
{
getResources().add( modelResource );
} //-- void addResource( ModelResource )
/**
* Method addRole.
*
* @param modelRole
*/
public void addRole( ModelRole modelRole )
{
getRoles().add( modelRole );
} //-- void addRole( ModelRole )
/**
* Method addTemplate.
*
* @param modelTemplate
*/
public void addTemplate( ModelTemplate modelTemplate )
{
getTemplates().add( modelTemplate );
} //-- void addTemplate( ModelTemplate )
/**
* 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 longDescription field.
*
* @return String
*/
public String getLongDescription()
{
return this.longDescription;
} //-- String getLongDescription()
/**
* Method getOperations.
*
* @return List
*/
public java.util.List getOperations()
{
if ( this.operations == null )
{
this.operations = new java.util.ArrayList();
}
return this.operations;
} //-- java.util.List getOperations()
/**
* Method getResources.
*
* @return List
*/
public java.util.List getResources()
{
if ( this.resources == null )
{
this.resources = new java.util.ArrayList();
}
return this.resources;
} //-- java.util.List getResources()
/**
* Method getRoles.
*
* @return List
*/
public java.util.List getRoles()
{
if ( this.roles == null )
{
this.roles = new java.util.ArrayList();
}
return this.roles;
} //-- java.util.List getRoles()
/**
* Method getTemplates.
*
* @return List
*/
public java.util.List getTemplates()
{
if ( this.templates == null )
{
this.templates = new java.util.ArrayList();
}
return this.templates;
} //-- java.util.List getTemplates()
/**
* Get the version field.
*
* @return String
*/
public String getVersion()
{
return this.version;
} //-- String getVersion()
/**
* Method removeOperation.
*
* @param modelOperation
*/
public void removeOperation( ModelOperation modelOperation )
{
getOperations().remove( modelOperation );
} //-- void removeOperation( ModelOperation )
/**
* Method removeResource.
*
* @param modelResource
*/
public void removeResource( ModelResource modelResource )
{
getResources().remove( modelResource );
} //-- void removeResource( ModelResource )
/**
* Method removeRole.
*
* @param modelRole
*/
public void removeRole( ModelRole modelRole )
{
getRoles().remove( modelRole );
} //-- void removeRole( ModelRole )
/**
* Method removeTemplate.
*
* @param modelTemplate
*/
public void removeTemplate( ModelTemplate modelTemplate )
{
getTemplates().remove( modelTemplate );
} //-- void removeTemplate( ModelTemplate )
/**
* 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 longDescription field.
*
* @param longDescription
*/
public void setLongDescription( String longDescription )
{
this.longDescription = longDescription;
} //-- void setLongDescription( String )
/**
* Set the operations field.
*
* @param operations
*/
public void setOperations( java.util.List operations )
{
this.operations = operations;
} //-- void setOperations( java.util.List )
/**
* Set the resources field.
*
* @param resources
*/
public void setResources( java.util.List resources )
{
this.resources = resources;
} //-- void setResources( java.util.List )
/**
* Set the roles field.
*
* @param roles
*/
public void setRoles( java.util.List roles )
{
this.roles = roles;
} //-- void setRoles( java.util.List )
/**
* Set the templates field.
*
* @param templates
*/
public void setTemplates( java.util.List templates )
{
this.templates = templates;
} //-- void setTemplates( java.util.List )
/**
* Set the version field.
*
* @param version
*/
public void setVersion( String version )
{
this.version = version;
} //-- void setVersion( String )
}