BrightSide Workbench Full Report + Source Code
org.turro.sso.SSOVM Class Reference

Public Member Functions

void init (@ExecutionArgParam("contact") IContact contact)
 
void delete (@BindingParam("entity") Object entity)
 
List< SSOIdentitygetModel ()
 
String getIcon (SSOIdentity identity)
 

Detailed Description

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

Definition at line 38 of file SSOVM.java.

Member Function Documentation

◆ delete()

void org.turro.sso.SSOVM.delete ( @BindingParam("entity") Object  entity)

Definition at line 49 of file SSOVM.java.

49  {
50  if(entity instanceof SSOIdentity) {
51  getDao().deleteObject(entity);
52  }
53  }
void deleteObject(Object obj)
Definition: Dao.java:162
Here is the call graph for this function:

◆ getIcon()

String org.turro.sso.SSOVM.getIcon ( SSOIdentity  identity)

Definition at line 63 of file SSOVM.java.

63  {
64  String userAgent = identity.getDetails().toLowerCase();
65  if (userAgent.contains("windows")) {
66  return "windows";
67  } else if (userAgent.contains("mac")) {
68  return "apple";
69  } else if (userAgent.contains("x11") || userAgent.contains("ubuntu")) {
70  return "linux";
71  } else if (userAgent.contains("android")) {
72  return "android";
73  } else if (userAgent.contains("iphone")) {
74  return "apple";
75  } else {
76  return "question";
77  }
78  }
Here is the call graph for this function:

◆ getModel()

List<SSOIdentity> org.turro.sso.SSOVM.getModel ( )

Definition at line 55 of file SSOVM.java.

55  {
56  WhereClause wc = new WhereClause();
57  wc.addClause("select sso from SSOIdentity as sso");
58  wc.addClause("where idContact = :idContact");
59  wc.addNamedValue("idContact", contact.getId());
60  return getDao().getResultList(wc);
61  }
Here is the call graph for this function:

◆ init()

void org.turro.sso.SSOVM.init ( @ExecutionArgParam("contact") IContact  contact)

Definition at line 43 of file SSOVM.java.

43  {
44  if(contact != null) this.contact = contact;
45  }

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