public class ApplicationImpl extends InternalEntity implements Application
active, createdDate, id, name, updatedDate| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationImpl() |
|
ApplicationImpl(InternalEntityTemplate template)
Used for importing via XML migration.
|
protected |
ApplicationImpl(String name,
long id,
ApplicationType type,
String description,
PasswordCredential credential,
boolean active,
Map<String,String> attributes,
List<DirectoryMapping> directoryMappings,
Set<RemoteAddress> remoteAddresses,
Set<Webhook> webhooks,
Date createdDate,
Date updatedDate) |
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCreatedDate, getId, getName, getUpdatedDate, isActiveprotected ApplicationImpl()
protected ApplicationImpl(String name, long id, ApplicationType type, String description, PasswordCredential credential, boolean active, Map<String,String> attributes, List<DirectoryMapping> directoryMappings, Set<RemoteAddress> remoteAddresses, Set<Webhook> webhooks, Date createdDate, Date updatedDate)
public ApplicationImpl(InternalEntityTemplate template)
template - directory template.public static ApplicationImpl newInstance(Application application)
public static ApplicationImpl newInstance(String name, ApplicationType type)
public static ApplicationImpl newInstanceWithIdAndCredential(String name, ApplicationType type, PasswordCredential credential, long id)
public static ApplicationImpl newInstanceWithCredential(String name, ApplicationType type, PasswordCredential credential)
public static ApplicationImpl newInstanceWithPassword(String name, ApplicationType type, String password)
public void updateDetailsFromApplication(Application application)
public void validate()
public void setName(String name)
setName in class InternalEntitypublic void setActive(boolean active)
setActive in class InternalEntitypublic String getLowerName()
public ApplicationType getType()
getType in interface Applicationpublic void setType(ApplicationType type)
public String getDescription()
getDescription in interface Applicationpublic void setDescription(String description)
public PasswordCredential getCredential()
getCredential in interface Applicationpublic void setCredential(PasswordCredential credential)
public boolean isPermanent()
isPermanent in interface Applicationpublic Map<String,String> getAttributes()
getAttributes in interface Applicationpublic void setAttributes(Map<String,String> attributes)
attributes must be a mutable Map.attributes - new attributespublic List<DirectoryMapping> getDirectoryMappings()
getDirectoryMappings in interface Applicationpublic void addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes)
public void addGroupMapping(long directoryId,
String groupName)
public DirectoryMapping getDirectoryMapping(long directoryId)
getDirectoryMapping in interface Applicationpublic boolean removeDirectoryMapping(long directoryId)
public Set<RemoteAddress> getRemoteAddresses()
getRemoteAddresses in interface Applicationpublic void addRemoteAddress(String remoteAddress)
public void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
public boolean hasRemoteAddress(String remoteAddress)
hasRemoteAddress in interface Applicationpublic boolean removeRemoteAddress(String remoteAddress)
public Set<Webhook> getWebhooks()
getWebhooks in interface Applicationpublic void setWebhooks(Set<Webhook> webhooks)
updateDetailsFromApplication(Application).webhooks - new Set of webhookspublic Set<String> getValues(String name)
getValues in interface Attributesname - attribute name.null
if the directory does not have the attribute.public String getValue(String name)
getValue in interface Attributespublic Set<String> getKeys()
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributespublic void removeAttribute(String name)
public boolean isLowerCaseOutput()
isLowerCaseOutput in interface Applicationpublic void setLowerCaseOutput(boolean value)
public void setAliasingEnabled(boolean aliasingEnabled)
public boolean isAliasingEnabled()
isAliasingEnabled in interface Applicationpublic boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled in interface Applicationpublic void setMembershipAggregationEnabled(boolean membershipAggregationEnabled)
public boolean equals(Object o)
equals in class InternalEntitypublic int hashCode()
hashCode in class InternalEntityCopyright © 2018 Atlassian. All rights reserved.