BrightSide Workbench Full Report + Source Code
org.turro.elephant.web.SocialImageMap Class Reference

Static Public Member Functions

static void initialize (SocialNet context, Collection< RepositoryFile > files)
 
static void putImage (String url, SocialImage image)
 
static SocialImage getImage (String url)
 
static boolean hasImage (String url)
 
static void reset ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file SocialImageMap.java.

Member Function Documentation

◆ getImage()

static SocialImage org.turro.elephant.web.SocialImageMap.getImage ( String  url)
static

Definition at line 46 of file SocialImageMap.java.

46  {
47  return _map.get(url);
48  }
Here is the caller graph for this function:

◆ hasImage()

static boolean org.turro.elephant.web.SocialImageMap.hasImage ( String  url)
static

Definition at line 50 of file SocialImageMap.java.

50  {
51  return _map.get(url) != null;
52  }
Here is the caller graph for this function:

◆ initialize()

static void org.turro.elephant.web.SocialImageMap.initialize ( SocialNet  context,
Collection< RepositoryFile files 
)
static

Definition at line 31 of file SocialImageMap.java.

31  {
32  context.setImage(SocialImageMap.getImage(context.getUrl()));
33  if(!context.hasImage()) {
34  SocialImage si = SocialImage.getFromFiles(files);
35  if(si != null) {
36  context.setImage(si);
37  SocialImageMap.putImage(context.getUrl(), si);
38  }
39  }
40  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ putImage()

static void org.turro.elephant.web.SocialImageMap.putImage ( String  url,
SocialImage  image 
)
static

Definition at line 42 of file SocialImageMap.java.

42  {
43  _map.put(url, image);
44  }
Here is the caller graph for this function:

◆ reset()

static void org.turro.elephant.web.SocialImageMap.reset ( )
static

Definition at line 54 of file SocialImageMap.java.

54  {
55  _map.clear();
56  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: