is.idega.idegaweb.golf.startingtime.presentation
Class AdminRegisterTeeTime

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.idega.presentation.PresentationObject
              extended by com.idega.presentation.PresentationObjectContainer
                  extended by com.idega.presentation.Block
                      extended by is.idega.idegaweb.golf.presentation.GolfBlock
                          extended by is.idega.idegaweb.golf.startingtime.presentation.AdminRegisterTeeTime
All Implemented Interfaces:
com.idega.idegaweb.block.presentation.Builderaware, com.idega.presentation.PresentationObjectType, java.lang.Cloneable, javax.faces.component.StateHolder

public class AdminRegisterTeeTime
extends GolfBlock

Author:
laddi

Field Summary
 
Fields inherited from class is.idega.idegaweb.golf.presentation.GolfBlock
PARAMETER_MEMBER, PARAMETER_MEMBER_LOGIN, PRM_PARENT_PREFIX
 
Fields inherited from class com.idega.presentation.Block
IW_BLOCK_CACHE_KEY, usingNewAcessControlSystem
 
Fields inherited from class com.idega.presentation.PresentationObjectContainer
_label, _locked, allObjects
 
Fields inherited from class com.idega.presentation.PresentationObject
_listenerList, attributes, childrenList, CLICK, COMPOUNDID_CHILD_NUMBER_DELIMITER, COMPOUNDID_COMPONENT_DELIMITER, CORE_IW_BUNDLE_IDENTIFIER, eventLocationString, facetMap, hasBeenAdded, HEIGHT, HORIZONTAL_ALIGNMENT, initializedInMain, listenerList, NULL_CLONE_OBJECT, sessionEventStorageName, slash, TARGET_OBJ_INS, treeID, WIDTH
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface com.idega.idegaweb.block.presentation.Builderaware
IW_CORE_BUNDLE_IDENTIFIER
 
Constructor Summary
AdminRegisterTeeTime()
           
 
Method Summary
 void adminView(java.lang.String memberId, java.lang.String FieldID, com.idega.presentation.ui.Form myForm, com.idega.presentation.IWContext modinfo)
           
 int deletePlayers(java.lang.String MemberId, com.idega.presentation.IWContext modinfo)
           
 boolean drawTable(java.lang.String MemberId, java.lang.String FieldID, com.idega.presentation.ui.Form myForm, com.idega.presentation.IWContext modinfo)
           
 com.idega.presentation.ui.DropdownMenu FieldDropdown(java.lang.String dropdownName, java.lang.String MemberId, java.lang.String fieldId, com.idega.presentation.IWContext modinfo)
           
 java.lang.String formatDate(com.idega.util.IWCalendar funcDate, java.lang.String date)
           
 java.lang.String getTime(int group, GolfField myGolfField)
           
 com.idega.presentation.ui.TextInput insertEditBox(java.lang.String name, java.lang.String text)
           
 com.idega.presentation.ui.TextInput insertEditBox(java.lang.String name, java.lang.String text, int size)
           
 com.idega.presentation.ui.SelectionBox insertSelectionBox(java.lang.String SelectionBoxName, com.idega.presentation.IWContext modinfo, int height)
           
 com.idega.presentation.ui.DropdownMenu insertUnionDropdown(java.lang.String name, java.lang.String text, int size)
           
 boolean isAdmin(int memberId)
          temp implementation (isClubAdmin() and isClubWorker())
 boolean isAdmin(int memberId, boolean clubadmin, boolean clubworker)
           
 void main(com.idega.presentation.IWContext modinfo)
           
 void setErroResponse(com.idega.presentation.ui.Form myForm)
           
 void setGraphic(com.idega.presentation.ui.Form myForm)
           
 boolean updatePlayers(java.lang.String MemberId, com.idega.presentation.IWContext modinfo)
           
 
Methods inherited from class is.idega.idegaweb.golf.presentation.GolfBlock
_main, addHeading, freeConnection, getBundle, getBundleIdentifier, getConnection, getJQuery, getMember, getMember, getMember, getMember, getMemberHome, getMemberID, getParentReloadURL, getResourceBundle, getTournamentBusiness, getTournamentSession, getUnionID, getWeb2Business, getWeb2Business, hasParentToReloadURL, initParentReloadURL, isAdmin, isClubAdmin, isClubWorker, isDeveloper, isUser, isUser, localize, localize, maintainParentReloadURL, removeUnionIdSessionAttribute, setDefaultParentReloadURL
 
Methods inherited from class com.idega.presentation.Block
autoCreateGlobalHoverStyles, beginCacheing, clone, clonePermissionChecked, decode, deleteBlock, encodeBegin, encodeEnd, endCacheing, getCacheableObject, getCacheKey, getCachePrefixString, getCacheState, getComponentType, getDerivedCacheKey, getLocalizedName, getLocalizedNameKey, getLocalizedNameValue, getModuleName, getPermissionKeys, getPermissionKeys, getPermissionKeys, getStyleLink, getStyleLink, getStyleName, getStyleNames, getStyleObject, getStyleText, getStyleText, getTargetObjectInstance, getWidth, hasEditPermission, hasPermission, invalidateCache, invalidateCache, invalidateCache, isAdministrator, isCacheable, isCacheValid, isContainer, isDeveloper, isMemberOf, isTarget, print, printPreCachedContent, registerPermissionKey, registerPermissionKeys, resetGoneThroughMainInRestore, restoreState, saveState, setAsObjectInstanceTarget, setCacheable, setCacheable, setCacheable, setDefaultWidth, setStyle, setTargetObjectInstance, setToDebugParameters, setWidth
 
Methods inherited from class com.idega.presentation.PresentationObjectContainer
add, add, add, add, add, add, addAtBeginning, addBreak, addChild, addChild, addObject, addText, addText, addText, clearChildren, clone, cloneJSFChildren, cloneJSFFacets, encodeChildren, getChild, getChildren, getChildrenCount, getChildrenRecursive, getContainedLabeledObject, getContainedObject, getContainedObject, getIndex, getLabel, initVariables, insertAt, isEmpty, isLocked, lock, numberOfObjects, objectAt, remove, remove, removeAll, removeChild, resetAllContainedObjectsRecursive, set, setChildren, setLabel, setLocation, unlock
 
Methods inherited from class com.idega.presentation.PresentationObject
_print, addActionListener, addIWActionListener, addIWLinkListener, addIWSubmitListener, addMarkupAttributes, allowPagePermissionInheritance, callMain, callPrint, castToIWContext, changeInstanceIdForInheritedObject, changeState, cleanVariables, cloneJSFFacets, clonePermissionChecked, debug, debugEventListanerList, debugParameters, dispatchEvent, doPrint, empty, encodeSpecialRequestString, endEvent, equals, equals, fireEvent, flush, generateID, getAssociatedScript, getAttribute, getAttributeMap, getAttributes, getAttributesString, getBelongsToParent, getBuilderName, getBuilderService, getBundle, getChangeInstanceIDOnInheritance, getChildCount, getClassName, getComponentId, getCompoundId, getDebugLogLevel, getDefaultLogLevel, getDefaultState, getErrorLogLevel, getErrorMessage, getEventAttribute, getEventIWContext, getEventListener, getEventListenerList, getEventListenerList, getExpressionValue, getFacet, getFacets, getFacetsAndChildren, getFamily, getHeight, getHorizontalAlignment, getICFileSystem, getICInstance, getICObject, getICObject, getICObjectID, getICObjectID, getICObjectInstance, getICObjectInstance, getICObjectInstanceID, getICObjectInstanceID, getId, getID, getIWApplicationContext, getIWLinkListeners, getIWSubmitListeners, getIWUserContext, getLanguage, getLocalizedString, getLocalizedString, getLocation, getLogger, getMarkupAttribute, getMarkupAttributes, getMarkupAttributesString, getMarkupLanguage, getName, getParent, getParentForm, getParentObject, getParentObjectInstance, getParentObjectInstanceID, getParentPage, getParentPageID, getPrintWriter, getRendersChildren, getRequest, getResourceBundle, getResponse, getRootParent, getSetApplicationMarkupLanguage, getState, getStateInstance, getStyleAttribute, getStyleClass, getTemplateId, getTemplateObject, getTitle, getToolTip, getUseBuilderObjectControl, getUserProperties, getValueBindingByAttributeExp, getXmlId, goneThroughRenderPhase, initializeInMain, initInMain, isHeightSet, isMarkupAttributeSet, isRendered, isRestoredFromState, isWidthSet, isXhtmlSet, listenerAdded, listenerAdded, log, log, log, logConfig, logDebug, logError, logSevere, logWarning, mayGoThroughMain, prepareClone, print, println, processDecodes, processEvent, processIWLinkEvent, processIWSubmitEvent, processRestoreState, processSaveState, processUpdates, processValidators, removeActionListener, removeIWActionListener, removeMarkupAttribute, removeStyleAttribute, renderChild, renderComponent, resetBeforeMain, resetGoneThroughMain, restoreFromReflectionProperties, setArtificialCompoundId, setAsPrinted, setAssociatedScript, setBelongsToParent, setBuilderIds, setChangeInstanceIDOnInheritance, setDefaultState, setDoPrint, setErrorMessage, setEventAttribute, setGoneThroughMain, setHeight, setHeightStyle, setHorizontalAlignment, setICObject, setICObjectID, setICObjectInstance, setICObjectInstanceID, setID, setID, setId, setID, setLocation, setMarkupAttribute, setMarkupAttribute, setMarkupAttribute, setMarkupAttributeMultivalued, setMarkupAttributeMultivalued, setMarkupAttributeMultivalued, setMarkupAttributeMultivalued, setMarkupAttributes, setMarkupAttributeWithoutValue, setName, setParent, setParentObject, setProperty, setRenderedPhaseDone, setRenderedPhaseNotDone, setResetGoneThroughMainInRestore, setStyleAttribute, setStyleAttribute, setStyleClass, setSupportsMultipleMainCalls, setTemplateId, setTemplateId, setTitle, setToolTip, setToRenderForLoggedIn, setToRenderForLoggedOut, setUseBuilderObjectControl, setVisible, setWidthStyle, supportsMultipleMainCalls, xhtmlEncode
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, findComponent, getClientId, getFacesContext, getFacesListeners, getFacetCount, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isTransient, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminRegisterTeeTime

public AdminRegisterTeeTime()
Method Detail

main

public void main(com.idega.presentation.IWContext modinfo)
          throws java.lang.Exception
Specified by:
main in class GolfBlock
Throws:
java.lang.Exception

insertEditBox

public com.idega.presentation.ui.TextInput insertEditBox(java.lang.String name,
                                                         java.lang.String text)

insertEditBox

public com.idega.presentation.ui.TextInput insertEditBox(java.lang.String name,
                                                         java.lang.String text,
                                                         int size)

updatePlayers

public boolean updatePlayers(java.lang.String MemberId,
                             com.idega.presentation.IWContext modinfo)
                      throws java.sql.SQLException,
                             java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

deletePlayers

public int deletePlayers(java.lang.String MemberId,
                         com.idega.presentation.IWContext modinfo)
                  throws java.sql.SQLException,
                         java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

formatDate

public java.lang.String formatDate(com.idega.util.IWCalendar funcDate,
                                   java.lang.String date)

adminView

public void adminView(java.lang.String memberId,
                      java.lang.String FieldID,
                      com.idega.presentation.ui.Form myForm,
                      com.idega.presentation.IWContext modinfo)
               throws java.io.IOException
Throws:
java.io.IOException

getTime

public java.lang.String getTime(int group,
                                GolfField myGolfField)

setGraphic

public void setGraphic(com.idega.presentation.ui.Form myForm)

setErroResponse

public void setErroResponse(com.idega.presentation.ui.Form myForm)

drawTable

public boolean drawTable(java.lang.String MemberId,
                         java.lang.String FieldID,
                         com.idega.presentation.ui.Form myForm,
                         com.idega.presentation.IWContext modinfo)
                  throws java.io.IOException,
                         java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

isAdmin

public boolean isAdmin(int memberId)
                throws java.sql.SQLException
temp implementation (isClubAdmin() and isClubWorker())

Throws:
java.sql.SQLException

insertSelectionBox

public com.idega.presentation.ui.SelectionBox insertSelectionBox(java.lang.String SelectionBoxName,
                                                                 com.idega.presentation.IWContext modinfo,
                                                                 int height)
                                                          throws java.io.IOException,
                                                                 java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

FieldDropdown

public com.idega.presentation.ui.DropdownMenu FieldDropdown(java.lang.String dropdownName,
                                                            java.lang.String MemberId,
                                                            java.lang.String fieldId,
                                                            com.idega.presentation.IWContext modinfo)
                                                     throws java.io.IOException
Throws:
java.io.IOException

isAdmin

public boolean isAdmin(int memberId,
                       boolean clubadmin,
                       boolean clubworker)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

insertUnionDropdown

public com.idega.presentation.ui.DropdownMenu insertUnionDropdown(java.lang.String name,
                                                                  java.lang.String text,
                                                                  int size)
                                                           throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2000-2014 idega software. All Rights Reserved.