@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
/**
* Loads address book from current id
- *<p>
+ * <p>
* @return Whether the address book was found
*/
boolean loadAddressbook ();
// 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)));
}
}
* <p>
* @param user User instance
* @param addressbook Address book instance
+ * <p>
* @return Redirect target
*/
String startSharing (final User user, final Addressbook addressbook);
}
}
-
@Override
public void afterRegistrationEvent (final @Observes UserRegisteredEvent event) {
// Trace message