Fixed functions
This commit is contained in:
parent
529aa1bce4
commit
4c171f90f5
|
@ -107,7 +107,7 @@ public class SecretHolder {
|
|||
public String getName() {
|
||||
for(Secret secret : secrets) {
|
||||
try {
|
||||
secret.getName();
|
||||
return secret.getName();
|
||||
}catch (Exception e) {
|
||||
// trying the next one
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class SecretHolder {
|
|||
public String getSurname() {
|
||||
for(Secret secret : secrets) {
|
||||
try {
|
||||
secret.getSurname();
|
||||
return secret.getSurname();
|
||||
}catch (Exception e) {
|
||||
// trying the next one
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ public class SecretHolder {
|
|||
public String getEMail() {
|
||||
for(Secret secret : secrets) {
|
||||
try {
|
||||
secret.getEMail();
|
||||
return secret.getEMail();
|
||||
}catch (Exception e) {
|
||||
// trying the next one
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class SecretHolder {
|
|||
public String getTitle() {
|
||||
for(Secret secret : secrets) {
|
||||
try {
|
||||
secret.getTitle();
|
||||
return secret.getTitle();
|
||||
}catch (Exception e) {
|
||||
// trying the next one
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ public class GCubeSecret extends Secret {
|
|||
|
||||
@Override
|
||||
public String getEMail() {
|
||||
return getPortalUser().getName();
|
||||
return getPortalUser().getEMail();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue