Class ApplicationImpl

java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.application.ApplicationImpl
All Implemented Interfaces:
Attributes, Application, TimestampedEntity, Serializable

@Deprecated public class ApplicationImpl extends InternalEntity implements Application
Deprecated.
Use Application or ImmutableApplication instead. Since v2.12.
Implementation of Application (designed for use for Hibernate).
See Also:
  • Constructor Details

  • Method Details

    • convertIfNeeded

      public static ApplicationImpl convertIfNeeded(Application application)
      Deprecated.
    • newInstance

      public static ApplicationImpl newInstance(Application application)
      Deprecated.
    • newInstance

      public static ApplicationImpl newInstance(String name, ApplicationType type)
      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

      public void updateDetailsFromApplication(Application application)
      Deprecated.
      Only to be used by the ApplicationDAO#update method
    • updateAttributesFrom

      public void updateAttributesFrom(Map<String,String> attributes)
      Deprecated.
    • validate

      public void validate()
      Deprecated.
    • setName

      public void setName(String name)
      Deprecated.
      Overrides:
      setName in class InternalEntity
    • setActive

      public void setActive(boolean active)
      Deprecated.
      Overrides:
      setActive in class InternalEntity
    • getLowerName

      public String getLowerName()
      Deprecated.
    • getType

      public ApplicationType getType()
      Deprecated.
      Description copied from interface: Application
      Returns the type of the application.
      Specified by:
      getType in interface Application
      Returns:
      application type
    • setType

      public void setType(ApplicationType type)
      Deprecated.
    • getDescription

      public String getDescription()
      Deprecated.
      Description copied from interface: Application
      Returns the description of the application.
      Specified by:
      getDescription in interface Application
      Returns:
      description of the application
    • setDescription

      public void setDescription(String description)
      Deprecated.
    • getCredential

      public PasswordCredential getCredential()
      Deprecated.
      Description copied from interface: Application
      Returns the application password.
      Specified by:
      getCredential in interface Application
      Returns:
      application password
    • setCredential

      public void setCredential(PasswordCredential credential)
      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 interface Application
      Returns:
      true if the application is permanent.
    • getAttributes

      public Map<String,String> getAttributes()
      Deprecated.
      Description copied from interface: Application
      Returns the attributes of the application.
      Specified by:
      getAttributes in interface Application
      Returns:
      attributes of the application
    • setAttributes

      public void setAttributes(Map<String,String> attributes)
      Deprecated.
      Sets the attributes of the application. attributes must be a mutable Map.
      Parameters:
      attributes - new attributes
    • getDirectoryMappings

      public List<DirectoryMapping> 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 interface Application
      Returns:
      List of directory mappings (never null).
    • getApplicationDirectoryMappings

      @Nonnull public List<ApplicationDirectoryMapping> 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 interface Application
      Returns:
      List of directory mappings (never null).
    • addDirectoryMapping

      public void addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes)
      Deprecated.
    • addGroupMapping

      public void addGroupMapping(long directoryId, String groupName)
      Deprecated.
    • getDirectoryMapping

      public DirectoryMapping getDirectoryMapping(long directoryId)
      Deprecated.
      Description copied from interface: Application
      Returns a directory mapping of the directory specified by directory id.
      Specified by:
      getDirectoryMapping in interface Application
      Parameters:
      directoryId - ID of the directory
      Returns:
      directory mapping if found, null if the directory mapping could not be found
    • getApplicationDirectoryMapping

      @Nullable public ApplicationDirectoryMapping getApplicationDirectoryMapping(long directoryId)
      Deprecated.
      Description copied from interface: Application
      Returns a directory mapping of the directory specified by directory id.
      Specified by:
      getApplicationDirectoryMapping in interface Application
      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

      public Set<RemoteAddress> 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 interface Application
      Returns:
      whitelist of addresses allowed to connect to Crowd as the application.
    • addRemoteAddress

      public void addRemoteAddress(String remoteAddress)
      Deprecated.
    • setRemoteAddresses

      public void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
      Deprecated.
    • hasRemoteAddress

      public boolean hasRemoteAddress(String remoteAddress)
      Deprecated.
      Description copied from interface: Application
      Returns true if the remote address is already in the list of allowable remote addresses for the application.
      Specified by:
      hasRemoteAddress in interface 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
    • removeRemoteAddress

      public boolean removeRemoteAddress(String remoteAddress)
      Deprecated.
    • getWebhooks

      public Set<Webhook> 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 interface Application
      Returns:
      Webhooks associated to the application.
    • setWebhooks

      public void setWebhooks(Set<Webhook> webhooks)
      Deprecated.
      This setter should only be called by hibernate and must replace the collection instance; compare with updateDetailsFromApplication(Application).
      Parameters:
      webhooks - new Set of webhooks
    • getValues

      public Set<String> getValues(String name)
      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 interface Attributes
      Parameters:
      name - attribute name.
      Returns:
      a collection of the only attribtue value or null if the directory does not have the attribute.
    • getValue

      public String getValue(String name)
      Deprecated.
      Description copied from interface: Attributes
      Returns any value associated with the given key, returns null if there is no value.
      Specified by:
      getValue in interface Attributes
      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

      public Set<String> 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 interface Attributes
      Returns:
      a set of all the keys.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Specified by:
      isEmpty in interface Attributes
      Returns:
      true if there are no attributes
    • setAttribute

      public void setAttribute(String name, String value)
      Deprecated.
    • removeAttribute

      public void removeAttribute(String name)
      Deprecated.
    • isFilteringUsersWithAccessEnabled

      public boolean isFilteringUsersWithAccessEnabled()
      Deprecated.
      Specified by:
      isFilteringUsersWithAccessEnabled in interface Application
      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 interface Application
      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
      Returns true if the usernames and group names returned should be in lowercase.
      Specified by:
      isLowerCaseOutput in interface Application
      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
      Returns true if aliasing is enabled for the application.
      Specified by:
      isAliasingEnabled in interface Application
      Returns:
      true if aliasing is enabled for the application
    • isMembershipAggregationEnabled

      public boolean isMembershipAggregationEnabled()
      Deprecated.
      Specified by:
      isMembershipAggregationEnabled in interface Application
      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 interface Application
      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
      Returns true 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 interface Application
      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 interface Application
      Returns:
      true if application has authentication via email enabled, false otherwise.
    • setAuthenticationViaEmailEnabled

      public void setAuthenticationViaEmailEnabled(boolean authenticationViaEmailEnabled)
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Specified by:
      equals in class InternalEntity
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in class InternalEntity
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object