Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Prepare #43
Browse files Browse the repository at this point in the history
  • Loading branch information
hdsdi3g committed Apr 27, 2014
1 parent 950e6b3 commit d651dbb
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/controllers/User.java
Expand Up @@ -191,4 +191,13 @@ public static void action(String objtype, String key, String targetmethod) throw
}*/
redirect("User.index", objtype);
}

public void notificationslist() throws Exception {
// TODO
}

public void notificationsupdate() throws Exception {
// TODO
}

}
56 changes: 56 additions & 0 deletions app/hd3gtv/mydmam/mail/notification/Notification.java
@@ -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 app/hd3gtv/mydmam/mail/notification/NotificationWorker.java
@@ -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;
}

}

0 comments on commit d651dbb

Please sign in to comment.