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(com.opensymphony.user.User user, long id)
          Deletes the TrustedApplicationInfo with the specified ID.
 TrustedApplicationInfo get(long id)
          Find a TrustedApplicationInfo given an ID.
 TrustedApplicationInfo get(java.lang.String applicationId)
          Find a TrustedApplicationInfo given an application ID.
 java.util.Set<TrustedApplicationInfo> getAll()
          Find all TrustedApplicationInfo objects in the system.
 TrustedApplicationInfo store(com.opensymphony.user.User user, TrustedApplicationInfo info)
          Persist a TrustedApplicationInfo
 

Method Detail

getAll

java.util.Set<TrustedApplicationInfo> getAll()
Find all TrustedApplicationInfo objects in the system.

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

get

TrustedApplicationInfo get(java.lang.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(com.opensymphony.user.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(com.opensymphony.user.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-2010 Atlassian. All Rights Reserved.