org.kuali.rice.coreservice.api.namespace
Interface NamespaceService

All Known Implementing Classes:
NamespaceServiceImpl

public interface NamespaceService


Method Summary
 List<Namespace> findAllNamespaces()
          Returns all Namespaces.
 Namespace getNamespace(String code)
          Gets a Namespace from a namespace code.
 

Method Detail

getNamespace

@Cacheable(value="http://rice.kuali.org/core/v2_0/NamespaceType",
           key="\'key=\' + #p0")
Namespace getNamespace(String code)
                       throws RiceIllegalArgumentException
Gets a Namespace from a namespace code.

This method will return null if the namespace does not exist.

Parameters:
code - the code to retrieve the namespace by. cannot be blank.
Returns:
a Namespace or null
Throws:
RiceIllegalArgumentException - if the code is blank

findAllNamespaces

@Cacheable(value="http://rice.kuali.org/core/v2_0/NamespaceType",
           key="\'all\'")
List<Namespace> findAllNamespaces()
Returns all Namespaces.

Returns:
all namespaces


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.