public class ResourceModel extends BaseIdentifiable implements Cloneable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
getId, setId
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
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 resourcepublic List<ProjectLink> getProjectLinks()
public void setProjectLinks(List<ProjectLink> projectLinks)
public ProjectLink getProjectLink(String key)
public String getDescription()
public void setDescription(String description)
public String getLongName()
public void setLongName(String s)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
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 ResourceModel setPath(@Nullable String path)
public String getQualifier()
public void setQualifier(String qualifier)
public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
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 static ResourceModel build(Resource resource)
Copyright © 2009–2015 SonarSource. All rights reserved.