Class ApplicationImpl
java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.application.ApplicationImpl
- All Implemented Interfaces:
Attributes
,Application
,TimestampedEntity
,Serializable
Deprecated.
Implementation of Application (designed for use for Hibernate).
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.crowd.model.InternalEntity
active, createdDate, id, name, updatedDate
-
Constructor Summary
ModifierConstructorDescriptionprotected
Deprecated.ApplicationImpl
(InternalEntityTemplate template) Deprecated.Used for importing via XML migration.protected
ApplicationImpl
(String name, long id, ApplicationType type, String description, PasswordCredential credential, boolean active, Map<String, String> attributes, List<DirectoryMapping> directoryMappings, Set<RemoteAddress> remoteAddresses, Set<Webhook> webhooks, Date createdDate, Date updatedDate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirectoryMapping
(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes) Deprecated.void
addGroupMapping
(long directoryId, String groupName) Deprecated.void
addRemoteAddress
(String remoteAddress) Deprecated.static ApplicationImpl
convertIfNeeded
(Application application) Deprecated.boolean
Deprecated.getApplicationDirectoryMapping
(long directoryId) Deprecated.Returns a directory mapping of the directory specified by directory id.Deprecated.Returns the list of directory mappings ranked by directory priority as in perspective of the application.Deprecated.Returns the attributes of the application.Deprecated.Returns the application password.Deprecated.Returns the description of the application.getDirectoryMapping
(long directoryId) Deprecated.Returns a directory mapping of the directory specified by directory id.Deprecated.Returns the list of directory mappings ranked by directory priority as in perspective of the application.getKeys()
Deprecated.Gets all the keys of the attributes.Deprecated.Deprecated.Returns the whitelist of addresses allowed to connect to Crowd as the application.getType()
Deprecated.Returns the type of the application.Deprecated.Returns any value associated with the given key, returnsnull
if there is no value.Deprecated.Get all the values associated with a given key.Deprecated.Returns the Webhooks associated to the application.int
hashCode()
Deprecated.boolean
hasRemoteAddress
(String remoteAddress) Deprecated.Returnstrue
if the remote address is already in the list of allowable remote addresses for the application.boolean
Deprecated.Returnstrue
if aliasing is enabled for the application.boolean
Deprecated.Determines whether application can authenticate their users using their e-mail.boolean
Deprecated.Returnstrue
if application has authentication without user's password enabled, false otherwise.boolean
Deprecated.boolean
isEmpty()
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Returnstrue
if the usernames and group names returned should be in lowercase.boolean
Deprecated.boolean
Deprecated.Returns whether the application is a permanent application and thus cannot be removed.static ApplicationImpl
newInstance
(Application application) Deprecated.static ApplicationImpl
newInstance
(String name, ApplicationType type) Deprecated.static ApplicationImpl
newInstanceWithCredential
(String name, ApplicationType type, PasswordCredential credential) Deprecated.static ApplicationImpl
newInstanceWithIdAndCredential
(String name, ApplicationType type, PasswordCredential credential, long id) Deprecated.static ApplicationImpl
newInstanceWithPassword
(String name, ApplicationType type, String password) Deprecated.void
removeAttribute
(String name) Deprecated.boolean
removeDirectoryMapping
(long directoryId) Deprecated.boolean
removeRemoteAddress
(String remoteAddress) Deprecated.void
setActive
(boolean active) Deprecated.void
setAliasingEnabled
(boolean aliasingEnabled) Deprecated.void
setAttribute
(String name, String value) Deprecated.void
setAttributes
(Map<String, String> attributes) Deprecated.Sets the attributes of the application.void
setAuthenticationOrderOptimizationForCachedDirectoriesEnabled
(boolean authenticationOrderOptimizationForCachedDirectoriesEnabled) Deprecated.void
setAuthenticationViaEmailEnabled
(boolean authenticationViaEmailEnabled) Deprecated.void
setAuthenticationWithoutPasswordEnabled
(boolean authenticationWithoutPasswordEnabled) Deprecated.void
setCredential
(PasswordCredential credential) Deprecated.void
setDescription
(String description) Deprecated.void
setFilterGroupsWithAccessEnabled
(boolean filterGroupsWithAccessEnabled) Deprecated.void
setFilterUsersWithAccessEnabled
(boolean filterUsersWithAccessEnabled) Deprecated.void
setLowerCaseOutput
(boolean value) Deprecated.void
setMembershipAggregationEnabled
(boolean membershipAggregationEnabled) Deprecated.void
Deprecated.void
setRemoteAddresses
(Set<RemoteAddress> remoteAddresses) Deprecated.void
setType
(ApplicationType type) Deprecated.void
setWebhooks
(Set<Webhook> webhooks) Deprecated.This setter should only be called by hibernate and must replace the collection instance; compare withupdateDetailsFromApplication(Application)
.toString()
Deprecated.void
updateAttributesFrom
(Map<String, String> attributes) Deprecated.void
updateDetailsFromApplication
(Application application) Deprecated.Only to be used by the ApplicationDAO#update methodvoid
validate()
Deprecated.Methods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.model.application.Application
getCreatedDate, getId, getName, getUpdatedDate, isActive
-
Constructor Details
-
ApplicationImpl
protected ApplicationImpl()Deprecated. -
ApplicationImpl
protected ApplicationImpl(String name, long id, ApplicationType type, String description, PasswordCredential credential, boolean active, Map<String, String> attributes, List<DirectoryMapping> directoryMappings, Set<RemoteAddress> remoteAddresses, Set<Webhook> webhooks, Date createdDate, Date updatedDate) Deprecated. -
ApplicationImpl
Deprecated.Used for importing via XML migration.- Parameters:
template
- directory template.
-
-
Method Details
-
convertIfNeeded
Deprecated. -
newInstance
Deprecated. -
newInstance
Deprecated. -
newInstanceWithIdAndCredential
public static ApplicationImpl newInstanceWithIdAndCredential(String name, ApplicationType type, PasswordCredential credential, long id) Deprecated. -
newInstanceWithCredential
public static ApplicationImpl newInstanceWithCredential(String name, ApplicationType type, PasswordCredential credential) Deprecated. -
newInstanceWithPassword
public static ApplicationImpl newInstanceWithPassword(String name, ApplicationType type, String password) Deprecated. -
updateDetailsFromApplication
Deprecated.Only to be used by the ApplicationDAO#update method -
updateAttributesFrom
Deprecated. -
validate
public void validate()Deprecated. -
setName
Deprecated.- Overrides:
setName
in classInternalEntity
-
setActive
public void setActive(boolean active) Deprecated.- Overrides:
setActive
in classInternalEntity
-
getLowerName
Deprecated. -
getType
Deprecated.Description copied from interface:Application
Returns the type of the application.- Specified by:
getType
in interfaceApplication
- Returns:
- application type
-
setType
Deprecated. -
getDescription
Deprecated.Description copied from interface:Application
Returns the description of the application.- Specified by:
getDescription
in interfaceApplication
- Returns:
- description of the application
-
setDescription
Deprecated. -
getCredential
Deprecated.Description copied from interface:Application
Returns the application password.- Specified by:
getCredential
in interfaceApplication
- Returns:
- application password
-
setCredential
Deprecated. -
isPermanent
public boolean isPermanent()Deprecated.Description copied from interface:Application
Returns whether the application is a permanent application and thus cannot be removed. For instance, the Crowd application is a permanent application.- Specified by:
isPermanent
in interfaceApplication
- Returns:
true
if the application is permanent.
-
getAttributes
Deprecated.Description copied from interface:Application
Returns the attributes of the application.- Specified by:
getAttributes
in interfaceApplication
- Returns:
- attributes of the application
-
setAttributes
Deprecated.Sets the attributes of the application.attributes
must be a mutableMap
.- Parameters:
attributes
- new attributes
-
getDirectoryMappings
Deprecated.Description copied from interface:Application
Returns the list of directory mappings ranked by directory priority as in perspective of the application.- Specified by:
getDirectoryMappings
in interfaceApplication
- Returns:
- List of directory mappings (never null).
-
getApplicationDirectoryMappings
Deprecated.Description copied from interface:Application
Returns the list of directory mappings ranked by directory priority as in perspective of the application.- Specified by:
getApplicationDirectoryMappings
in interfaceApplication
- Returns:
- List of directory mappings (never null).
-
addDirectoryMapping
public void addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes) Deprecated. -
addGroupMapping
Deprecated. -
getDirectoryMapping
Deprecated.Description copied from interface:Application
Returns a directory mapping of the directory specified by directory id.- Specified by:
getDirectoryMapping
in interfaceApplication
- Parameters:
directoryId
- ID of the directory- Returns:
- directory mapping if found, null if the directory mapping could not be found
-
getApplicationDirectoryMapping
Deprecated.Description copied from interface:Application
Returns a directory mapping of the directory specified by directory id.- Specified by:
getApplicationDirectoryMapping
in interfaceApplication
- Parameters:
directoryId
- ID of the directory- Returns:
- directory mapping if found, null if the directory mapping could not be found
-
removeDirectoryMapping
public boolean removeDirectoryMapping(long directoryId) Deprecated. -
getRemoteAddresses
Deprecated.Description copied from interface:Application
Returns the whitelist of addresses allowed to connect to Crowd as the application. The remote addresses may contain subnet masking information in CIDR format.- Specified by:
getRemoteAddresses
in interfaceApplication
- Returns:
- whitelist of addresses allowed to connect to Crowd as the application.
-
addRemoteAddress
Deprecated. -
setRemoteAddresses
Deprecated. -
hasRemoteAddress
Deprecated.Description copied from interface:Application
Returnstrue
if the remote address is already in the list of allowable remote addresses for the application.- Specified by:
hasRemoteAddress
in interfaceApplication
- 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
-
removeRemoteAddress
Deprecated. -
getWebhooks
Deprecated.Description copied from interface:Application
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.- Specified by:
getWebhooks
in interfaceApplication
- Returns:
- Webhooks associated to the application.
-
setWebhooks
Deprecated.This setter should only be called by hibernate and must replace the collection instance; compare withupdateDetailsFromApplication(Application)
.- Parameters:
webhooks
- new Set of webhooks
-
getValues
Deprecated.Description copied from interface:Attributes
Get all the values associated with a given key. Duplicate values are not allowed, and this should be enforced case-insensitively to match the behaviour of LDAP servers. Will return null if the key does not exist.- Specified by:
getValues
in interfaceAttributes
- Parameters:
name
- attribute name.- Returns:
- a collection of the only attribtue value or
null
if the directory does not have the attribute.
-
getValue
Deprecated.Description copied from interface:Attributes
Returns any value associated with the given key, returnsnull
if there is no value.- Specified by:
getValue
in interfaceAttributes
- Parameters:
name
- the key to retrieve the value for- Returns:
- any value associated with the given key, or
null
if there is no value
-
getKeys
Deprecated.Description copied from interface:Attributes
Gets all the keys of the attributes. Warning: case-insensitive keys are currently no enforced, however this is the case for LDAP, so this may be implemented in the future.- Specified by:
getKeys
in interfaceAttributes
- Returns:
- a set of all the keys.
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmpty
in interfaceAttributes
- Returns:
true
if there are no attributes
-
setAttribute
Deprecated. -
removeAttribute
Deprecated. -
isFilteringUsersWithAccessEnabled
public boolean isFilteringUsersWithAccessEnabled()Deprecated.- Specified by:
isFilteringUsersWithAccessEnabled
in interfaceApplication
- Returns:
true
if user queries should return only users with access.
-
setFilterUsersWithAccessEnabled
public void setFilterUsersWithAccessEnabled(boolean filterUsersWithAccessEnabled) Deprecated. -
isFilteringGroupsWithAccessEnabled
public boolean isFilteringGroupsWithAccessEnabled()Deprecated.- Specified by:
isFilteringGroupsWithAccessEnabled
in interfaceApplication
- Returns:
true
if group queries should return only groups with access.
-
setFilterGroupsWithAccessEnabled
public void setFilterGroupsWithAccessEnabled(boolean filterGroupsWithAccessEnabled) Deprecated. -
isLowerCaseOutput
public boolean isLowerCaseOutput()Deprecated.Description copied from interface:Application
Returnstrue
if the usernames and group names returned should be in lowercase.- Specified by:
isLowerCaseOutput
in interfaceApplication
- Returns:
true
if the usernames and group names returned
-
setLowerCaseOutput
public void setLowerCaseOutput(boolean value) Deprecated. -
setAliasingEnabled
public void setAliasingEnabled(boolean aliasingEnabled) Deprecated. -
isAliasingEnabled
public boolean isAliasingEnabled()Deprecated.Description copied from interface:Application
Returnstrue
if aliasing is enabled for the application.- Specified by:
isAliasingEnabled
in interfaceApplication
- Returns:
true
if aliasing is enabled for the application
-
isMembershipAggregationEnabled
public boolean isMembershipAggregationEnabled()Deprecated.- Specified by:
isMembershipAggregationEnabled
in interfaceApplication
- Returns:
true
if membership aggregation is enabled for this application.
-
setMembershipAggregationEnabled
public void setMembershipAggregationEnabled(boolean membershipAggregationEnabled) Deprecated. -
isCachedDirectoriesAuthenticationOrderOptimisationEnabled
public boolean isCachedDirectoriesAuthenticationOrderOptimisationEnabled()Deprecated.- Specified by:
isCachedDirectoriesAuthenticationOrderOptimisationEnabled
in interfaceApplication
- Returns:
true
if authentication order optimization for cached directories is enabled for this application.
-
setAuthenticationOrderOptimizationForCachedDirectoriesEnabled
public void setAuthenticationOrderOptimizationForCachedDirectoriesEnabled(boolean authenticationOrderOptimizationForCachedDirectoriesEnabled) Deprecated. -
isAuthenticationWithoutPasswordEnabled
public boolean isAuthenticationWithoutPasswordEnabled()Deprecated.Description copied from interface:Application
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.
- Specified by:
isAuthenticationWithoutPasswordEnabled
in interfaceApplication
- Returns:
true
if application has authentication without user's password enabled, false otherwise.
-
setAuthenticationWithoutPasswordEnabled
public void setAuthenticationWithoutPasswordEnabled(boolean authenticationWithoutPasswordEnabled) Deprecated. -
isAuthenticationViaEmailEnabled
public boolean isAuthenticationViaEmailEnabled()Deprecated.Description copied from interface:Application
Determines whether application can authenticate their users using their e-mail.- Specified by:
isAuthenticationViaEmailEnabled
in interfaceApplication
- Returns:
- true if application has authentication via email enabled, false otherwise.
-
setAuthenticationViaEmailEnabled
public void setAuthenticationViaEmailEnabled(boolean authenticationViaEmailEnabled) Deprecated. -
equals
Deprecated.- Specified by:
equals
in classInternalEntity
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCode
in classInternalEntity
-
toString
Deprecated.
-
Application
orImmutableApplication
instead. Since v2.12.