예제 #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();
 }
예제 #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();
 }
예제 #3
0
 // 刪除 Release
 public void deleteRelease(long releaseId) {
   ReleaseObject release = ReleaseObject.get(releaseId);
   if (release != null) {
     release.delete();
   }
 }
예제 #4
0
 public ReleaseObject getRelease(long releaseId) {
   return ReleaseObject.get(releaseId);
 }