Interface TrustedApplicationManager
- All Known Implementing Classes:
CachingTrustedApplicationManager
,DefaultTrustedApplicationManager
public interface TrustedApplicationManager
Manager for handling
TrustedApplicationInfo
- Since:
- v3.12
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(ApplicationUser user, long id) Deletes theTrustedApplicationInfo
with the specified ID.boolean
delete
(ApplicationUser user, String applicationId) Deletes theTrustedApplicationInfo
with the specified application ID.get
(long id) Find aTrustedApplicationInfo
given an ID.Find aTrustedApplicationInfo
given an application ID.getAll()
Find allTrustedApplicationInfo
objects in the system.store
(ApplicationUser user, TrustedApplicationInfo info) Persist aTrustedApplicationInfo
store
(String user, TrustedApplicationInfo info) Persist aTrustedApplicationInfo
-
Method Details
-
getAll
Set<TrustedApplicationInfo> getAll()Find allTrustedApplicationInfo
objects in the system.- Returns:
- a Collection of all
TrustedApplicationInfo
. Empty (not null) if none exist.
-
get
Find aTrustedApplicationInfo
given an application ID.- Parameters:
applicationId
- the id of the application- Returns:
- the
TrustedApplicationInfo
if found, null otherwise.
-
get
Find aTrustedApplicationInfo
given an ID.- Parameters:
id
- the id of the application- Returns:
- the
TrustedApplicationInfo
if found, null otherwise.
-
delete
Deletes theTrustedApplicationInfo
with the specified ID.- Parameters:
user
- the user who is performing the deleteid
- the id of the application to delete- Returns:
- true if the application was successfully deleted, false otherwise.
-
delete
Deletes theTrustedApplicationInfo
with the specified application ID.- Parameters:
user
- the user who is performing the deleteapplicationId
- the id of the application to delete- Returns:
- true if the application was successfully deleted, false otherwise.
-
store
Persist aTrustedApplicationInfo
- Parameters:
user
- the user who is performing the storeinfo
- the thing to save (create or update). Must not be null.- Returns:
- the updated or created business object.
-
store
Persist aTrustedApplicationInfo
- Parameters:
user
- the user who is performing the storeinfo
- the thing to save (create or update). Must not be null.- Returns:
- the updated or created business object.
-