currentProfiles.java 705 B
package model.profiles.commands;
import java.util.Collection;
import model.profiles.entities.profile;
import model.profiles.database.profileDatabase;
/**
* Get all the current profiles in the form of a String
* NOT DONE
*/
public class currentProfiles extends CommandStatus{
public String findAllProfiles(){
String allProfiles = "";
Collection<profile> profiles = profileDatabase.database().values();
for(profile p : profiles){
if( p == profileDatabase.getActive()){
allProfiles = allProfiles + "ACTIVE: ";
}
allProfiles = allProfiles + p + "\n";
}
successful = true;
return allProfiles;
}
}