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
ConstructorsModifierConstructorDescriptionprotectedDeprecated.ApplicationImpl(InternalEntityTemplate template) Deprecated.Used for importing via XML migration.protectedApplicationImpl(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 TypeMethodDescriptionvoidaddDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes) Deprecated.voidaddGroupMapping(long directoryId, String groupName) Deprecated.voidaddRemoteAddress(String remoteAddress) Deprecated.static ApplicationImplconvertIfNeeded(Application application) Deprecated.booleanDeprecated.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, returnsnullif there is no value.Deprecated.Get all the values associated with a given key.Deprecated.Returns the Webhooks associated to the application.inthashCode()Deprecated.booleanhasRemoteAddress(String remoteAddress) Deprecated.Returnstrueif the remote address is already in the list of allowable remote addresses for the application.booleanDeprecated.Returnstrueif aliasing is enabled for the application.booleanDeprecated.Determines whether application can authenticate their users using their e-mail.booleanDeprecated.Returnstrueif application has authentication without user's password enabled, false otherwise.booleanDeprecated.booleanisEmpty()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Returnstrueif the usernames and group names returned should be in lowercase.booleanDeprecated.booleanDeprecated.Returns whether the application is a permanent application and thus cannot be removed.static ApplicationImplnewInstance(Application application) Deprecated.static ApplicationImplnewInstance(String name, ApplicationType type) Deprecated.static ApplicationImplnewInstanceWithCredential(String name, ApplicationType type, PasswordCredential credential) Deprecated.static ApplicationImplnewInstanceWithIdAndCredential(String name, ApplicationType type, PasswordCredential credential, long id) Deprecated.static ApplicationImplnewInstanceWithPassword(String name, ApplicationType type, String password) Deprecated.voidremoveAttribute(String name) Deprecated.booleanremoveDirectoryMapping(long directoryId) Deprecated.booleanremoveRemoteAddress(String remoteAddress) Deprecated.voidsetActive(boolean active) Deprecated.voidsetAliasingEnabled(boolean aliasingEnabled) Deprecated.voidsetAttribute(String name, String value) Deprecated.voidsetAttributes(Map<String, String> attributes) Deprecated.Sets the attributes of the application.voidsetAuthenticationOrderOptimizationForCachedDirectoriesEnabled(boolean authenticationOrderOptimizationForCachedDirectoriesEnabled) Deprecated.voidsetAuthenticationViaEmailEnabled(boolean authenticationViaEmailEnabled) Deprecated.voidsetAuthenticationWithoutPasswordEnabled(boolean authenticationWithoutPasswordEnabled) Deprecated.voidsetCredential(PasswordCredential credential) Deprecated.voidsetDescription(String description) Deprecated.voidsetFilterGroupsWithAccessEnabled(boolean filterGroupsWithAccessEnabled) Deprecated.voidsetFilterUsersWithAccessEnabled(boolean filterUsersWithAccessEnabled) Deprecated.voidsetLowerCaseOutput(boolean value) Deprecated.voidsetMembershipAggregationEnabled(boolean membershipAggregationEnabled) Deprecated.voidDeprecated.voidsetRemoteAddresses(Set<RemoteAddress> remoteAddresses) Deprecated.voidsetType(ApplicationType type) Deprecated.voidsetWebhooks(Set<Webhook> webhooks) Deprecated.This setter should only be called by hibernate and must replace the collection instance; compare withupdateDetailsFromApplication(Application).toString()Deprecated.voidupdateAttributesFrom(Map<String, String> attributes) Deprecated.voidupdateDetailsFromApplication(Application application) Deprecated.Only to be used by the ApplicationDAO#update methodvoidvalidate()Deprecated.Methods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
setNamein classInternalEntity
-
setActive
public void setActive(boolean active) Deprecated.- Overrides:
setActivein classInternalEntity
-
getLowerName
Deprecated. -
getType
Deprecated.Description copied from interface:ApplicationReturns the type of the application.- Specified by:
getTypein interfaceApplication- Returns:
- application type
-
setType
Deprecated. -
getDescription
Deprecated.Description copied from interface:ApplicationReturns the description of the application.- Specified by:
getDescriptionin interfaceApplication- Returns:
- description of the application
-
setDescription
Deprecated. -
getCredential
Deprecated.Description copied from interface:ApplicationReturns the application password.- Specified by:
getCredentialin interfaceApplication- Returns:
- application password
-
setCredential
Deprecated. -
isPermanent
public boolean isPermanent()Deprecated.Description copied from interface:ApplicationReturns whether the application is a permanent application and thus cannot be removed. For instance, the Crowd application is a permanent application.- Specified by:
isPermanentin interfaceApplication- Returns:
trueif the application is permanent.
-
getAttributes
Deprecated.Description copied from interface:ApplicationReturns the attributes of the application.- Specified by:
getAttributesin interfaceApplication- Returns:
- attributes of the application
-
setAttributes
Deprecated.Sets the attributes of the application.attributesmust be a mutableMap.- Parameters:
attributes- new attributes
-
getDirectoryMappings
Deprecated.Description copied from interface:ApplicationReturns the list of directory mappings ranked by directory priority as in perspective of the application.- Specified by:
getDirectoryMappingsin interfaceApplication- Returns:
- List of directory mappings (never null).
-
getApplicationDirectoryMappings
Deprecated.Description copied from interface:ApplicationReturns the list of directory mappings ranked by directory priority as in perspective of the application.- Specified by:
getApplicationDirectoryMappingsin 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:ApplicationReturns a directory mapping of the directory specified by directory id.- Specified by:
getDirectoryMappingin 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:ApplicationReturns a directory mapping of the directory specified by directory id.- Specified by:
getApplicationDirectoryMappingin 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:ApplicationReturns 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:
getRemoteAddressesin interfaceApplication- Returns:
- whitelist of addresses allowed to connect to Crowd as the application.
-
addRemoteAddress
Deprecated. -
setRemoteAddresses
Deprecated. -
hasRemoteAddress
Deprecated.Description copied from interface:ApplicationReturnstrueif the remote address is already in the list of allowable remote addresses for the application.- Specified by:
hasRemoteAddressin interfaceApplication- Parameters:
remoteAddress- RemoteAddress whose presence is to be tested- Returns:
trueif the remote address is already in the list of allowable remote addresses for the application
-
removeRemoteAddress
Deprecated. -
getWebhooks
Deprecated.Description copied from interface:ApplicationReturns 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:
getWebhooksin 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:AttributesGet 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:
getValuesin interfaceAttributes- Parameters:
name- attribute name.- Returns:
- a collection of the only attribtue value or
nullif the directory does not have the attribute.
-
getValue
Deprecated.Description copied from interface:AttributesReturns any value associated with the given key, returnsnullif there is no value.- Specified by:
getValuein interfaceAttributes- Parameters:
name- the key to retrieve the value for- Returns:
- any value associated with the given key, or
nullif there is no value
-
getKeys
Deprecated.Description copied from interface:AttributesGets 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:
getKeysin interfaceAttributes- Returns:
- a set of all the keys.
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmptyin interfaceAttributes- Returns:
trueif there are no attributes
-
setAttribute
Deprecated. -
removeAttribute
Deprecated. -
isFilteringUsersWithAccessEnabled
public boolean isFilteringUsersWithAccessEnabled()Deprecated.- Specified by:
isFilteringUsersWithAccessEnabledin interfaceApplication- Returns:
trueif user queries should return only users with access.
-
setFilterUsersWithAccessEnabled
public void setFilterUsersWithAccessEnabled(boolean filterUsersWithAccessEnabled) Deprecated. -
isFilteringGroupsWithAccessEnabled
public boolean isFilteringGroupsWithAccessEnabled()Deprecated.- Specified by:
isFilteringGroupsWithAccessEnabledin interfaceApplication- Returns:
trueif group queries should return only groups with access.
-
setFilterGroupsWithAccessEnabled
public void setFilterGroupsWithAccessEnabled(boolean filterGroupsWithAccessEnabled) Deprecated. -
isLowerCaseOutput
public boolean isLowerCaseOutput()Deprecated.Description copied from interface:ApplicationReturnstrueif the usernames and group names returned should be in lowercase.- Specified by:
isLowerCaseOutputin interfaceApplication- Returns:
trueif 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:ApplicationReturnstrueif aliasing is enabled for the application.- Specified by:
isAliasingEnabledin interfaceApplication- Returns:
trueif aliasing is enabled for the application
-
isMembershipAggregationEnabled
public boolean isMembershipAggregationEnabled()Deprecated.- Specified by:
isMembershipAggregationEnabledin interfaceApplication- Returns:
trueif membership aggregation is enabled for this application.
-
setMembershipAggregationEnabled
public void setMembershipAggregationEnabled(boolean membershipAggregationEnabled) Deprecated. -
isCachedDirectoriesAuthenticationOrderOptimisationEnabled
public boolean isCachedDirectoriesAuthenticationOrderOptimisationEnabled()Deprecated.- Specified by:
isCachedDirectoriesAuthenticationOrderOptimisationEnabledin interfaceApplication- Returns:
trueif 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:ApplicationReturnstrueif 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:
isAuthenticationWithoutPasswordEnabledin interfaceApplication- Returns:
trueif 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:ApplicationDetermines whether application can authenticate their users using their e-mail.- Specified by:
isAuthenticationViaEmailEnabledin interfaceApplication- Returns:
- true if application has authentication via email enabled, false otherwise.
-
setAuthenticationViaEmailEnabled
public void setAuthenticationViaEmailEnabled(boolean authenticationViaEmailEnabled) Deprecated. -
equals
Deprecated.- Specified by:
equalsin classInternalEntity
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCodein classInternalEntity
-
toString
Deprecated.
-
ApplicationorImmutableApplicationinstead. Since v2.12.