Application
or ImmutableApplication
instead. Since v2.12.@Deprecated public class ApplicationImpl extends InternalEntity implements Application
active, createdDate, id, name, updatedDate
Modifier | Constructor and Description |
---|---|
protected |
ApplicationImpl()
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.
|
Modifier and Type | Method and Description |
---|---|
void |
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 |
equals(Object o)
Deprecated.
|
ApplicationDirectoryMapping |
getApplicationDirectoryMapping(long directoryId)
Deprecated.
Returns a directory mapping of the directory specified by directory id.
|
List<ApplicationDirectoryMapping> |
getApplicationDirectoryMappings()
Deprecated.
Returns the list of directory mappings ranked by directory priority as in perspective of the application.
|
Map<String,String> |
getAttributes()
Deprecated.
Returns the attributes of the application.
|
PasswordCredential |
getCredential()
Deprecated.
Returns the application password.
|
String |
getDescription()
Deprecated.
Returns the description of the application.
|
DirectoryMapping |
getDirectoryMapping(long directoryId)
Deprecated.
Returns a directory mapping of the directory specified by directory id.
|
List<DirectoryMapping> |
getDirectoryMappings()
Deprecated.
Returns the list of directory mappings ranked by directory priority as in perspective of the application.
|
Set<String> |
getKeys()
Deprecated.
Gets all the keys of the attributes.
|
String |
getLowerName()
Deprecated.
|
Set<RemoteAddress> |
getRemoteAddresses()
Deprecated.
Returns the whitelist of addresses allowed to connect to Crowd as the application.
|
ApplicationType |
getType()
Deprecated.
Returns the type of the application.
|
String |
getValue(String name)
Deprecated.
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
Deprecated.
Get all the values associated with a given key.
|
Set<Webhook> |
getWebhooks()
Deprecated.
Returns the Webhooks associated to the application.
|
int |
hashCode()
Deprecated.
|
boolean |
hasRemoteAddress(String remoteAddress)
Deprecated.
Returns true if the remote address is already in the list of allowable remote addresses for the
application.
|
boolean |
isAliasingEnabled()
Deprecated.
Returns true if aliasing is enabled for the application.
|
boolean |
isAuthenticationWithoutPasswordEnabled()
Deprecated.
Returns true if application has authentication without user's password enabled, false otherwise.
|
boolean |
isCachedDirectoriesAuthenticationOrderOptimisationEnabled()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
boolean |
isFilteringGroupsWithAccessEnabled()
Deprecated.
|
boolean |
isFilteringUsersWithAccessEnabled()
Deprecated.
|
boolean |
isLowerCaseOutput()
Deprecated.
Returns true if the usernames and group names returned should be in lowercase.
|
boolean |
isMembershipAggregationEnabled()
Deprecated.
|
boolean |
isPermanent()
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 |
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 |
setName(String name)
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 with
updateDetailsFromApplication(Application) . |
String |
toString()
Deprecated.
|
void |
updateAttributesFrom(Map<String,String> attributes)
Deprecated.
|
void |
updateDetailsFromApplication(Application application)
Deprecated.
Only to be used by the ApplicationDAO#update method
|
void |
validate()
Deprecated.
|
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreatedDate, getId, getName, getUpdatedDate, isActive
protected 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)
public ApplicationImpl(InternalEntityTemplate template)
template
- directory template.public static ApplicationImpl convertIfNeeded(Application application)
public static ApplicationImpl newInstance(Application application)
public static ApplicationImpl newInstance(String name, ApplicationType type)
public static ApplicationImpl newInstanceWithIdAndCredential(String name, ApplicationType type, PasswordCredential credential, long id)
public static ApplicationImpl newInstanceWithCredential(String name, ApplicationType type, PasswordCredential credential)
public static ApplicationImpl newInstanceWithPassword(String name, ApplicationType type, String password)
public void updateDetailsFromApplication(Application application)
public void validate()
public void setName(String name)
setName
in class InternalEntity
public void setActive(boolean active)
setActive
in class InternalEntity
public String getLowerName()
public ApplicationType getType()
Application
getType
in interface Application
public void setType(ApplicationType type)
public String getDescription()
Application
getDescription
in interface Application
public void setDescription(String description)
public PasswordCredential getCredential()
Application
getCredential
in interface Application
public void setCredential(PasswordCredential credential)
public boolean isPermanent()
Application
isPermanent
in interface Application
public Map<String,String> getAttributes()
Application
getAttributes
in interface Application
public void setAttributes(Map<String,String> attributes)
attributes
must be a mutable Map.attributes
- new attributespublic List<DirectoryMapping> getDirectoryMappings()
Application
getDirectoryMappings
in interface Application
@Nonnull public List<ApplicationDirectoryMapping> getApplicationDirectoryMappings()
Application
getApplicationDirectoryMappings
in interface Application
public void addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes)
public void addGroupMapping(long directoryId, String groupName)
public DirectoryMapping getDirectoryMapping(long directoryId)
Application
getDirectoryMapping
in interface Application
directoryId
- ID of the directory@Nullable public ApplicationDirectoryMapping getApplicationDirectoryMapping(long directoryId)
Application
getApplicationDirectoryMapping
in interface Application
directoryId
- ID of the directorypublic boolean removeDirectoryMapping(long directoryId)
public Set<RemoteAddress> getRemoteAddresses()
Application
getRemoteAddresses
in interface Application
public void addRemoteAddress(String remoteAddress)
public void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
public boolean hasRemoteAddress(String remoteAddress)
Application
hasRemoteAddress
in interface Application
remoteAddress
- RemoteAddress whose presence is to be testedpublic boolean removeRemoteAddress(String remoteAddress)
public Set<Webhook> getWebhooks()
Application
getWebhooks
in interface Application
public void setWebhooks(Set<Webhook> webhooks)
updateDetailsFromApplication(Application)
.webhooks
- new Set of webhookspublic Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- attribute name.null
if the directory does not have the attribute.public String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic void removeAttribute(String name)
public boolean isFilteringUsersWithAccessEnabled()
isFilteringUsersWithAccessEnabled
in interface Application
public void setFilterUsersWithAccessEnabled(boolean filterUsersWithAccessEnabled)
public boolean isFilteringGroupsWithAccessEnabled()
isFilteringGroupsWithAccessEnabled
in interface Application
public void setFilterGroupsWithAccessEnabled(boolean filterGroupsWithAccessEnabled)
public boolean isLowerCaseOutput()
Application
isLowerCaseOutput
in interface Application
public void setLowerCaseOutput(boolean value)
public void setAliasingEnabled(boolean aliasingEnabled)
public boolean isAliasingEnabled()
Application
isAliasingEnabled
in interface Application
public boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled
in interface Application
public void setMembershipAggregationEnabled(boolean membershipAggregationEnabled)
public boolean isCachedDirectoriesAuthenticationOrderOptimisationEnabled()
isCachedDirectoriesAuthenticationOrderOptimisationEnabled
in interface Application
public void setAuthenticationOrderOptimizationForCachedDirectoriesEnabled(boolean authenticationOrderOptimizationForCachedDirectoriesEnabled)
public boolean isAuthenticationWithoutPasswordEnabled()
Application
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.
isAuthenticationWithoutPasswordEnabled
in interface Application
public void setAuthenticationWithoutPasswordEnabled(boolean authenticationWithoutPasswordEnabled)
public boolean equals(Object o)
equals
in class InternalEntity
public int hashCode()
hashCode
in class InternalEntity
Copyright © 2021 Atlassian. All rights reserved.