com.atlassian.jira.plugin.userformat.configuration
Interface UserFormatTypeConfiguration

All Known Implementing Classes:
PluginsAwareUserFormatTypeConfiguration, PropertySetBackedUserFormatTypeConfiguration

public interface UserFormatTypeConfiguration

Stores configuration entries for the available user format types.

A user format type is configured against the module key of a user format module descriptor that references the user format which will be used to render a user for that user format type.

Since:
v4.4
See Also:
UserFormatModuleDescriptor, *

Method Summary
 boolean containsType(String userFormatType)
          Whether there is a configuration entry stored for the specified type.
 String getUserFormatKeyForType(String userFormatType)
          Retrieves the module key of the user format descriptor configured to render the specified type.
 void remove(String userFormatType)
          Removes the configuration entry for the specified type if one exists.
 void setUserFormatKeyForType(String userFormatType, String moduleKey)
          Stores a configuration entry for the specified type agains a user format module descriptor key.
 

Method Detail

setUserFormatKeyForType

void setUserFormatKeyForType(String userFormatType,
                             String moduleKey)
Stores a configuration entry for the specified type agains a user format module descriptor key.

Parameters:
userFormatType - the user format type to configure.
moduleKey - The complete module key of the .

getUserFormatKeyForType

String getUserFormatKeyForType(String userFormatType)
Retrieves the module key of the user format descriptor configured to render the specified type.

Parameters:
userFormatType - The type to retrieve a module key for.
Returns:
the module key of the user format descriptor configured to render the specified type, or null if there is no module key configured for that type.

containsType

boolean containsType(String userFormatType)
Whether there is a configuration entry stored for the specified type.

Parameters:
userFormatType - The type find a confiuration entry for.
Returns:
true if there is configuration entry stored for the specified type; otherwise false.

remove

void remove(String userFormatType)
Removes the configuration entry for the specified type if one exists.

Parameters:
userFormatType - The type to remove from the configuration.


Copyright © 2002-2012 Atlassian. All Rights Reserved.