|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.model.application.ImmutableApplication
public final class ImmutableApplication
Immutable Application
Nested Class Summary | |
---|---|
static class |
ImmutableApplication.Builder
|
Constructor Summary | |
---|---|
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,
boolean lowercaseOutput,
boolean aliasingEnabled,
Date createdDate,
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(String name,
ApplicationType type)
Constructs a new builder for an ImmutableApplication. |
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. |
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 |
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(Long id, String name, ApplicationType type, String description, PasswordCredential passwordCredential, boolean permanent, boolean active, Map<String,String> attributes, List<DirectoryMapping> directoryMappings, Set<RemoteAddress> remoteAddresses, boolean lowercaseOutput, boolean aliasingEnabled, Date createdDate, Date updatedDate)
Method Detail |
---|
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
public DirectoryMapping getDirectoryMapping(long directoryId)
Application
getDirectoryMapping
in interface Application
directoryId
- ID of the directory
public 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 tested
public boolean isLowerCaseOutput()
Application
isLowerCaseOutput
in interface Application
public boolean isAliasingEnabled()
Application
isAliasingEnabled
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 for
public String getValue(String key)
Attributes
null
if there is no value.
getValue
in interface Attributes
key
- the key to retrieve the value for
null
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 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 |