public class ResourceBean extends Object implements Resource, Comparable<ResourceBean>
| Constructor and Description |
|---|
ResourceBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ResourceBean resourceBean) |
boolean |
equals(Object obj) |
Category |
getCategory()
get category
|
Set<String> |
getContexts() |
String |
getDefaultForTool() |
String |
getDocId() |
String |
getFormattedScore() |
Long |
getId()
get id
|
String |
getLocation() |
String |
getName() |
float |
getScore() |
String |
getSource() |
Long |
getTstamp() |
URL |
getUrl() |
String |
getWelcomePage() |
int |
hashCode() |
void |
setCategory(Category category)
set category
|
void |
setContexts(Set<String> contexts) |
void |
setDefaultForTool(String defaultForTool) |
void |
setDocId(String docId) |
void |
setId(Long id)
set id
|
void |
setLocation(String location) |
void |
setName(String name) |
void |
setScore(float score) |
void |
setSource(String source) |
void |
setTstamp(Long tstamp) |
void |
setWelcomePage(String welcomePage) |
String |
toString() |
public Long getId()
public void setId(Long id)
id - The id to set.public String getDocId()
getDocId in interface ResourceResource.getDocId()public void setDocId(String docId)
setDocId in interface ResourceResource.setDocId(java.lang.String)public String getLocation()
getLocation in interface ResourceResource.getLocation()public void setLocation(String location)
setLocation in interface ResourceResource.setLocation(java.lang.String)public Set<String> getContexts()
org.sakaiproject.api.app.help.Resource#getContexts()public void setContexts(Set<String> contexts)
org.sakaiproject.api.app.help.Resource#setContexts(java.util.Set)public URL getUrl() throws MalformedURLException
MalformedURLExceptionorg.sakaiproject.api.app.help.Resource#getUrl()public String getName()
getName in interface ResourceResource.getName()public void setName(String name)
setName in interface ResourceResource.setName(java.lang.String)public String getSource()
getSource in interface ResourceResource.getSource()public void setSource(String source)
setSource in interface ResourceResource.setSource(java.lang.String)public Long getTstamp()
getTstamp in interface ResourceResource.getTstamp()public void setTstamp(Long tstamp)
setTstamp in interface ResourceResource.setTstamp(java.lang.Long)public float getScore()
getScore in interface ResourceResource.getScore()public void setScore(float score)
setScore in interface ResourceResource.setScore(float)public String getDefaultForTool()
getDefaultForTool in interface ResourceResource.getDefaultForTool()public void setDefaultForTool(String defaultForTool)
setDefaultForTool in interface ResourceResource.setDefaultForTool(java.lang.String)public String getFormattedScore()
getFormattedScore in interface ResourceResource.getFormattedScore()public int compareTo(ResourceBean resourceBean)
compareTo in interface Comparable<ResourceBean>Comparable.compareTo(java.lang.Object)public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()public Category getCategory()
public void setCategory(Category category)
setCategory in interface Resourcecategory - The category to set.public String getWelcomePage()
getWelcomePage in interface Resourcepublic void setWelcomePage(String welcomePage)
setWelcomePage in interface ResourceCopyright © 2003–2021 Sakai Project. All rights reserved.