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