BrightSide Workbench Full Report + Source Code
org.turro.contacts.Role Class Reference
Inheritance diagram for org.turro.contacts.Role:
Collaboration diagram for org.turro.contacts.Role:

Public Member Functions

String getId ()
 
String getOwner ()
 
void setOwner (String owner)
 
boolean isOnlyOwner ()
 
void setOnlyOwner (boolean onlyOwner)
 
String getName ()
 
void setName (String name)
 
org.turro.contacts.Contact getContact ()
 
void setContact (org.turro.contacts.Contact contact)
 
boolean getCanShow (String userId)
 
boolean isEmpty ()
 

Protected Member Functions

void setId (String id)
 

Detailed Description

Definition at line 30 of file Role.java.

Member Function Documentation

◆ getCanShow()

boolean org.turro.contacts.Role.getCanShow ( String  userId)

onlyOwner || owner.equals(userId);

Definition at line 88 of file Role.java.

88  {
89  return true;
90  }

◆ getContact()

org.turro.contacts.Contact org.turro.contacts.Role.getContact ( )

Definition at line 80 of file Role.java.

80  {
81  return contact;
82  }

◆ getId()

String org.turro.contacts.Role.getId ( )

Definition at line 48 of file Role.java.

48  {
49  return id;
50  }

◆ getName()

String org.turro.contacts.Role.getName ( )

Definition at line 72 of file Role.java.

72  {
73  return name;
74  }

◆ getOwner()

String org.turro.contacts.Role.getOwner ( )

Definition at line 56 of file Role.java.

56  {
57  return owner;
58  }

◆ isEmpty()

boolean org.turro.contacts.Role.isEmpty ( )

Definition at line 92 of file Role.java.

92  {
93  return Strings.isEmpty(name);
94  }

◆ isOnlyOwner()

boolean org.turro.contacts.Role.isOnlyOwner ( )

Definition at line 64 of file Role.java.

64  {
65  return onlyOwner;
66  }

◆ setContact()

void org.turro.contacts.Role.setContact ( org.turro.contacts.Contact  contact)

Definition at line 84 of file Role.java.

84  {
85  this.contact = contact;
86  }
Here is the caller graph for this function:

◆ setId()

void org.turro.contacts.Role.setId ( String  id)
protected

Definition at line 52 of file Role.java.

52  {
53  this.id = id;
54  }

◆ setName()

void org.turro.contacts.Role.setName ( String  name)

Definition at line 76 of file Role.java.

76  {
77  this.name = name;
78  }
Here is the caller graph for this function:

◆ setOnlyOwner()

void org.turro.contacts.Role.setOnlyOwner ( boolean  onlyOwner)

Definition at line 68 of file Role.java.

68  {
69  this.onlyOwner = onlyOwner;
70  }

◆ setOwner()

void org.turro.contacts.Role.setOwner ( String  owner)

Definition at line 60 of file Role.java.

60  {
61  this.owner = owner;
62  }

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