public interface ArtefactAPI
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
ValueType type,
Object value) |
void |
commit(CommonUser user,
int revision) |
void |
delete(CommonUser user) |
ArtefactPath |
getArtefactPath() |
Map<String,InheritedProperty> |
getInheritedProps() |
LockInfo |
getLockInfo() |
String |
getName() |
Collection<Property> |
getProperties()
Gets list of all properties in the container.
|
Property |
getProperty(String name)
Returns property by name.
|
Map<String,Object> |
getProps() |
ProjectVersion |
getVersion() |
ArtefactAPI |
getVersion(CommonVersion version) |
ProjectVersion |
getVersion(int index) |
List<ProjectVersion> |
getVersions() |
int |
getVersionsCount() |
boolean |
hasProperty(String name)
Checks whether property with specified name exists in the container.
|
boolean |
isFolder() |
void |
lock(CommonUser user) |
void |
removeAllProperties() |
Property |
removeProperty(String name)
Removes property from the container.
|
void |
setProps(Map<String,Object> props) |
void |
unlock(CommonUser user) |
void addProperty(String name, ValueType type, Object value) throws PropertyException
PropertyExceptionCollection<Property> getProperties()
Property getProperty(String name) throws PropertyException
name - name of propertyPropertyException - if no property with specified nameboolean hasProperty(String name)
name - name of propertytrue if such property existsProperty removeProperty(String name) throws PropertyException
name - name of propertyPropertyException - if no property with specified namevoid removeAllProperties()
throws PropertyException
PropertyExceptionvoid delete(CommonUser user) throws ProjectException
ProjectExceptionArtefactPath getArtefactPath()
String getName()
boolean isFolder()
ProjectVersion getVersion()
List<ProjectVersion> getVersions()
int getVersionsCount()
ProjectVersion getVersion(int index) throws RRepositoryException
RRepositoryExceptionLockInfo getLockInfo()
void commit(CommonUser user, int revision) throws ProjectException
ProjectExceptionvoid lock(CommonUser user) throws ProjectException
ProjectExceptionvoid unlock(CommonUser user) throws ProjectException
ProjectExceptionArtefactAPI getVersion(CommonVersion version) throws ProjectException
ProjectExceptionvoid setProps(Map<String,Object> props) throws PropertyException
PropertyExceptionMap<String,InheritedProperty> getInheritedProps()
Copyright © 2018. All rights reserved.