com.atlassian.crowd.model.application
Class ImmutableApplication

java.lang.Object
  extended by com.atlassian.crowd.model.application.ImmutableApplication
All Implemented Interfaces:
com.atlassian.crowd.embedded.api.Attributes, Application, Serializable

public final class ImmutableApplication
extends Object
implements Application

Immutable Application

Since:
2.2
See Also:
Serialized Form

Nested Class Summary
static class ImmutableApplication.Builder
           
 
Constructor Summary
ImmutableApplication(Long id, String name, ApplicationType type, String description, com.atlassian.crowd.embedded.api.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)
           
 
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()
           
 Date getCreatedDate()
           
 com.atlassian.crowd.embedded.api.PasswordCredential getCredential()
           
 String getDescription()
           
 DirectoryMapping getDirectoryMapping(long directoryId)
           
 List<DirectoryMapping> getDirectoryMappings()
           
 Long getId()
           
 Set<String> getKeys()
           
 String getName()
           
 Set<RemoteAddress> getRemoteAddresses()
           
 ApplicationType getType()
           
 Date getUpdatedDate()
           
 String getValue(String key)
           
 Set<String> getValues(String key)
           
 Set<Webhook> getWebhooks()
           
 boolean hasRemoteAddress(String remoteAddress)
           
 boolean isActive()
           
 boolean isAliasingEnabled()
           
 boolean isEmpty()
           
 boolean isLowerCaseOutput()
           
 boolean isPermanent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableApplication

public ImmutableApplication(Long id,
                            String name,
                            ApplicationType type,
                            String description,
                            com.atlassian.crowd.embedded.api.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)
Method Detail

getId

public Long getId()
Specified by:
getId in interface Application

getName

public String getName()
Specified by:
getName in interface Application

getType

public ApplicationType getType()
Specified by:
getType in interface Application

getDescription

public String getDescription()
Specified by:
getDescription in interface Application

getCredential

public com.atlassian.crowd.embedded.api.PasswordCredential getCredential()
Specified by:
getCredential in interface Application

isPermanent

public boolean isPermanent()
Specified by:
isPermanent in interface Application

isActive

public boolean isActive()
Specified by:
isActive in interface Application

getAttributes

public Map<String,String> getAttributes()
Specified by:
getAttributes in interface Application

getDirectoryMappings

public List<DirectoryMapping> getDirectoryMappings()
Specified by:
getDirectoryMappings in interface Application

getDirectoryMapping

public DirectoryMapping getDirectoryMapping(long directoryId)
Specified by:
getDirectoryMapping in interface Application

getRemoteAddresses

public Set<RemoteAddress> getRemoteAddresses()
Specified by:
getRemoteAddresses in interface Application

hasRemoteAddress

public boolean hasRemoteAddress(String remoteAddress)
Specified by:
hasRemoteAddress in interface Application

getWebhooks

public Set<Webhook> getWebhooks()
Specified by:
getWebhooks in interface Application

isLowerCaseOutput

public boolean isLowerCaseOutput()
Specified by:
isLowerCaseOutput in interface Application

isAliasingEnabled

public boolean isAliasingEnabled()
Specified by:
isAliasingEnabled in interface Application

getCreatedDate

public Date getCreatedDate()
Specified by:
getCreatedDate in interface Application

getUpdatedDate

public Date getUpdatedDate()
Specified by:
getUpdatedDate in interface Application

getValues

public Set<String> getValues(String key)
Specified by:
getValues in interface com.atlassian.crowd.embedded.api.Attributes

getValue

public String getValue(String key)
Specified by:
getValue in interface com.atlassian.crowd.embedded.api.Attributes

getKeys

public Set<String> getKeys()
Specified by:
getKeys in interface com.atlassian.crowd.embedded.api.Attributes

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface com.atlassian.crowd.embedded.api.Attributes

builder

public static ImmutableApplication.Builder builder(String name,
                                                   ApplicationType type)
Constructs a new builder for an ImmutableApplication.

Parameters:
name - name of the application
type - type of the application
Returns:
builder with the name and type initialised

builder

public static ImmutableApplication.Builder builder(Application application)
Constructs a new builder for an ImmutableApplication with the fields initialised to application.

Parameters:
application - application to duplicate
Returns:
builder with the fields initialised to application


Copyright © 2014 Atlassian. All Rights Reserved.