Java Code Examples for org.apache.commons.collections.CollectionUtils#EMPTY_COLLECTION

The following examples show how to use org.apache.commons.collections.CollectionUtils#EMPTY_COLLECTION . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AwardInquirableImpl.java    From kfs with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * If the Contracts & Grants Billing (CGB) enhancement is disabled, we don't want to
 * process sections only related to CGB.
 *
 * @return Collection of section ids to ignore
 */
protected Collection<?> getSectionIdsToIgnore() {
    if (!SpringContext.getBean(AccountsReceivableModuleBillingService.class).isContractsGrantsBillingEnhancementActive()) {
        return SpringContext.getBean(ContractsAndGrantsBillingService.class).getAwardContractsGrantsBillingSectionIds();
    } else {
        return CollectionUtils.EMPTY_COLLECTION;
    }
}
 
Example 2
Source File: AgencyInquirableImpl.java    From kfs with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * If the Contracts & Grants Billing (CGB) enhancement is disabled, we don't want to
 * process sections only related to CGB.
 *
 * @return Collection of section ids to ignore
 */
protected Collection<?> getSectionIdsToIgnore() {
    if (!SpringContext.getBean(AccountsReceivableModuleBillingService.class).isContractsGrantsBillingEnhancementActive()) {
        return SpringContext.getBean(ContractsAndGrantsBillingService.class).getAgencyContractsGrantsBillingSectionIds();
    } else {
        return CollectionUtils.EMPTY_COLLECTION;
    }
}
 
Example 3
Source File: AgencyMaintainableImpl.java    From kfs with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * If the Contracts & Grants Billing (CGB) enhancement is disabled, we don't want to
 * process sections only related to CGB.
 *
 * @return Collection of section ids to ignore
 */
@Override
protected Collection<?> getSectionIdsToIgnore() {
    if (!getAccountsReceivableModuleBillingService().isContractsGrantsBillingEnhancementActive()) {
        return SpringContext.getBean(ContractsAndGrantsBillingService.class).getAgencyContractsGrantsBillingSectionIds();
    } else {
        return CollectionUtils.EMPTY_COLLECTION;
    }
}
 
Example 4
Source File: AwardMaintainableImpl.java    From kfs with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * If the Contracts & Grants Billing (CGB) enhancement is disabled, we don't want to
 * process sections only related to CGB.
 *
 * @return list of section ids to ignore
 */
@Override
protected Collection<?> getSectionIdsToIgnore() {
    if (!SpringContext.getBean(AccountsReceivableModuleBillingService.class).isContractsGrantsBillingEnhancementActive()) {
        return SpringContext.getBean(ContractsAndGrantsBillingService.class).getAwardContractsGrantsBillingSectionIds();
    } else {
        return CollectionUtils.EMPTY_COLLECTION;
    }
}
 
Example 5
Source File: X509CredentialImpl.java    From carbon-identity with Apache License 2.0 4 votes vote down vote up
@Override
public Collection<X509Certificate> getEntityCertificateChain() {
    // TODO Auto-generated method stub
    return CollectionUtils.EMPTY_COLLECTION;
}
 
Example 6
Source File: X509CredentialImpl.java    From carbon-identity with Apache License 2.0 4 votes vote down vote up
@Override
public Collection<String> getKeyNames() {
    // TODO Auto-generated method stub
    return CollectionUtils.EMPTY_COLLECTION;
}
 
Example 7
Source File: X509CredentialImpl.java    From carbon-identity with Apache License 2.0 4 votes vote down vote up
@Override
public Collection<X509CRL> getCRLs() {
    // TODO Auto-generated method stub
    return CollectionUtils.EMPTY_COLLECTION;
}
 
Example 8
Source File: MessageFilter.java    From attic-stratos with Apache License 2.0 4 votes vote down vote up
public Collection<String> getIncludedPropertyValues(String propertyName) {
    if (filterMap.containsKey(propertyName)) {
        return filterMap.get(propertyName).keySet();
    }
    return CollectionUtils.EMPTY_COLLECTION;
}