This repository has been archived by the owner on May 23, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* This file is part of MyDMAM | ||
* | ||
* This library is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* Copyright (C) hdsdi3g for hd3g.tv 2014 | ||
* | ||
*/ | ||
package hd3gtv.mydmam.mail.notification; | ||
|
||
import java.util.List; | ||
|
||
import models.UserProfile; | ||
|
||
public class Notification { | ||
|
||
/** | ||
* About works | ||
*/ | ||
private List<UserProfile> observers; | ||
private UserProfile creator; | ||
private List<String> linked_tasks_keys; | ||
private String creating_comment; | ||
|
||
/** | ||
* About workflow | ||
*/ | ||
private long created_at; | ||
private boolean is_read; | ||
private UserProfile first_reader; | ||
private long closed_at; | ||
private boolean is_close; | ||
private UserProfile closed_by; | ||
private long commented_at; | ||
private String users_comment; | ||
|
||
private long archived_after; | ||
|
||
/** | ||
* About users callbacks | ||
*/ | ||
private List<UserProfile> notify_if_error; | ||
private List<UserProfile> notify_if_done; | ||
private List<UserProfile> notify_if_readed; | ||
private List<UserProfile> notify_if_closed; | ||
private List<UserProfile> notify_if_commented; | ||
|
||
} |
96 changes: 96 additions & 0 deletions
96
app/hd3gtv/mydmam/mail/notification/NotificationWorker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* | ||
* This file is part of MyDMAM | ||
* | ||
* This library is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* Copyright (C) hdsdi3g for hd3g.tv 2014 | ||
* | ||
*/ | ||
package hd3gtv.mydmam.mail.notification; | ||
|
||
import hd3gtv.mydmam.taskqueue.Job; | ||
import hd3gtv.mydmam.taskqueue.Profile; | ||
import hd3gtv.mydmam.taskqueue.TriggerWorker; | ||
import hd3gtv.mydmam.taskqueue.Worker; | ||
|
||
import java.util.List; | ||
|
||
import com.netflix.astyanax.connectionpool.exceptions.ConnectionException; | ||
|
||
public class NotificationWorker extends Worker implements TriggerWorker { | ||
|
||
@Override | ||
public boolean isTriggerWorkerConfigurationAllowToEnabled() { | ||
// TODO Auto-generated method stub | ||
return false; | ||
} | ||
|
||
@Override | ||
public List<Profile> plugToProfiles() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getTriggerShortName() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getTriggerLongName() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public void triggerCreateTasks(Profile profile) throws ConnectionException { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public void process(Job job) throws Exception { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public String getShortWorkerName() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getLongWorkerName() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<Profile> getManagedProfiles() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public void forceStopProcess() throws Exception { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public boolean isConfigurationAllowToEnabled() { | ||
// TODO Auto-generated method stub | ||
return false; | ||
} | ||
|
||
} |