com.mizar.faces.javax.utils
Class SdoThemesSuperClassFactory

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.faces.javax.utils.SdoThemesSuperClassFactory
All Implemented Interfaces:
JPAInterface, java.io.Serializable, java.lang.Comparable

public class SdoThemesSuperClassFactory
extends GenericBean

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
protected SdoThemesSuperClassFactory()
           
 
Method Summary
static boolean applicationMatches(java.util.Map<java.lang.String,java.lang.String> customTags)
          Called by MapOverlayTree and FeatureOfInterestTree
static java.util.List<SdoDimElement> getDiminfoElements(javax.persistence.EntityManager em, java.lang.String themeName)
           
static int getSrid(javax.persistence.EntityManager em, java.lang.String themeName)
           
static int getSrid(SdoThemesSuperClass theme)
           
static SdoThemesSuperClass getTheme(javax.persistence.EntityManager em, java.lang.String themeName)
           
static boolean userHasPermission(java.util.Map<java.lang.String,java.lang.String> customTags)
          Called by MapOverlayTree and FeatureOfInterestTree
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
compareTo, equals, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getPrimaryKeyValue, getREAD, hashCode, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SdoThemesSuperClassFactory

protected SdoThemesSuperClassFactory()
Method Detail

getTheme

public static SdoThemesSuperClass getTheme(javax.persistence.EntityManager em,
                                           java.lang.String themeName)

getSrid

public static int getSrid(javax.persistence.EntityManager em,
                          java.lang.String themeName)

getSrid

public static int getSrid(SdoThemesSuperClass theme)

getDiminfoElements

public static java.util.List<SdoDimElement> getDiminfoElements(javax.persistence.EntityManager em,
                                                               java.lang.String themeName)

applicationMatches

public static boolean applicationMatches(java.util.Map<java.lang.String,java.lang.String> customTags)
Called by MapOverlayTree and FeatureOfInterestTree

Parameters:
customTags - a Map of MapBuilder custom tags
Returns:
true if there is no application tag or if one of the applications on the tag matches the running application

userHasPermission

public static boolean userHasPermission(java.util.Map<java.lang.String,java.lang.String> customTags)
Called by MapOverlayTree and FeatureOfInterestTree

Parameters:
customTags - a Map of MapBuilder custom tags
Returns:
true if there is no permission tag or if the current user has the required permission
See Also:
SecurityFunction.userHasPermission(java.lang.String)