|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.model.application.ImmutableApplication
public final class ImmutableApplication
Immutable Application
| Nested Class Summary | |
|---|---|
static class |
ImmutableApplication.Builder
|
| Constructor Summary | |
|---|---|
ImmutableApplication(java.lang.Long id,
java.lang.String name,
ApplicationType type,
java.lang.String description,
PasswordCredential passwordCredential,
boolean permanent,
boolean active,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<DirectoryMapping> directoryMappings,
java.util.Set<RemoteAddress> remoteAddresses,
boolean lowercaseOutput,
boolean aliasingEnabled,
java.util.Date createdDate,
java.util.Date updatedDate)
|
|
| Method Summary | |
|---|---|
static ImmutableApplication.Builder |
builder(Application application)
Constructs a new builder for an ImmutableApplication with the fields initialised to application. |
static ImmutableApplication.Builder |
builder(java.lang.String name,
ApplicationType type)
Constructs a new builder for an ImmutableApplication. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the attributes of the application. |
java.util.Date |
getCreatedDate()
Returns the date the application was created. |
PasswordCredential |
getCredential()
Returns the application password. |
java.lang.String |
getDescription()
Returns the description of the application. |
DirectoryMapping |
getDirectoryMapping(long directoryId)
Returns a directory mapping of the directory specified by directory id. |
java.util.List<DirectoryMapping> |
getDirectoryMappings()
Returns the list of directory mappings ranked by directory priority as in perspective of the application. |
java.lang.Long |
getId()
Returns the application ID. |
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getName()
Returns the name of the application. |
java.util.Set<RemoteAddress> |
getRemoteAddresses()
Returns the whitelist of addresses allowed to connect to Crowd as the application. |
ApplicationType |
getType()
Returns the type of the application. |
java.util.Date |
getUpdatedDate()
Returns the date the application was last updated. |
java.lang.String |
getValue(java.lang.String key)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.String key)
Get all the values associated with a given key. |
boolean |
hasRemoteAddress(java.lang.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 |
isPermanent()
Returns whether the application is a permanent application and thus cannot be removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableApplication(java.lang.Long id,
java.lang.String name,
ApplicationType type,
java.lang.String description,
PasswordCredential passwordCredential,
boolean permanent,
boolean active,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<DirectoryMapping> directoryMappings,
java.util.Set<RemoteAddress> remoteAddresses,
boolean lowercaseOutput,
boolean aliasingEnabled,
java.util.Date createdDate,
java.util.Date updatedDate)
| Method Detail |
|---|
public java.lang.Long getId()
Application
getId in interface Applicationpublic java.lang.String getName()
Application
getName in interface Applicationpublic ApplicationType getType()
Application
getType in interface Applicationpublic java.lang.String getDescription()
Application
getDescription in interface Applicationpublic PasswordCredential getCredential()
Application
getCredential in interface Applicationpublic boolean isPermanent()
Application
isPermanent in interface Applicationpublic boolean isActive()
Application
isActive in interface Applicationpublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
Application
getAttributes in interface Applicationpublic java.util.List<DirectoryMapping> getDirectoryMappings()
Application
getDirectoryMappings in interface Applicationpublic DirectoryMapping getDirectoryMapping(long directoryId)
Application
getDirectoryMapping in interface ApplicationdirectoryId - ID of the directory
public java.util.Set<RemoteAddress> getRemoteAddresses()
Application
getRemoteAddresses in interface Applicationpublic boolean hasRemoteAddress(java.lang.String remoteAddress)
Application
hasRemoteAddress in interface ApplicationremoteAddress - RemoteAddress whose presence is to be tested
public boolean isLowerCaseOutput()
Application
isLowerCaseOutput in interface Applicationpublic boolean isAliasingEnabled()
Application
isAliasingEnabled in interface Applicationpublic java.util.Date getCreatedDate()
Application
getCreatedDate in interface Applicationpublic java.util.Date getUpdatedDate()
Application
getUpdatedDate in interface Applicationpublic java.util.Set<java.lang.String> getValues(java.lang.String key)
Attributes
getValues in interface Attributeskey - the key to retrieve the values for
public java.lang.String getValue(java.lang.String key)
Attributesnull if there is no value.
getValue in interface Attributeskey - the key to retrieve the value for
null if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributes
public static ImmutableApplication.Builder builder(java.lang.String name,
ApplicationType type)
name - name of the applicationtype - type of the application
public static ImmutableApplication.Builder builder(Application application)
application.
application - application to duplicate
application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||