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

Method Detail

getAll

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(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.atlassian.crowd.embedded.api.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
Returns:
true if the application was successfully deleted, false otherwise.

delete

boolean delete(com.atlassian.crowd.embedded.api.User user,
               String applicationId)
Deletes the TrustedApplicationInfo with the specified application ID.

Parameters:
user - the user who is performing the delete
applicationId - the id of the application to delete
Returns:
true if the application was successfully deleted, false otherwise.

store

TrustedApplicationInfo store(com.atlassian.crowd.embedded.api.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.

store

TrustedApplicationInfo store(String 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-2014 Atlassian. All Rights Reserved.