Esempio n. 1
0
 // 修改 release plan
 public void updateRelease(ReleaseInfo releaseInfo) {
   ReleaseObject release = ReleaseObject.get(releaseInfo.id);
   release
       .setName(releaseInfo.name)
       .setDescription(releaseInfo.description)
       .setStartDate(releaseInfo.startDate)
       .setDueDate(releaseInfo.dueDate)
       .save();
 }
Esempio n. 2
0
 public long addRelease(ReleaseInfo releaseInfo) {
   ReleaseObject release = new ReleaseObject(mProject.getId());
   release
       .setName(releaseInfo.name)
       .setDescription(releaseInfo.description)
       .setStartDate(releaseInfo.startDate)
       .setDueDate(releaseInfo.dueDate)
       .save();
   return release.getId();
 }
Esempio n. 3
0
 // 刪除 Release
 public void deleteRelease(long releaseId) {
   ReleaseObject release = ReleaseObject.get(releaseId);
   if (release != null) {
     release.delete();
   }
 }
Esempio n. 4
0
 public ReleaseObject getRelease(long releaseId) {
   return ReleaseObject.get(releaseId);
 }