com.atlassian.jira.security.auth.trustedapps
Interface TrustedApplicationManager

All Known Implementing Classes:
CachingTrustedApplicationManager, DefaultTrustedApplicationManager

public interface TrustedApplicationManager

Manager for handling TrustedApplicationInfo

Since:
v3.12

Method Summary
 boolean delete(User user, long id)
          Deletes the TrustedApplicationInfo with the specified ID.
 TrustedApplicationInfo get(long id)
          Find a TrustedApplicationInfo given an ID.
 TrustedApplicationInfo get(String applicationId)
          Find a TrustedApplicationInfo given an application ID.
 Set getAll()
          Find all TrustedApplicationInfo objects in the system.
 TrustedApplicationInfo store(User user, TrustedApplicationInfo info)
          Persist a TrustedApplicationInfo
 

Method Detail

getAll

Set getAll()
Find all TrustedApplicationInfo objects in the system.

Returns:
a Collection of all TrustedApplicationInfo. Empty (not null) if none exist.

get

TrustedApplicationInfo get(String applicationId)
Find a TrustedApplicationInfo given an application ID.

Parameters:
applicationId - the id of the application
Returns:
the TrustedApplicationInfo if found, null otherwise.

get

TrustedApplicationInfo get(long id)
Find a TrustedApplicationInfo given an ID.

Parameters:
id - the id of the application
Returns:
the TrustedApplicationInfo if found, null otherwise.

delete

boolean delete(User user,
               long id)
Deletes the TrustedApplicationInfo with the specified ID.

Parameters:
user - the user who is performing the delete
id - the id of the application to delete

store

TrustedApplicationInfo store(User user,
                             TrustedApplicationInfo info)
Persist a TrustedApplicationInfo

Parameters:
user - the user who is performing the store
info - the thing to save (create or update). Must not be null.
Returns:
the updated or created business object.


Copyright © 2002-2009 Atlassian. All Rights Reserved.