|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.database.BaseIdentifiable org.sonar.api.database.model.ResourceModel
public class ResourceModel
Class to map resource with hibernate model
Field Summary | |
---|---|
static int |
DESCRIPTION_COLUMN_SIZE
|
static int |
KEY_SIZE
|
static int |
NAME_COLUMN_SIZE
|
static int |
PATH_SIZE
|
static String |
QUALIFIER_PROJECT_TRUNK
|
static String |
SCOPE_PROJECT
|
Constructor Summary | |
---|---|
ResourceModel()
Default constructor |
|
ResourceModel(String scope,
String key,
String qualifier,
Integer rootId,
String name)
|
|
ResourceModel(String scope,
String key,
String qualifier,
Integer rootId,
String path,
String name)
Creates a resource model |
Methods inherited from class org.sonar.api.database.BaseIdentifiable |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SCOPE_PROJECT
public static final String QUALIFIER_PROJECT_TRUNK
public static final int DESCRIPTION_COLUMN_SIZE
public static final int NAME_COLUMN_SIZE
public static final int KEY_SIZE
public static final int PATH_SIZE
Constructor Detail |
---|
public ResourceModel()
public ResourceModel(String scope, String key, String qualifier, Integer rootId, String name)
public ResourceModel(String scope, String key, String qualifier, Integer rootId, @Nullable String path, String name)
Creates a resource model
scope
- the scope the rule will apply onkey
- the rule key. This is the name of the resource, including the pathqualifier
- the resource qualifierrootId
- the rootId for the resourcepath
- the path of the resourcename
- the short name of the resourceMethod Detail |
---|
public List<ProjectLink> getProjectLinks()
public void setProjectLinks(List<ProjectLink> projectLinks)
public ProjectLink getProjectLink(String key)
public String getDescription()
public void setDescription(String description)
public String getName()
public void setName(String name)
public String getLongName()
public void setLongName(String s)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public String getScope()
public void setScope(String scope)
public String getKey()
public String getDeprecatedKey()
public String getLanguageKey()
public void setLanguageKey(String lang)
public Integer getCopyResourceId()
public void setCopyResourceId(Integer i)
public Integer getPersonId()
public ResourceModel setPersonId(Integer i)
public void setKey(String key)
IllegalArgumentException
- if the key is longer than KEY_SIZEpublic void setDeprecatedKey(String deprecatedKey)
IllegalArgumentException
- if the key is longer than KEY_SIZEpublic Integer getRootId()
public void setRootId(Integer rootId)
public String getPath()
public ResourceModel setPath(@Nullable String path)
public String getQualifier()
public void setQualifier(String qualifier)
public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
public String getUuid()
public void setUuid(String uuid)
public String getProjectUuid()
public void setProjectUuid(String projectUuid)
public String getModuleUuid()
public void setModuleUuid(String moduleUuid)
public String getModuleUuidPath()
public void setModuleUuidPath(String moduleUuidPath)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Object clone()
clone
in class Object
public static ResourceModel build(Resource resource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |