BrightSide Workbench Full Report + Source Code
org.turro.alliance.db.entities.AxTag Class Reference
Inheritance diagram for org.turro.alliance.db.entities.AxTag:
Collaboration diagram for org.turro.alliance.db.entities.AxTag:

Public Member Functions

 AxTag (long memberId, String tag, String entityRoot, String entityId)
 
String getTagName ()
 
String getEntityRoot ()
 
String getEntityId ()
 
String stringifyId ()
 
String toJson ()
 
String toJson (Map< String, Object > properties)
 

Static Public Member Functions

static Set< AxTagfrom (long memberId, Dossier dossier)
 
static Set< AxTagfrom (long memberId, ProjectGrant projectGrant)
 
static AxTag from (long memberId, ImporterRegister register)
 
static AxTag fromJson (JsonValue value)
 

Detailed Description

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

Definition at line 36 of file AxTag.java.

Constructor & Destructor Documentation

◆ AxTag()

org.turro.alliance.db.entities.AxTag.AxTag ( long  memberId,
String  tag,
String  entityRoot,
String  entityId 
)

Definition at line 41 of file AxTag.java.

41  {
42  this.memberId = memberId;
43  this.tagName = tag;
44  this.entityRoot = entityRoot;
45  this.entityId = entityId;
46  }
Here is the caller graph for this function:

Member Function Documentation

◆ from() [1/3]

static Set<AxTag> org.turro.alliance.db.entities.AxTag.from ( long  memberId,
Dossier  dossier 
)
static

Definition at line 66 of file AxTag.java.

66  {
67  Set<AxTag> tags = new HashSet<>();
68  Tags.getTags(dossier).forEach(ti -> {
69  tags.add(new AxTag(memberId, ti.getTagName(), "/axproject/", Long.toString(dossier.getId())));
70  });
71  return tags;
72  }
AxTag(long memberId, String tag, String entityRoot, String entityId)
Definition: AxTag.java:41
Here is the call graph for this function:
Here is the caller graph for this function:

◆ from() [2/3]

static AxTag org.turro.alliance.db.entities.AxTag.from ( long  memberId,
ImporterRegister  register 
)
static

Definition at line 82 of file AxTag.java.

82  {
83  return new AxTag(memberId, register.getString("tag"), register.getString("entityRoot"), register.getString("entityId"));
84  }
Here is the call graph for this function:

◆ from() [3/3]

static Set<AxTag> org.turro.alliance.db.entities.AxTag.from ( long  memberId,
ProjectGrant  projectGrant 
)
static

Definition at line 74 of file AxTag.java.

74  {
75  Set<AxTag> tags = new HashSet<>();
76  Tags.getTags(projectGrant).forEach(ti -> {
77  tags.add(new AxTag(memberId, ti.getTagName(), "/axproject-grant/", Long.toString(projectGrant.getId())));
78  });
79  return tags;
80  }
Here is the call graph for this function:

◆ fromJson()

static AxTag org.turro.alliance.db.entities.AxTag.fromJson ( JsonValue  value)
static

Definition at line 98 of file AxTag.java.

98  {
99  return IJSONizable.fromJson(value.toString(), AxTag.class);
100  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntityId()

String org.turro.alliance.db.entities.AxTag.getEntityId ( )

Definition at line 56 of file AxTag.java.

56  {
57  return entityId;
58  }

◆ getEntityRoot()

String org.turro.alliance.db.entities.AxTag.getEntityRoot ( )

Definition at line 52 of file AxTag.java.

52  {
53  return entityRoot;
54  }
Here is the caller graph for this function:

◆ getTagName()

String org.turro.alliance.db.entities.AxTag.getTagName ( )

Definition at line 48 of file AxTag.java.

48  {
49  return tagName;
50  }
Here is the caller graph for this function:

◆ stringifyId()

String org.turro.alliance.db.entities.AxTag.stringifyId ( )

Definition at line 60 of file AxTag.java.

60  {
61  return new CompoundId(entityId, memberId).stringify();
62  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toJson() [1/2]

String org.turro.alliance.db.entities.AxTag.toJson ( )

Definition at line 89 of file AxTag.java.

89  {
90  return toJson(this);
91  }
Here is the caller graph for this function:

◆ toJson() [2/2]

String org.turro.alliance.db.entities.AxTag.toJson ( Map< String, Object >  properties)

Definition at line 94 of file AxTag.java.

94  {
95  return toJson(this, properties);
96  }
Here is the call graph for this function:

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