/** * <p>Obtain the current ask status of the item.</p> * * @return The ask status of the item */ public AskType getAskStatus() { if (isShared()) { // Redefine the ask status since the item belongs to a shared group return ASK_NONE; } else { return askStatus; } }
/** * Returns true if this item belongs ONLY to shared groups. This means that the the item is * considered to be "only shared" if it doesn't belong to a personal group but only to shared * groups. * * @return true if this item belongs ONLY to shared groups. */ public boolean isOnlyShared() { return isShared() && groups.isEmpty(); }
if (item.isShared()) {
/** * <p>Obtain the current ask status of the item.</p> * * @return The ask status of the item */ public AskType getAskStatus() { if (isShared()) { // Redefine the ask status since the item belongs to a shared group return ASK_NONE; } else { return askStatus; } }
/** * Returns true if this item belongs ONLY to shared groups. This means that the the item is * considered to be "only shared" if it doesn't belong to a personal group but only to shared * groups. * * @return true if this item belongs ONLY to shared groups. */ public boolean isOnlyShared() { return isShared() && groups.isEmpty(); }
if (item.isShared()) {