com.atlassian.crowd.model.application
Class Application
java.lang.Object
com.atlassian.crowd.integration.model.InternalEntity
com.atlassian.crowd.model.application.Application
- All Implemented Interfaces:
- AttributeAware, Serializable
public class Application
- extends InternalEntity
- implements AttributeAware
- See Also:
- Serialized Form
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
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.
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.