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) |
static ImmutableApplication |
from(Application application) |
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()
ApplicationgetId in interface Applicationpublic String getName()
ApplicationgetName in interface Applicationpublic ApplicationType getType()
ApplicationgetType in interface Applicationpublic String getDescription()
ApplicationgetDescription in interface Applicationpublic PasswordCredential getCredential()
ApplicationgetCredential in interface Applicationpublic boolean isPermanent()
ApplicationisPermanent in interface Applicationpublic boolean isActive()
ApplicationisActive in interface Applicationpublic Map<String,String> getAttributes()
ApplicationgetAttributes in interface Applicationpublic List<DirectoryMapping> getDirectoryMappings()
ApplicationgetDirectoryMappings in interface Application@Nonnull public List<ApplicationDirectoryMapping> getApplicationDirectoryMappings()
ApplicationgetApplicationDirectoryMappings in interface Applicationpublic DirectoryMapping getDirectoryMapping(long directoryId)
ApplicationgetDirectoryMapping in interface ApplicationdirectoryId - ID of the directorypublic ApplicationDirectoryMapping getApplicationDirectoryMapping(long directoryId)
ApplicationgetApplicationDirectoryMapping in interface ApplicationdirectoryId - ID of the directorypublic Set<RemoteAddress> getRemoteAddresses()
ApplicationgetRemoteAddresses in interface Applicationpublic boolean hasRemoteAddress(String remoteAddress)
ApplicationhasRemoteAddress in interface ApplicationremoteAddress - RemoteAddress whose presence is to be testedpublic Set<Webhook> getWebhooks()
ApplicationgetWebhooks in interface Applicationpublic boolean isLowerCaseOutput()
ApplicationisLowerCaseOutput in interface Applicationpublic boolean isAliasingEnabled()
ApplicationisAliasingEnabled in interface Applicationpublic boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled in interface Applicationpublic Date getCreatedDate()
ApplicationgetCreatedDate in interface Applicationpublic Date getUpdatedDate()
ApplicationgetUpdatedDate in interface Applicationpublic Set<String> getValues(String key)
AttributesgetValues in interface Attributeskey - the key to retrieve the values forpublic String getValue(String key)
Attributesnull if there is no value.getValue in interface Attributeskey - 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 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 duplicateapplicationpublic static ImmutableApplication from(Application application)
ImmutableApplication with the same properties as the given application.
Will avoid creating a copy if possible.Copyright © 2018 Atlassian. All rights reserved.