Interface Application
- All Superinterfaces:
Attributes
,Serializable
- All Known Implementing Classes:
ApplicationImpl
,ImmutableApplication
An Application in Crowd. This is the top level citizen in Crowd, where an application will have an ordered set
of associated
Directory
's which it can access.-
Method Summary
Modifier and TypeMethodDescriptiongetApplicationDirectoryMapping
(long directoryId) Returns a directory mapping of the directory specified by directory id.Returns the list of directory mappings ranked by directory priority as in perspective of the application.Returns the attributes of the application.Returns the date the application was created.Returns the application password.Returns the description of the application.getDirectoryMapping
(long directoryId) Deprecated.Deprecated.UsegetApplicationDirectoryMappings()
instead.getId()
Returns the application ID.getName()
Returns the name of the application.Returns the whitelist of addresses allowed to connect to Crowd as the application.getType()
Returns the type of the application.Returns the date the application was last updated.Returns the Webhooks associated to the application.boolean
hasRemoteAddress
(String remoteAddress) Returnstrue
if the remote address is already in the list of allowable remote addresses for the application.boolean
isActive()
Returns whether the application is active.boolean
Returnstrue
if aliasing is enabled for the application.boolean
Determines whether application can authenticate their users using their e-mail.boolean
Returnstrue
if application has authentication without user's password enabled, false otherwise.boolean
boolean
boolean
boolean
Returnstrue
if the usernames and group names returned should be in lowercase.boolean
boolean
Returns whether the application is a permanent application and thus cannot be removed.Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes
getKeys, getValue, getValues, isEmpty
-
Method Details
-
getId
Long getId()Returns the application ID.- Returns:
- application ID
-
getName
String getName()Returns the name of the application.- Returns:
- name of the application
-
getType
ApplicationType getType()Returns the type of the application.- Returns:
- application type
-
getDescription
String getDescription()Returns the description of the application.- Returns:
- description of the application
-
getCredential
PasswordCredential getCredential()Returns the application password.- Returns:
- application password
-
isPermanent
boolean isPermanent()Returns whether the application is a permanent application and thus cannot be removed. For instance, the Crowd application is a permanent application.- Returns:
true
if the application is permanent.
-
isActive
boolean isActive()Returns whether the application is active.- Returns:
true
if the application is active.
-
getAttributes
Returns the attributes of the application.- Returns:
- attributes of the application
-
getDirectoryMappings
Deprecated.UsegetApplicationDirectoryMappings()
instead. Since 2.12.Returns the list of directory mappings ranked by directory priority as in perspective of the application.- Returns:
- List of directory mappings (never null).
-
getApplicationDirectoryMappings
Returns the list of directory mappings ranked by directory priority as in perspective of the application.- Returns:
- List of directory mappings (never null).
- Since:
- 2.12
-
getDirectoryMapping
Deprecated.UsegetApplicationDirectoryMapping(long)
instead. Since 2.12.Returns a directory mapping of the directory specified by directory id.- Parameters:
directoryId
- ID of the directory- Returns:
- directory mapping if found, null if the directory mapping could not be found
-
getApplicationDirectoryMapping
Returns a directory mapping of the directory specified by directory id.- Parameters:
directoryId
- ID of the directory- Returns:
- directory mapping if found, null if the directory mapping could not be found
- Since:
- 2.12
-
getRemoteAddresses
Set<RemoteAddress> getRemoteAddresses()Returns the whitelist of addresses allowed to connect to Crowd as the application. The remote addresses may contain subnet masking information in CIDR format.- Returns:
- whitelist of addresses allowed to connect to Crowd as the application.
-
hasRemoteAddress
Returnstrue
if the remote address is already in the list of allowable remote addresses for the application.- Parameters:
remoteAddress
- RemoteAddress whose presence is to be tested- Returns:
true
if the remote address is already in the list of allowable remote addresses for the application
-
getWebhooks
Returns the Webhooks associated to the application. Webhooks were added in Crowd 2.7. For applications that are not Crowd servers, it is OK to always return an empty Set.- Returns:
- Webhooks associated to the application.
- Since:
- 2.7
-
isFilteringUsersWithAccessEnabled
@ExperimentalApi boolean isFilteringUsersWithAccessEnabled()- Returns:
true
if user queries should return only users with access.
-
isFilteringGroupsWithAccessEnabled
@ExperimentalApi boolean isFilteringGroupsWithAccessEnabled()- Returns:
true
if group queries should return only groups with access.
-
isLowerCaseOutput
boolean isLowerCaseOutput()Returnstrue
if the usernames and group names returned should be in lowercase.- Returns:
true
if the usernames and group names returned
-
isAliasingEnabled
boolean isAliasingEnabled()Returnstrue
if aliasing is enabled for the application.- Returns:
true
if aliasing is enabled for the application
-
isMembershipAggregationEnabled
boolean isMembershipAggregationEnabled()- Returns:
true
if membership aggregation is enabled for this application.
-
isCachedDirectoriesAuthenticationOrderOptimisationEnabled
boolean isCachedDirectoriesAuthenticationOrderOptimisationEnabled()- Returns:
true
if authentication order optimization for cached directories is enabled for this application.
-
isAuthenticationWithoutPasswordEnabled
boolean isAuthenticationWithoutPasswordEnabled()Returnstrue
if application has authentication without user's password enabled, false otherwise.Authentication without user's password is used i.e. for remember me functionality in Atlassian products. If a user session is expired but remember-me cookie is still valid, product will request Crowd to generate a new Crowd SSO token without passing user's password to Crowd.
As possibility to authenticate user without knowing their password is considered insecure, this option is disabled by default and it should be enabled only for trusted apps.
- Returns:
true
if application has authentication without user's password enabled, false otherwise.
-
isAuthenticationViaEmailEnabled
boolean isAuthenticationViaEmailEnabled()Determines whether application can authenticate their users using their e-mail.- Returns:
- true if application has authentication via email enabled, false otherwise.
-
getCreatedDate
Date getCreatedDate()Returns the date the application was created.- Returns:
- date the application was created
-
getUpdatedDate
Date getUpdatedDate()Returns the date the application was last updated. If the application has just been created, the updated date will be the same as the creation date.- Returns:
- date the application was last updated
-
getApplicationDirectoryMapping(long)
instead.