nl.surfnet.coin.janus.domain
Class EntityMetadata

java.lang.Object
  extended by nl.surfnet.coin.janus.domain.EntityMetadata
All Implemented Interfaces:
Serializable

public class EntityMetadata
extends Object
implements Serializable

Representation of an entity's metadata in Janus.

See Also:
Serialized Form

Constructor Summary
EntityMetadata()
           
 
Method Summary
 void addAppHomeUrl(String language, String value)
           
 void addDescription(String language, String value)
           
 void addName(String language, String value)
           
 void addUrl(String language, String value)
           
static EntityMetadata fromMetadataMap(Map<String,Object> metadata)
           
 String getAppDescription()
           
 String getAppEntityId()
           
 String getAppHomeUrl()
          Deprecated. use #getAppHomeUrls with the language code as key
 Map<String,String> getAppHomeUrls()
           
 String getAppIcon()
           
 String getApplicationUrl()
           
 String getAppLogoUrl()
           
 String getAppThumbNail()
           
 String getAppTitle()
           
 List<Contact> getContacts()
           
 String getDescription()
          Deprecated. use #setDescriptions with the language code as key
 Map<String,String> getDescriptions()
           
 String getEula()
           
 String getInstutionId()
           
 String getName()
          Deprecated. use #getNames with the language code as key
 Map<String,String> getNames()
           
 String getOauthCallbackUrl()
           
 String getOauthConsumerKey()
           
 String getOauthConsumerSecret()
           
 Map<String,String> getUrls()
           
 String getWorkflowState()
           
 boolean isConsentNotRequired()
           
 boolean isIdpVisibleOnly()
           
 boolean isTwoLeggedOauthAllowed()
           
 void setAppDescription(String appDescription)
           
 void setAppEntityId(String appEntityId)
           
 void setAppHomeUrl(String appHomeUrl)
          Deprecated. use #setAppHomeUrls with the language code as key
 void setAppHomeUrls(Map<String,String> appHomeUrls)
           
 void setAppIcon(String appIcon)
           
 void setApplicationUrl(String applicationUrl)
           
 void setAppLogoUrl(String appLogoUrl)
           
 void setAppThumbNail(String appThumbNail)
           
 void setAppTitle(String appTitle)
           
 void setConsentNotRequired(boolean consentNotRequired)
           
 void setDescription(String description)
          Deprecated. use #getDescriptions with the language code as key
 void setDescriptions(Map<String,String> descriptions)
           
 void setEula(String eula)
           
 void setIdpVisibleOnly(boolean idpVisibleOnly)
           
 void setInstutionId(String instutionId)
           
 void setName(String name)
          Deprecated. use #setNames with the language code as key
 void setNames(Map<String,String> names)
           
 void setOauthCallbackUrl(String oauthCallbackUrl)
           
 void setOauthConsumerKey(String oauthConsumerKey)
           
 void setOauthConsumerSecret(String oauthConsumerSecret)
           
 void setTwoLeggedOauthAllowed(boolean twoLeggedOauthAllowed)
           
 void setUrls(Map<String,String> urls)
           
 void setWorkflowState(String workflowState)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityMetadata

public EntityMetadata()
Method Detail

fromMetadataMap

public static EntityMetadata fromMetadataMap(Map<String,Object> metadata)

setAppTitle

public void setAppTitle(String appTitle)

setAppIcon

public void setAppIcon(String appIcon)

setAppDescription

public void setAppDescription(String appDescription)

setAppThumbNail

public void setAppThumbNail(String appThumbNail)

setAppEntityId

public void setAppEntityId(String appEntityId)

setOauthCallbackUrl

public void setOauthCallbackUrl(String oauthCallbackUrl)

setTwoLeggedOauthAllowed

public void setTwoLeggedOauthAllowed(boolean twoLeggedOauthAllowed)

setOauthConsumerKey

public void setOauthConsumerKey(String oauthConsumerKey)

toString

public String toString()
Overrides:
toString in class Object

getAppTitle

public String getAppTitle()

getAppIcon

public String getAppIcon()

getAppDescription

public String getAppDescription()

getAppThumbNail

public String getAppThumbNail()

getAppEntityId

public String getAppEntityId()

getOauthCallbackUrl

public String getOauthCallbackUrl()

isTwoLeggedOauthAllowed

public boolean isTwoLeggedOauthAllowed()

getOauthConsumerKey

public String getOauthConsumerKey()

setOauthConsumerSecret

public void setOauthConsumerSecret(String oauthConsumerSecret)

getOauthConsumerSecret

public String getOauthConsumerSecret()

getAppLogoUrl

public String getAppLogoUrl()

setAppLogoUrl

public void setAppLogoUrl(String appLogoUrl)

getAppHomeUrl

public String getAppHomeUrl()
Deprecated. use #getAppHomeUrls with the language code as key


setAppHomeUrl

public void setAppHomeUrl(String appHomeUrl)
Deprecated. use #setAppHomeUrls with the language code as key


getContacts

public List<Contact> getContacts()

isIdpVisibleOnly

public boolean isIdpVisibleOnly()

setIdpVisibleOnly

public void setIdpVisibleOnly(boolean idpVisibleOnly)

getEula

public String getEula()

setEula

public void setEula(String eula)

getName

public String getName()
Deprecated. use #getNames with the language code as key


setName

public void setName(String name)
Deprecated. use #setNames with the language code as key


getDescription

public String getDescription()
Deprecated. use #setDescriptions with the language code as key


setDescription

public void setDescription(String description)
Deprecated. use #getDescriptions with the language code as key


isConsentNotRequired

public boolean isConsentNotRequired()
Returns:
the consentNotRequired

setConsentNotRequired

public void setConsentNotRequired(boolean consentNotRequired)
Parameters:
consentNotRequired - the consentNotRequired to set

getWorkflowState

public String getWorkflowState()

setWorkflowState

public void setWorkflowState(String workflowState)

getNames

public Map<String,String> getNames()

setNames

public void setNames(Map<String,String> names)

addName

public void addName(String language,
                    String value)

getAppHomeUrls

public Map<String,String> getAppHomeUrls()

setAppHomeUrls

public void setAppHomeUrls(Map<String,String> appHomeUrls)

addAppHomeUrl

public void addAppHomeUrl(String language,
                          String value)

getDescriptions

public Map<String,String> getDescriptions()

setDescriptions

public void setDescriptions(Map<String,String> descriptions)

addDescription

public void addDescription(String language,
                           String value)

getUrls

public Map<String,String> getUrls()

setUrls

public void setUrls(Map<String,String> urls)

addUrl

public void addUrl(String language,
                   String value)

getInstutionId

public String getInstutionId()

setInstutionId

public void setInstutionId(String instutionId)

getApplicationUrl

public String getApplicationUrl()

setApplicationUrl

public void setApplicationUrl(String applicationUrl)


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.