This content has been marked as final.
Show 3 replies
-
1. Re: Process for disabling Login, steps to take care
valatharv Oct 27, 2008 8:03 PM (in response to valatharv)Please suggest on the above requset when I use login-required="false" in XXXX.page.xml as in point (b) above, sometimes it still asks for log-in.
Please suggest the steps and changes I should do to so that user is never asked for login.
Thanks -
2. Re: Process for disabling Login, steps to take care
joblini Oct 28, 2008 3:44 AM (in response to valatharv)Try calling the static method Identity.setSecurityEnabled(false) to disable security checks
-
3. Re: Process for disabling Login, steps to take care
valatharv Oct 28, 2008 3:35 PM (in response to valatharv)Where should I call this method, will it be home class...
This is sample home for Reagent entity.. pls suggest
@Name("reagentHome")
public class ReagentHome extends EntityHome<Reagent> {
@In(create = true)
TreatmentHome treatmentHome;
public void setReagentHjid(Long id) {
setId(id);
}
public Long getReagentHjid() {
return (Long) getId();
}
@Override
protected Reagent createInstance() {
Reagent reagent = new Reagent();
return reagent;
}
public void wire() {
getInstance();
Treatment treatment = treatmentHome.getDefinedInstance();
if (treatment != null) {
getInstance().setTreatment(treatment);
}
}
public boolean isWired() {
return true;
}
public Reagent getDefinedInstance() {
return isIdDefined() ? getInstance() : null;
}
}