com.poscoict.glueframework.context
Class GluePortletContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.poscoict.glueframework.util.GlueHashMap<String,Object>
              extended by com.poscoict.glueframework.context.GlueDefaultContext
                  extended by com.poscoict.glueframework.context.GluePortletContext
All Implemented Interfaces:
GlueContext, GlueAuditAttributeHolder, Serializable, Cloneable, Map<String,Object>

public class GluePortletContext
extends GlueDefaultContext

GlueContext for Portlet. ¸ðµç Layer¿¡¼­ °øÅëÀ¸·Î Data ¸¦ ÀúÀåÇÏ°í Á¶È¸ ÇÏ´Â ClassÀÌ´Ù.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface com.poscoict.glueframework.context.GlueContext
GlueContext.ContentType, GlueContext.EventType, GlueContext.PortletContentType, GlueContext.WebContentType
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
GluePortletContext()
          »ý¼ºÀÚ(constructor).
 
Method Summary
 Object get(Object key)
          Key ÇØ´ç ÇÏ´Â °ªÀ» Á¶È¸ÇÔ.
 Object get(String key, GlueContext.ContentType type)
          RootMapÀÌ ¾Æ´Ñ ContentType¿¡ ÇØ´ç ÇÏ´Â Map¿¡¼­ ÇØ´ç keyÀÇ °ªÀ» ¾ò´Â´Ù.
<T> T
getAndTryToCast(String key, Class<T> valueClass, GlueContext.ContentType type)
           
 GlueHashMap<String,Object> getDataAsMap(GlueContext.ContentType type)
           
 GlueMultipartRequest getMultiPartRequest()
           
 Map<String,Object> getSessionAttr(GlueContext.PortletContentType type)
           
 Object put(String key, Object value, GlueContext.ContentType type)
          È®Àå´ë»ó..
 void putAll(Map<? extends String,? extends Object> map, GlueContext.ContentType type)
          È®Àå´ë»ó..
 void setMultiPartRequest(GlueMultipartRequest multipartRequest)
           
 String toString()
           
 
Methods inherited from class com.poscoict.glueframework.context.GlueDefaultContext
getAuditAttributes, getEventSourceType, getException, getMessage, getMessages, setAuditAttributes, setException, setMessage, setMessages
 
Methods inherited from class com.poscoict.glueframework.util.GlueHashMap
getAndTryToCast, newGlueHashMap
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.poscoict.glueframework.context.GlueContext
getAndTryToCast, put, putAll, remove
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

GluePortletContext

public GluePortletContext()
»ý¼ºÀÚ(constructor).

Method Detail

get

public Object get(Object key)
Key ÇØ´ç ÇÏ´Â °ªÀ» Á¶È¸ÇÔ.
 GluePortletContext ¿¡¼­ Key Ž»ö ¿ì¼± ¼øÀ§´Â ´ÙÀ½°ú °°´Ù.
 1. Root Map
 2. Request Attribute Map
 3. Private Request Parameter Map
 4. Public Request Parameter Map
 
 ¿ì¼±¼øÀ§¸¦ µû¸£Áö ¾Ê°Å³ª, ±× ¿ÜÀÇ Data¸¦ ¾ò±â À§Çؼ­´Â  get(String key, ContentType type) ¸¦ ÀÌ¿ëÇÑ´Ù.
  
 Root Map : ("deptno", "10")
 Request Attribute Map : ("deptno", "30")
 Private Request Parameter Map : ("deptno", "20")
 Public Request Parameter Map : ("deptno", "40")
 °ú °°ÀÌ GlueWebContext°¡ ±¸¼ºµÇ¾î ÀÖ´Ù¸é. 
 ctx.get("deptno") ÀÇ °ªÀº 10 ÀÌ µÈ´Ù.
 Request Attribute MapÀÇ °ªÀÎ 30À» ¾ò±â À§Çؼ­´Â 
 ctx.get("deptno", PortletContentType.PORTLET_REQUEST_ATTR) ¸¦ »ç¿ëÇÑ´Ù.
 
 

Specified by:
get in interface GlueContext
Specified by:
get in interface Map<String,Object>
Overrides:
get in class HashMap<String,Object>
Parameters:
key - GlueWebContextÀÇ Key
Returns:
data
See Also:
Map.get(java.lang.Object)

getDataAsMap

public GlueHashMap<String,Object> getDataAsMap(GlueContext.ContentType type)
Specified by:
getDataAsMap in interface GlueContext
Overrides:
getDataAsMap in class GlueDefaultContext

get

public Object get(String key,
                  GlueContext.ContentType type)
Description copied from interface: GlueContext
RootMapÀÌ ¾Æ´Ñ ContentType¿¡ ÇØ´ç ÇÏ´Â Map¿¡¼­ ÇØ´ç keyÀÇ °ªÀ» ¾ò´Â´Ù.

Specified by:
get in interface GlueContext
Overrides:
get in class GlueDefaultContext
Returns:
Object

getAndTryToCast

public <T> T getAndTryToCast(String key,
                             Class<T> valueClass,
                             GlueContext.ContentType type)
Specified by:
getAndTryToCast in interface GlueContext
Overrides:
getAndTryToCast in class GlueDefaultContext
Returns:

put

public Object put(String key,
                  Object value,
                  GlueContext.ContentType type)
Description copied from interface: GlueContext
È®Àå´ë»ó..

Specified by:
put in interface GlueContext
Overrides:
put in class GlueDefaultContext
Returns:
Object

putAll

public void putAll(Map<? extends String,? extends Object> map,
                   GlueContext.ContentType type)
Description copied from interface: GlueContext
È®Àå´ë»ó..

Specified by:
putAll in interface GlueContext
Overrides:
putAll in class GlueDefaultContext

setMultiPartRequest

public void setMultiPartRequest(GlueMultipartRequest multipartRequest)
Specified by:
setMultiPartRequest in interface GlueContext
Overrides:
setMultiPartRequest in class GlueDefaultContext

getMultiPartRequest

public GlueMultipartRequest getMultiPartRequest()
Specified by:
getMultiPartRequest in interface GlueContext
Overrides:
getMultiPartRequest in class GlueDefaultContext

getSessionAttr

public Map<String,Object> getSessionAttr(GlueContext.PortletContentType type)
Parameters:
type -
Returns:

toString

public String toString()
Overrides:
toString in class GlueDefaultContext


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.