com.atlassian.jira.sharing
Interface SharedEntityAccessor.Factory

All Known Implementing Classes:
DefaultSharedEntityAccessorFactory
Enclosing interface:
SharedEntityAccessor

public static interface SharedEntityAccessor.Factory

Factory to retrieve a SharedEntityAccessor for a given SharedEntity


Method Summary
 SharedEntityAccessor getSharedEntityAccessor(SharedEntity.TypeDescriptor type)
          Retrieves a SharedEntityAccessor that can operate on the passed type.
 SharedEntityAccessor getSharedEntityAccessor(String type)
          Retrieves a SharedEntityAccessor that can operate on the passed type.
 

Method Detail

getSharedEntityAccessor

SharedEntityAccessor getSharedEntityAccessor(SharedEntity.TypeDescriptor type)
Retrieves a SharedEntityAccessor that can operate on the passed type. E.g. SearchRequestManager will be returned for a SearchRequest.

Parameters:
type - the type of entity.
Returns:
the corresponding accessor.

getSharedEntityAccessor

SharedEntityAccessor getSharedEntityAccessor(String type)
Retrieves a SharedEntityAccessor that can operate on the passed type. E.g. SearchRequestManager will be returned for a SearchRequest.

Parameters:
type - the type of entity to adjust
Returns:
the corresponding accessor.


Copyright © 2002-2008 Atlassian. All Rights Reserved.