Resolves #123 - adds channel details tab to display: System, Site and Channel name, and the complete Activity Summary

This commit is contained in:
Denny
2017-01-28 16:47:44 -05:00
parent 3b2ff7144b
commit 78a4bfe915
4 changed files with 188 additions and 2 deletions

View File

@@ -109,6 +109,35 @@ public class ChannelProcessingManager implements ChannelEventListener
return mProcessingChains.get(channel.getChannelID());
}
/**
* Returns the channel associated with the processing chain
* @param processingChain
* @return channel associated with the processing chain or null
*/
public Channel getChannel(ProcessingChain processingChain)
{
return mChannelModel.getChannelFromChannelID(getChannelID(processingChain));
}
/**
* Returns the channel ID associated with the processing chain
*/
private Integer getChannelID(ProcessingChain processingChain)
{
if(processingChain != null)
{
for(Map.Entry<Integer,ProcessingChain> entry: mProcessingChains.entrySet())
{
if(entry.getValue() == processingChain)
{
return entry.getKey();
}
}
}
return null;
}
@Override
public synchronized void channelChanged(ChannelEvent event)
{