com.atlassian.jira.sharing
Interface SharedEntityAccessor.Factory

All Known Implementing Classes:
DefaultSharedEntityAccessorFactory
Enclosing interface:
SharedEntityAccessor<S extends SharedEntity>

public static interface SharedEntityAccessor.Factory

Factory to retrieve a SharedEntityAccessor for a given SharedEntity


Method Summary
<S extends SharedEntity>
SharedEntityAccessor<S>
getSharedEntityAccessor(SharedEntity.TypeDescriptor<S> type)
          Retrieves a SharedEntityAccessor that can operate on the passed type.
<S extends SharedEntity>
SharedEntityAccessor<S>
getSharedEntityAccessor(java.lang.String type)
          Retrieves a SharedEntityAccessor that can operate on the passed type.
 

Method Detail

getSharedEntityAccessor

<S extends SharedEntity> SharedEntityAccessor<S> getSharedEntityAccessor(SharedEntity.TypeDescriptor<S> 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

<S extends SharedEntity> SharedEntityAccessor<S> getSharedEntityAccessor(java.lang.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-2010 Atlassian. All Rights Reserved.