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 |
isAuthenticationViaEmailEnabled()
Deprecated.
Determines whether application can authenticate their users using their e-mail.
|
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 |
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 |
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, setUpdatedDateToNowclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCreatedDate, getId, getName, getUpdatedDate, isActiveprotected 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 InternalEntitypublic void setActive(boolean active)
setActive in class InternalEntitypublic String getLowerName()
public ApplicationType getType()
ApplicationgetType in interface Applicationpublic void setType(ApplicationType type)
public String getDescription()
ApplicationgetDescription in interface Applicationpublic void setDescription(String description)
public PasswordCredential getCredential()
ApplicationgetCredential in interface Applicationpublic void setCredential(PasswordCredential credential)
public boolean isPermanent()
ApplicationisPermanent in interface Applicationpublic Map<String,String> getAttributes()
ApplicationgetAttributes in interface Applicationpublic void setAttributes(Map<String,String> attributes)
attributes must be a mutable Map.attributes - new attributespublic List<DirectoryMapping> getDirectoryMappings()
ApplicationgetDirectoryMappings in interface Application@Nonnull public List<ApplicationDirectoryMapping> getApplicationDirectoryMappings()
ApplicationgetApplicationDirectoryMappings in interface Applicationpublic void addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes)
public void addGroupMapping(long directoryId,
String groupName)
public DirectoryMapping getDirectoryMapping(long directoryId)
ApplicationgetDirectoryMapping in interface ApplicationdirectoryId - ID of the directory@Nullable public ApplicationDirectoryMapping getApplicationDirectoryMapping(long directoryId)
ApplicationgetApplicationDirectoryMapping in interface ApplicationdirectoryId - ID of the directorypublic boolean removeDirectoryMapping(long directoryId)
public Set<RemoteAddress> getRemoteAddresses()
ApplicationgetRemoteAddresses in interface Applicationpublic void addRemoteAddress(String remoteAddress)
public void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
public boolean hasRemoteAddress(String remoteAddress)
ApplicationhasRemoteAddress in interface ApplicationremoteAddress - RemoteAddress whose presence is to be testedpublic boolean removeRemoteAddress(String remoteAddress)
public Set<Webhook> getWebhooks()
ApplicationgetWebhooks in interface Applicationpublic void setWebhooks(Set<Webhook> webhooks)
updateDetailsFromApplication(Application).webhooks - new Set of webhookspublic Set<String> getValues(String name)
AttributesgetValues in interface Attributesname - attribute name.null
if the directory does not have the attribute.public String getValue(String name)
Attributesnull if there is no value.getValue in interface Attributesname - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic void removeAttribute(String name)
public boolean isFilteringUsersWithAccessEnabled()
isFilteringUsersWithAccessEnabled in interface Applicationpublic void setFilterUsersWithAccessEnabled(boolean filterUsersWithAccessEnabled)
public boolean isFilteringGroupsWithAccessEnabled()
isFilteringGroupsWithAccessEnabled in interface Applicationpublic void setFilterGroupsWithAccessEnabled(boolean filterGroupsWithAccessEnabled)
public boolean isLowerCaseOutput()
ApplicationisLowerCaseOutput in interface Applicationpublic void setLowerCaseOutput(boolean value)
public void setAliasingEnabled(boolean aliasingEnabled)
public boolean isAliasingEnabled()
ApplicationisAliasingEnabled in interface Applicationpublic boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled in interface Applicationpublic void setMembershipAggregationEnabled(boolean membershipAggregationEnabled)
public boolean isCachedDirectoriesAuthenticationOrderOptimisationEnabled()
isCachedDirectoriesAuthenticationOrderOptimisationEnabled in interface Applicationpublic void setAuthenticationOrderOptimizationForCachedDirectoriesEnabled(boolean authenticationOrderOptimizationForCachedDirectoriesEnabled)
public boolean isAuthenticationWithoutPasswordEnabled()
ApplicationAuthentication 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 Applicationpublic void setAuthenticationWithoutPasswordEnabled(boolean authenticationWithoutPasswordEnabled)
public boolean isAuthenticationViaEmailEnabled()
ApplicationisAuthenticationViaEmailEnabled in interface Applicationpublic void setAuthenticationViaEmailEnabled(boolean authenticationViaEmailEnabled)
public boolean equals(Object o)
equals in class InternalEntitypublic int hashCode()
hashCode in class InternalEntityCopyright © 2022 Atlassian. All rights reserved.