public final class ImmutableApplication extends Object implements Application
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableApplication.Builder |
Constructor and Description |
---|
ImmutableApplication(Long id,
String name,
ApplicationType type,
String description,
PasswordCredential passwordCredential,
boolean permanent,
boolean active,
Map<String,String> attributes,
List<DirectoryMapping> directoryMappings,
Set<RemoteAddress> remoteAddresses,
Set<Webhook> webhooks,
boolean lowercaseOutput,
boolean aliasingEnabled,
Date createdDate,
Date updatedDate)
Deprecated.
Use
ImmutableApplication.Builder instead. |
Modifier and Type | Method and Description |
---|---|
static ImmutableApplication.Builder |
builder(Application application)
Constructs a new builder for an ImmutableApplication with the fields initialised to
application . |
static ImmutableApplication.Builder |
builder(String name,
ApplicationType type)
Constructs a new builder for an ImmutableApplication.
|
boolean |
equals(Object o) |
ApplicationDirectoryMapping |
getApplicationDirectoryMapping(long directoryId)
Returns a directory mapping of the directory specified by directory id.
|
List<ApplicationDirectoryMapping> |
getApplicationDirectoryMappings()
Returns the list of directory mappings ranked by directory priority as in perspective of the application.
|
Map<String,String> |
getAttributes()
Returns the attributes of the application.
|
Date |
getCreatedDate()
Returns the date the application was created.
|
PasswordCredential |
getCredential()
Returns the application password.
|
String |
getDescription()
Returns the description of the application.
|
DirectoryMapping |
getDirectoryMapping(long directoryId)
Returns a directory mapping of the directory specified by directory id.
|
List<DirectoryMapping> |
getDirectoryMappings()
Returns the list of directory mappings ranked by directory priority as in perspective of the application.
|
Long |
getId()
Returns the application ID.
|
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getName()
Returns the name of the application.
|
Set<RemoteAddress> |
getRemoteAddresses()
Returns the whitelist of addresses allowed to connect to Crowd as the application.
|
ApplicationType |
getType()
Returns the type of the application.
|
Date |
getUpdatedDate()
Returns the date the application was last updated.
|
String |
getValue(String key)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String key)
Get all the values associated with a given key.
|
Set<Webhook> |
getWebhooks()
Returns the Webhooks associated to the application.
|
int |
hashCode() |
boolean |
hasRemoteAddress(String remoteAddress)
Returns true if the remote address is already in the list of allowable remote addresses for the
application.
|
boolean |
isActive()
Returns whether the application is active.
|
boolean |
isAliasingEnabled()
Returns true if aliasing is enabled for the application.
|
boolean |
isEmpty() |
boolean |
isLowerCaseOutput()
Returns true if the usernames and group names returned should be in lowercase.
|
boolean |
isMembershipAggregationEnabled() |
boolean |
isPermanent()
Returns whether the application is a permanent application and thus cannot be removed.
|
String |
toString() |
@Deprecated public ImmutableApplication(Long id, String name, ApplicationType type, String description, PasswordCredential passwordCredential, boolean permanent, boolean active, Map<String,String> attributes, List<DirectoryMapping> directoryMappings, Set<RemoteAddress> remoteAddresses, Set<Webhook> webhooks, boolean lowercaseOutput, boolean aliasingEnabled, Date createdDate, Date updatedDate)
ImmutableApplication.Builder
instead.public Long getId()
Application
getId
in interface Application
public String getName()
Application
getName
in interface Application
public ApplicationType getType()
Application
getType
in interface Application
public String getDescription()
Application
getDescription
in interface Application
public PasswordCredential getCredential()
Application
getCredential
in interface Application
public boolean isPermanent()
Application
isPermanent
in interface Application
public boolean isActive()
Application
isActive
in interface Application
public Map<String,String> getAttributes()
Application
getAttributes
in interface Application
public List<DirectoryMapping> getDirectoryMappings()
Application
getDirectoryMappings
in interface Application
@Nonnull public List<ApplicationDirectoryMapping> getApplicationDirectoryMappings()
Application
getApplicationDirectoryMappings
in interface Application
public DirectoryMapping getDirectoryMapping(long directoryId)
Application
getDirectoryMapping
in interface Application
directoryId
- ID of the directorypublic ApplicationDirectoryMapping getApplicationDirectoryMapping(long directoryId)
Application
getApplicationDirectoryMapping
in interface Application
directoryId
- ID of the directorypublic Set<RemoteAddress> getRemoteAddresses()
Application
getRemoteAddresses
in interface Application
public boolean hasRemoteAddress(String remoteAddress)
Application
hasRemoteAddress
in interface Application
remoteAddress
- RemoteAddress whose presence is to be testedpublic Set<Webhook> getWebhooks()
Application
getWebhooks
in interface Application
public boolean isLowerCaseOutput()
Application
isLowerCaseOutput
in interface Application
public boolean isAliasingEnabled()
Application
isAliasingEnabled
in interface Application
public boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled
in interface Application
public Date getCreatedDate()
Application
getCreatedDate
in interface Application
public Date getUpdatedDate()
Application
getUpdatedDate
in interface Application
public Set<String> getValues(String key)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values forpublic String getValue(String key)
Attributes
null
if there is no value.getValue
in interface Attributes
key
- 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 static ImmutableApplication.Builder builder(String name, ApplicationType type)
name
- name of the applicationtype
- type of the applicationpublic static ImmutableApplication.Builder builder(Application application)
application
.application
- application to duplicateapplication
Copyright © 2018 Atlassian. All rights reserved.