package org.xcolab.service.activities.enums;


import org.xcolab.service.activities.activityEntry.discussion.DiscussionAddCommentActivityEntry;
import org.xcolab.service.activities.activityEntry.discussion
        .DiscussionAddContestCommentActivityEntry;
import org.xcolab.service.activities.activityEntry.discussion.DiscussionAddProposalCommentActivityEntry;
import org.xcolab.service.activities.activityEntry.discussion.DiscussionAddedActivityEntry;
import org.xcolab.service.activities.activityEntry.member.MemberJoinedActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalAttributeRemoveActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalAttributeUpdateActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalCreatedActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalMemberAddedActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalMemberRemovedActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalSupporterAddedActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalSupporterRemovedActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalVoteActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalVoteRetractActivityEntry;
import org.xcolab.service.activities.activityEntry.proposal.ProposalVoteSwitchActivityEntry;
import org.xcolab.service.activities.activityEntry.provider.ActivityEntryContentProvider;

public enum ActivityProvidersImpl {
    DiscussionAddCommentActivityEntry(1, new DiscussionAddCommentActivityEntry()),
    DiscussionAddedActivityEntry(2, new DiscussionAddedActivityEntry()),
    DiscussionAddProposalCommentActivityEntry(3, new DiscussionAddProposalCommentActivityEntry()),
    DiscussionAddContestCommentActivityEntry(15, new DiscussionAddContestCommentActivityEntry()),
    MemberJoinedActivityEntry(4, new MemberJoinedActivityEntry()),

    ProposalAttributeRemoveActivityEntry(5, new ProposalAttributeRemoveActivityEntry()),
    ProposalAttributeUpdateActivityEntry(6, new ProposalAttributeUpdateActivityEntry()),
    ProposalCreatedActivityEntry(7, new ProposalCreatedActivityEntry()),
    ProposalMemberAddedActivityEntry(8, new ProposalMemberAddedActivityEntry()),
    ProposalMemberRemovedActivityEntry(9, new ProposalMemberRemovedActivityEntry()),
    ProposalSupporterAddedActivityEntry(10, new ProposalSupporterAddedActivityEntry()),
    ProposalSupporterRemovedActivityEntry(11, new ProposalSupporterRemovedActivityEntry()),
    ProposalVoteActivityEntry(12, new ProposalVoteActivityEntry()),
    ProposalVoteRetractActivityEntry(13, new ProposalVoteRetractActivityEntry()),
    ProposalVoteSwitchActivityEntry(14, new ProposalVoteSwitchActivityEntry());




    Integer activityProvidersType;

    ActivityEntryContentProvider activityEntryContentProvider;


    ActivityProvidersImpl(Integer activityProvidersTypez, ActivityEntryContentProvider activityEntryContentProviderz){
        activityProvidersType = activityProvidersTypez;
        activityEntryContentProvider = activityEntryContentProviderz;
    }

    Integer getType(){
        return activityProvidersType;
    }

    ActivityEntryContentProvider getActivityEntryContentProvider(){
        return activityEntryContentProvider;
    }
    public static ActivityEntryContentProvider getActivityEntryContentProviderByType(Integer id){
        for (ActivityProvidersImpl dir : ActivityProvidersImpl.values()) {
            // do what you want
            if(dir.getType() == id){
                return dir.getActivityEntryContentProvider();
            }
        }
        return null;
    }
}

@@ -77,33 +77,33 @@
 ivities.activity
-E
+e
 ntry.discussion.
@@ -174,33 +174,33 @@
 ivities.activity
-E
+e
 ntry.discussion%0A
@@ -287,33 +287,33 @@
 ivities.activity
-E
+e
 ntry.discussion.
@@ -303,32 +303,41 @@
 entry.discussion
+%0A        
 .DiscussionAddPr
@@ -405,25 +405,25 @@
 ies.activity
-E
+e
 ntry.discuss
@@ -497,25 +497,25 @@
 ies.activity
-E
+e
 ntry.member.
@@ -578,33 +578,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -676,33 +676,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -774,33 +774,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -864,33 +864,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -958,33 +958,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -1054,33 +1054,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -1151,33 +1151,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -1250,33 +1250,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -1337,33 +1337,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -1431,33 +1431,33 @@
 ivities.activity
-E
+e
 ntry.proposal.Pr
@@ -1528,25 +1528,25 @@
 ies.activity
-E
+e
 ntry.provide

refactor AtivityProvider