@Override
public boolean isAddressbookLoaded () {
- return ((this.getAddressbookId() instanceof Long)
- && (this.getAddressbookName() instanceof String)
- && (!this.getAddressbookName().isEmpty())
- && (this.getAddressbookUser() instanceof User));
+ return ((this.getAddressbookId() instanceof Long) &&
+ (this.getAddressbookName() instanceof String) &&
+ (!this.getAddressbookName().isEmpty()) &&
+ (this.getAddressbookUser() instanceof User));
}
@Override
// Check all conditions (except for admin)
// TODO: Add admin role somehow?
return ((profileMode.equals(ProfileMode.PUBLIC)) ||
- (this.loginController.isUserLoggedIn()) && (profileMode.equals(ProfileMode.MEMBERS)));
+ (this.loginController.isUserLoggedIn()) && (profileMode.equals(ProfileMode.MEMBERS)));
}
}