|
@ -23,16 +23,6 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
return this.getListSize(); |
|
|
return this.getListSize(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void edit() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void delete() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Credential getCredentialsViaName(String needle) { |
|
|
public Credential getCredentialsViaName(String needle) { |
|
|
|
|
|
|
|
@ -62,6 +52,28 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
The next 3 functions assume you already have successfully |
|
|
|
|
|
pulled a credential from the repository and now want to edit it. |
|
|
|
|
|
Thus, these functions require you to pass the desired credential's index |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void updatePassword(int index) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void updateUsername(int index){ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void delete(int index) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int getListSize() |
|
|
private int getListSize() |
|
|
{ |
|
|
{ |
|
|
return this.credentials.size(); |
|
|
return this.credentials.size(); |
|
|