com.atlassian.crowd.model.application
Class Application

java.lang.Object
  extended by com.atlassian.crowd.integration.model.InternalEntity
      extended by com.atlassian.crowd.model.application.Application
All Implemented Interfaces:
AttributeAware, Serializable

public class Application
extends InternalEntity
implements AttributeAware

See Also:
Serialized Form

Field Summary
static String ATTRIBUTE_KEY_APPLICATION_URL
           
static String ATTRIBUTE_KEY_ATLASSIAN_SHA1_APPLIED
           
 
Fields inherited from class com.atlassian.crowd.integration.model.InternalEntity
active, createdDate, id, name, updatedDate
 
Constructor Summary
protected Application()
           
  Application(InternalEntityTemplate template)
          Used for importing via XML migration.
  Application(String name, ApplicationType type, PasswordCredential credential)
           
  Application(String name, ApplicationType type, String credential)
           
 
Method Summary
 DirectoryMapping addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes)
           
 void addRemoteAddress(String remoteAddress)
           
 boolean equals(Object o)
           
 String getAttribute(String name)
           
 Set<String> getAttributeNames()
           
 Map<String,String> getAttributes()
           
 List<String> getAttributes(String name)
           
 PasswordCredential getCredential()
           
 String getDescription()
           
 DirectoryMapping getDirectoryMapping(long directoryId)
           
 List<DirectoryMapping> getDirectoryMappings()
           
 String getLowerName()
           
 Set<RemoteAddress> getRemoteAddresses()
           
 ApplicationType getType()
           
 boolean hasAttribute(String name)
           
 int hashCode()
           
 boolean hasRemoteAddress(String remoteAddress)
           
 boolean isAliasingEnabled()
           
 boolean isLowerCaseOutput()
           
 boolean isPermanent()
           
 void removeAttribute(String name)
           
 boolean removeDirectoryMapping(long directoryId)
           
 boolean removeRemoteAddress(String remoteAddress)
           
 void setActive(boolean active)
           
 void setAliasingEnabled(boolean aliasingEnabled)
           
 void setAttribute(String name, String value)
           
 void setAttributes(Map<String,String> attributes)
           
 void setCredential(PasswordCredential credential)
           
 void setDescription(String description)
           
 void setDirectoryMappings(List<DirectoryMapping> directoryMappings)
           
 void setLowerCaseOutput(boolean value)
           
 void setName(String name)
           
 void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
           
 void setType(ApplicationType type)
           
 String toString()
           
 void validate()
           
 
Methods inherited from class com.atlassian.crowd.integration.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTRIBUTE_KEY_ATLASSIAN_SHA1_APPLIED

public static final String ATTRIBUTE_KEY_ATLASSIAN_SHA1_APPLIED
See Also:
Constant Field Values

ATTRIBUTE_KEY_APPLICATION_URL

public static final String ATTRIBUTE_KEY_APPLICATION_URL
See Also:
Constant Field Values
Constructor Detail

Application

protected Application()

Application

public Application(String name,
                   ApplicationType type,
                   PasswordCredential credential)

Application

public Application(String name,
                   ApplicationType type,
                   String credential)

Application

public Application(InternalEntityTemplate template)
Used for importing via XML migration.

Parameters:
template - directory template.
Method Detail

validate

public void validate()

setName

public void setName(String name)
Overrides:
setName in class InternalEntity

setActive

public void setActive(boolean active)
Overrides:
setActive in class InternalEntity

getLowerName

public String getLowerName()

getType

public ApplicationType getType()

setType

public void setType(ApplicationType type)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getCredential

public PasswordCredential getCredential()

setCredential

public void setCredential(PasswordCredential credential)

isPermanent

public boolean isPermanent()

getAttributes

public Map<String,String> getAttributes()

setAttributes

public void setAttributes(Map<String,String> attributes)

getDirectoryMappings

public List<DirectoryMapping> getDirectoryMappings()

addDirectoryMapping

public DirectoryMapping addDirectoryMapping(Directory directory,
                                            boolean allowAllToAuthenticate,
                                            OperationType... operationTypes)

getDirectoryMapping

public DirectoryMapping getDirectoryMapping(long directoryId)

removeDirectoryMapping

public boolean removeDirectoryMapping(long directoryId)

setDirectoryMappings

public void setDirectoryMappings(List<DirectoryMapping> directoryMappings)

getRemoteAddresses

public Set<RemoteAddress> getRemoteAddresses()

addRemoteAddress

public void addRemoteAddress(String remoteAddress)

setRemoteAddresses

public void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)

hasRemoteAddress

public boolean hasRemoteAddress(String remoteAddress)

removeRemoteAddress

public boolean removeRemoteAddress(String remoteAddress)

getAttributes

public List<String> getAttributes(String name)
Specified by:
getAttributes in interface AttributeAware
Parameters:
name - attribute name.
Returns:
a collection of the only attribtue value or null if the directory does not have the attribute.

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface AttributeAware
Parameters:
name - attribute name.
Returns:
single attribute value or null if the attribute with the given name does not exist. If multiple attribute values exist, any one could be returned.

getAttributeNames

public Set<String> getAttributeNames()
Specified by:
getAttributeNames in interface AttributeAware
Returns:
set of attribute names.

hasAttribute

public boolean hasAttribute(String name)
Specified by:
hasAttribute in interface AttributeAware
Parameters:
name - attribute name.
Returns:
true if an only if the user has an attribute with the supplied name and has one or more values.

setAttribute

public void setAttribute(String name,
                         String value)

removeAttribute

public void removeAttribute(String name)

isLowerCaseOutput

public boolean isLowerCaseOutput()

setLowerCaseOutput

public void setLowerCaseOutput(boolean value)

setAliasingEnabled

public void setAliasingEnabled(boolean aliasingEnabled)

isAliasingEnabled

public boolean isAliasingEnabled()

equals

public boolean equals(Object o)
Specified by:
equals in class InternalEntity

hashCode

public int hashCode()
Specified by:
hashCode in class InternalEntity

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.