BrightSide Workbench Full Report + Source Code
org.turro.actor.ActorCheckVM Class Reference

Public Member Functions

 ActorCheckVM ()
 
IContact getContact ()
 
void setContact (IContact contact)
 
String getActor ()
 
void setActor (String actor)
 
Object getEntity ()
 
void setEntity (Object entity)
 
int getMode ()
 
void setMode (int mode)
 
void mode (@BindingParam("mode") Integer index)
 
void update ()
 
List getModel ()
 

Detailed Description

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

Definition at line 36 of file ActorCheckVM.java.

Constructor & Destructor Documentation

◆ ActorCheckVM()

org.turro.actor.ActorCheckVM.ActorCheckVM ( )

Definition at line 43 of file ActorCheckVM.java.

43  {
44  }

Member Function Documentation

◆ getActor()

String org.turro.actor.ActorCheckVM.getActor ( )

Definition at line 54 of file ActorCheckVM.java.

54  {
55  return actor;
56  }

◆ getContact()

IContact org.turro.actor.ActorCheckVM.getContact ( )

Definition at line 46 of file ActorCheckVM.java.

46  {
47  return contact;
48  }

◆ getEntity()

Object org.turro.actor.ActorCheckVM.getEntity ( )

Definition at line 62 of file ActorCheckVM.java.

62  {
63  return entity;
64  }

◆ getMode()

int org.turro.actor.ActorCheckVM.getMode ( )

Definition at line 70 of file ActorCheckVM.java.

70  {
71  return mode;
72  }

◆ getModel()

List org.turro.actor.ActorCheckVM.getModel ( )

Definition at line 88 of file ActorCheckVM.java.

88  {
89  List list = new ArrayList();
90  IElephantEntity iee = Entities.getController(entity);
91  if(mode == 0) {
92  if(contact != null) {
93  Actors.getSortedActors().forEach(actor -> {
94  list.add(new ContactEntityCheck(actor, contact, iee));
95  });
96  }
97  } else if(mode == 1) {
98  if(!Strings.isBlank(actor)) {
99  Contacts.getEmpty().loadByPartialName("%%%").forEach(contact -> {
100  ActorEntityCheck aec = new ActorEntityCheck(actor, contact, iee);
101  if(aec.precheck()) {
102  list.add(aec);
103  }
104  });
105  }
106  }
107  return list;
108  }
Here is the call graph for this function:

◆ mode()

void org.turro.actor.ActorCheckVM.mode ( @BindingParam("mode") Integer  index)

Definition at line 80 of file ActorCheckVM.java.

80  {
81  mode = index;
82  }

◆ setActor()

void org.turro.actor.ActorCheckVM.setActor ( String  actor)

Definition at line 58 of file ActorCheckVM.java.

58  {
59  this.actor = actor;
60  }

◆ setContact()

void org.turro.actor.ActorCheckVM.setContact ( IContact  contact)

Definition at line 50 of file ActorCheckVM.java.

50  {
51  this.contact = contact;
52  }

◆ setEntity()

void org.turro.actor.ActorCheckVM.setEntity ( Object  entity)

Definition at line 66 of file ActorCheckVM.java.

66  {
67  this.entity = entity;
68  }

◆ setMode()

void org.turro.actor.ActorCheckVM.setMode ( int  mode)

Definition at line 74 of file ActorCheckVM.java.

74  {
75  this.mode = mode;
76  }

◆ update()

void org.turro.actor.ActorCheckVM.update ( )

Definition at line 86 of file ActorCheckVM.java.

86 {}

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