Esempio n. 1
0
 /**
  * @param channel
  * @return
  */
 public bool removeChannel(SocialChannel channel)
 {
     bool removed = false;
     if (this.channels.Contains(channel))
     {
         this.channels.Remove(channel);
         removed = true;
     }
     return removed;
 }
Esempio n. 2
0
        /**
         * @param channel
         * @return
         */
        public bool removeChannel(SocialChannel channel)
        {
            bool removed = false;

            if (this.channels.Contains(channel))
            {
                this.channels.Remove(channel);
                removed = true;
            }
            return(removed);
        }
Esempio n. 3
0
        /**
         * Find an appropriate channel according to the properties
         *
         * @param channelProperties
         * @return
         */
        public SocialChannel buildChannel(SocialChannelProperties channelProperties)
        {
            // lookup channel by name
            SocialChannel instance = null;

            String channelName = channelProperties.getProperty(SocialChannelPropertyKey.NAME);

            if (channelName != null && this.pluggedChannels.ContainsKey(channelName))
            {
                // Try the cache
                instance = this.cachedChannels[channelName];
                if (instance == null)
                {
                    instance = instantiateChannel(this.pluggedChannels[channelName]);
                    this.cachedChannels.Add(channelName, instance);
                }
            }

            return(instance);
        }
Esempio n. 4
0
 /**
  * @param decoratedChannel
  */
 public void setDecoratedSocialChannel(SocialChannel decoratedChannel)
 {
     this.delegateer = decoratedChannel;
 }
Esempio n. 5
0
 /**
  * @param decoratedChannel
  */
 public void setDecoratedSocialChannel(SocialChannel decoratedChannel)
 {
     this.delegateer = decoratedChannel;
 }
Esempio n. 6
0
 /**
  * @param channel
  */
 public void addSocialChannel(SocialChannel channel)
 {
     this.channels.Add(channel);
 }
Esempio n. 7
0
 /**
  * @param i
  * @param decoratedChannel
  */
 public MessageTruncator(int i, SocialChannel decoratedChannel)
 {
     this.maxLength = i;
     this.delegateer = decoratedChannel;
 }
Esempio n. 8
0
 /**
  * @param i
  * @param decoratedChannel
  */
 public MessageTruncator(int i, SocialChannel decoratedChannel)
 {
     this.maxLength  = i;
     this.delegateer = decoratedChannel;
 }
Esempio n. 9
0
 /**
  * @param string
  * @param channel
  */
 public URLAppender(String url, SocialChannel channel)
 {
     this.url = url;
     this.delegateer = channel;
 }
Esempio n. 10
0
 /**
  * @param channel
  */
 public void addSocialChannel(SocialChannel channel)
 {
     this.channels.Add(channel);
 }
Esempio n. 11
0
 /**
  * @param string
  * @param channel
  */
 public URLAppender(String url, SocialChannel channel)
 {
     this.url        = url;
     this.delegateer = channel;
 }