public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo, String versionComment, Map<String, Object> versionProperties) { revision = version.getRevision(); this.major = version.getMajor(); this.minor = version.getMinor(); this.versionInfo = versionInfo; this.versionComment = versionComment; this.versionProperties = versionProperties; }
protected void checkType(ValueType type) throws PropertyException { if (this.type != type) { throw new PropertyException("Property has {0} type", null, this.type); } }
public String getLockedUserName() { LockInfo lockInfo = getLockInfo(); return lockInfo.isLocked() ? lockInfo.getLockedBy().getUserName() : ""; }
public Date getModifiedAt() { ProjectVersion projectVersion = getProject().getVersion(); if (projectVersion == null) { return null; } VersionInfo vi = projectVersion.getVersionInfo(); return (vi != null) ? vi.getCreatedAt() : null; }
@Override public String toString() { if (upper == null) { return lower.getVersionName() + " - ..."; } else { return lower.getVersionName() + " - " + upper.getVersionName(); } } }
public int compare(ProjectVersion o1, ProjectVersion o2) { return o2.compareTo(o1); } };
public CommonException(String pattern, Throwable cause, Object... params) { super(format(pattern, params), cause); } }
public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); this.versionInfo = versionInfo; }
public Date getCreatedAt() { ProjectVersion projectVersion = this.getData().getFirstVersion(); if (projectVersion == null) { return null; } VersionInfo vi = projectVersion.getVersionInfo(); return (vi != null) ? vi.getCreatedAt() : null; }
/** * Generates folder name for deployment by given deployment name and common * version. * * @return folder name */ private String getDeploymentFolderName(String deploymentName, CommonVersion version) { return deploymentName + "_v" + version.getVersionName(); }
protected void checkType(ValueType type) throws PropertyException { if (this.type != type) { throw new PropertyException("Property has {0} type", null, this.type); } }
public CommonException(String pattern, Throwable cause, Object... params) { super(format(pattern, params), cause); } }
public CommonVersionImpl(CommonVersion version) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); }
public Date getModifiedAt() { ProjectVersion projectVersion = this.getData().getVersion(); if (projectVersion == null) { return null; } VersionInfo vi = projectVersion.getVersionInfo(); return (vi != null) ? vi.getCreatedAt() : null; }
protected void checkType(ValueType type) throws PropertyException { if (this.type != type) { throw new PropertyException("Property has {0} type", null, this.type); } }
public CommonVersionImpl(CommonVersion version) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); }
protected void checkType(ValueType type) throws PropertyException { if (this.type != type) { throw new PropertyException("Property has {0} type", null, this.type); } }
public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo, String versionComment, Map<String, Object> versionProperties) { revision = version.getRevision(); this.major = version.getMajor(); this.minor = version.getMinor(); this.versionInfo = versionInfo; this.versionComment = versionComment; this.versionProperties = versionProperties; }
public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); this.versionInfo = versionInfo; }