fr.cnes.sitools.common.model
Class Resource

java.lang.Object
  extended by fr.cnes.sitools.common.model.Resource
All Implemented Interfaces:
IResource, java.io.Serializable
Direct Known Subclasses:
Portal, ProjectModule

public class Resource
extends java.lang.Object
implements java.io.Serializable, IResource

Base class for Resource. Resources are used in model objects to reference others objects of different domain.

Author:
jp.boignard (AKKA Technologies)
See Also:
Serialized Form

Constructor Summary
Resource()
          Default constructor.
 
Method Summary
 java.lang.String getAuthor()
          Gets the author value.
 java.lang.String getAuthorized()
          Gets the authorized value
 Category getCategory()
          Gets the category value
 java.lang.String getDescription()
          Gets the description value.
 java.lang.String getId()
          Gets the id value.
 java.lang.String getLastUpdate()
          Gets the lastUpdate value.
 java.lang.String getMediaType()
          Gets the mediaType value.
 java.lang.String getName()
          Gets the name value.
 java.lang.String getOwner()
          Gets the owner value.
 java.util.ArrayList<Property> getProperties()
          Gets the properties value
 Property getPropertyByName(java.lang.String name)
          Get the property by name
 java.lang.String getStatus()
          Gets the status value.
 java.lang.String getTooltip()
          Gets the ToolTip value.
 java.lang.String getType()
          Gets the type value.
 java.lang.String getUrl()
          Gets the URL value.
 java.lang.String getUrn()
          Gets the urn value.
 java.lang.Boolean getVisible()
          Gets the visible value
 void setAuthor(java.lang.String aut)
          Sets the value of author.
 void setAuthorized(java.lang.String authorized)
          Sets the value of authorized
 void setCategory(Category category)
          Sets the value of category
 void setDescription(java.lang.String desc)
          Sets the value of description.
 void setId(java.lang.String idToSet)
          Sets the value of id.
 void setLastUpdate(java.lang.String lastUpd)
          Sets the value of lastUpdate.
 void setMediaType(java.lang.String mediat)
          Sets the value of mediaType.
 void setName(java.lang.String nameToSet)
          Sets the value of name.
 void setOwner(java.lang.String own)
          Sets the value of owner.
 void setProperties(java.util.ArrayList<Property> properties)
          Sets the value of properties
 void setStatus(java.lang.String stat)
          Sets the value of status
 void setTooltip(java.lang.String toolt)
          Sets the value of ToolTip.
 void setType(java.lang.String typeToSet)
          Sets the value of type.
 void setUrl(java.lang.String urlToSet)
          Sets the value of URL.
 void setUrn(java.lang.String urntoset)
          Sets the value of urn.
 void setVisible(java.lang.Boolean visible)
          Sets the value of visible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Default constructor.

Method Detail

getUrn

public final java.lang.String getUrn()
Gets the urn value.

Returns:
the urn

setUrn

public final void setUrn(java.lang.String urntoset)
Sets the value of urn.

Parameters:
urntoset - the urn to set

getId

public final java.lang.String getId()
Gets the id value.

Specified by:
getId in interface IResource
Returns:
the id

setId

public final void setId(java.lang.String idToSet)
Sets the value of id.

Specified by:
setId in interface IResource
Parameters:
idToSet - the id to set

getName

public final java.lang.String getName()
Gets the name value.

Specified by:
getName in interface IResource
Returns:
the name

setName

public final void setName(java.lang.String nameToSet)
Sets the value of name.

Parameters:
nameToSet - the name to set

getDescription

public final java.lang.String getDescription()
Gets the description value.

Specified by:
getDescription in interface IResource
Returns:
the description

setDescription

public final void setDescription(java.lang.String desc)
Sets the value of description.

Parameters:
desc - the description to set

getType

public final java.lang.String getType()
Gets the type value.

Returns:
the type

setType

public final void setType(java.lang.String typeToSet)
Sets the value of type.

Parameters:
typeToSet - the type to set

getTooltip

public final java.lang.String getTooltip()
Gets the ToolTip value.

Returns:
the ToolTip

setTooltip

public final void setTooltip(java.lang.String toolt)
Sets the value of ToolTip.

Parameters:
toolt - the ToolTip to set

getUrl

public final java.lang.String getUrl()
Gets the URL value.

Returns:
the URL

setUrl

public final void setUrl(java.lang.String urlToSet)
Sets the value of URL.

Parameters:
urlToSet - the URL to set

getMediaType

public final java.lang.String getMediaType()
Gets the mediaType value.

Returns:
the mediaType

setMediaType

public final void setMediaType(java.lang.String mediat)
Sets the value of mediaType.

Parameters:
mediat - the mediaType to set

getLastUpdate

public final java.lang.String getLastUpdate()
Gets the lastUpdate value.

Returns:
the lastUpdate

setLastUpdate

public final void setLastUpdate(java.lang.String lastUpd)
Sets the value of lastUpdate.

Parameters:
lastUpd - the lastUpdate to set

getAuthor

public final java.lang.String getAuthor()
Gets the author value.

Returns:
the author

setAuthor

public final void setAuthor(java.lang.String aut)
Sets the value of author.

Parameters:
aut - the author to set

getOwner

public final java.lang.String getOwner()
Gets the owner value.

Returns:
the owner

setOwner

public final void setOwner(java.lang.String own)
Sets the value of owner.

Parameters:
own - the owner to set

getStatus

public final java.lang.String getStatus()
Gets the status value.

Returns:
the status

setStatus

public final void setStatus(java.lang.String stat)
Sets the value of status

Parameters:
stat - the status to set

getCategory

public final Category getCategory()
Gets the category value

Returns:
the category

setCategory

public final void setCategory(Category category)
Sets the value of category

Parameters:
category - the category to set

getAuthorized

public final java.lang.String getAuthorized()
Gets the authorized value

Returns:
the authorized

setAuthorized

public final void setAuthorized(java.lang.String authorized)
Sets the value of authorized

Parameters:
authorized - the authorized to set

getVisible

public final java.lang.Boolean getVisible()
Gets the visible value

Returns:
the visible

setVisible

public final void setVisible(java.lang.Boolean visible)
Sets the value of visible

Parameters:
visible - the visible to set

getProperties

public final java.util.ArrayList<Property> getProperties()
Gets the properties value

Returns:
the properties

setProperties

public final void setProperties(java.util.ArrayList<Property> properties)
Sets the value of properties

Parameters:
properties - the properties to set

getPropertyByName

public final Property getPropertyByName(java.lang.String name)
Get the property by name

Parameters:
name - name of the property
Returns:
a Property


Copyright © 2010-2013 CNES. All Rights Reserved.