Class GroupDetails

java.lang.Object
sk.iway.iwcm.doc.GroupDetails
All Implemented Interfaces:
Cloneable, DocGroupInterface
Direct Known Subclasses:
GroupSchedulerDetails

public class GroupDetails extends Object implements Cloneable, DocGroupInterface
drzi zaznam z tabulky Groups
  • Field Details

  • Constructor Details

    • GroupDetails

      public GroupDetails()
    • GroupDetails

      public GroupDetails(String path)
      Konstruktor z cesty, napr. /Jet portal 4/Úvodná stránka Pouziva sa pri importe a inych operaciach kde dostaneme cestu k adresaru
      Parameters:
      path -
    • GroupDetails

      public GroupDetails(GroupDetails copyFrom)
      skopiruje do seba skupinu copyFrom
      Parameters:
      copyFrom -
  • Method Details

    • isAvailableForUser

      public boolean isAvailableForUser(Identity user)
    • isAvailableForUserGroup

      public boolean isAvailableForUserGroup(int userGroupId)
    • getGroupId

      public int getGroupId()
      Gets the groupId attribute of the GroupDetails object
      Returns:
      The groupId value
    • setGroupId

      public void setGroupId(int newGroupId)
      Sets the groupId attribute of the GroupDetails object
      Parameters:
      newGroupId - The new groupId value
    • setGroupId

      public void setGroupId(Long id)
      Nastavenie ID podla long hodnoty, potrebne pre DT/duplikovanie
      Parameters:
      id -
    • setGroupName

      public void setGroupName(String newGroupName)
      Sets the groupName attribute of the GroupDetails object
      Parameters:
      newGroupName - The new groupName value
    • getGroupName

      public String getGroupName()
      Gets the groupName attribute of the GroupDetails object
      Returns:
      The groupName value
    • getGroupNameShort

      public String getGroupNameShort()
      Gets the groupNameShort attribute of the GroupDetails object
      Returns:
      The groupNameShort value
    • getGroupNameShortNoJS

      public String getGroupNameShortNoJS()
    • getGroupNameJS

      public String getGroupNameJS()
    • getGroupIdName

      public String getGroupIdName()
      Vrati string s ID aj Menom grupy, prvych 15 znakov je ID, potom je meno
      Returns:
      The groupIdName value
    • setInternal

      public void setInternal(boolean newInternal)
      Sets the internal attribute of the GroupDetails object
      Parameters:
      newInternal - The new internal value
    • isInternal

      public boolean isInternal()
      Gets the internal attribute of the GroupDetails object
      Returns:
      The internal value
    • setParentGroupId

      public void setParentGroupId(int newParentGroupId)
      Sets the parentGroupId attribute of the GroupDetails object
      Parameters:
      newParentGroupId - The new parentGroupId value
    • getParentGroupId

      public int getParentGroupId()
      Gets the parentGroupId attribute of the GroupDetails object
      Returns:
      The parentGroupId value
    • setNavbar

      public void setNavbar(String navbar)
      Sets the navbar attribute of the GroupDetails object
      Parameters:
      navbar - The new navbar value
    • getNavbar

      public String getNavbar()
      Gets the navbar attribute of the GroupDetails object
      Returns:
      The navbar value
    • getNavbarName

      public String getNavbarName()
      Gets the navbarName attribute of the GroupDetails object
      Returns:
      The navbarName value
    • setNavbarName

      public void setNavbarName(String navbarName)
    • getNavbarNameNoAparam

      public String getNavbarNameNoAparam()
      Vrati navbarName bez APARAM atributu (al je zadane)
      Returns:
    • setDefaultDocId

      public void setDefaultDocId(int newDefaultDocId)
      Sets the defaultDocId attribute of the GroupDetails object
      Parameters:
      newDefaultDocId - The new defaultDocId value
    • setDefaultDocIdNoNavbar

      public void setDefaultDocIdNoNavbar(int defaultDocId)
      Toto potrebujem na skonstruovanie DocDB (aby sa mi nevolala rekurzivne getInstance())
      Parameters:
      defaultDocId -
    • getDefaultDocId

      public int getDefaultDocId()
      Gets the defaultDocId attribute of the GroupDetails object
      Returns:
      The defaultDocId value
    • getDefaultDoc

      public DocDetails getDefaultDoc()
      Vrati objekt hlavna stranka adresara
      Returns:
    • getVirtualPath

      public String getVirtualPath()
      Vrati virtualnu cestu defaultnej stranky adresara
      Returns:
    • setTempId

      public void setTempId(int newTempId)
      Sets the tempId attribute of the GroupDetails object
      Parameters:
      newTempId - The new tempId value
    • getTempId

      public int getTempId()
      Gets the tempId attribute of the GroupDetails object
      Returns:
      The tempId value
    • setFullPath

      public void setFullPath(String fullPath)
      Cela cesta ku grupe, napr. /iwcm/produkty/hlasove
      Parameters:
      fullPath - The new fullPath value
    • getFullPath

      public String getFullPath()
      Gets the fullPath attribute of the GroupDetails object
      Returns:
      The fullPath value
    • getParentFullPath

      public String getParentFullPath()
    • setSortPriority

      public void setSortPriority(int sortPriority)
      Sets the sortPriority attribute of the GroupDetails object
      Parameters:
      sortPriority - The new sortPriority value
    • getSortPriority

      public int getSortPriority()
      Gets the sortPriority attribute of the GroupDetails object
      Returns:
      The sortPriority value
    • setPasswordProtected

      public void setPasswordProtected(String passwordProtected)
      Sets the passwordProtected attribute of the GroupDetails object
      Parameters:
      passwordProtected - The new passwordProtected value
    • addToUserGroup

      public void addToUserGroup(int userGroupId)
      Prida adresar do zadanej skupiny pouzivatelov (s overenim, ci tam uz nie je)
      Parameters:
      userGroupId -
    • getPasswordProtected

      public String getPasswordProtected()
      Gets the passwordProtected attribute of the GroupDetails object
      Returns:
      The passwordProtected value
    • getUrlDirName

      public String getUrlDirName()
    • setUrlDirName

      public void setUrlDirName(String urlDirName)
    • getSyncId

      public int getSyncId()
      Returns:
      Returns the syncId.
    • setSyncId

      public void setSyncId(int syncId)
      Parameters:
      syncId - The syncId to set.
    • getSyncStatus

      public int getSyncStatus()
      Returns:
      Returns the syncStatus.
    • setSyncStatus

      public void setSyncStatus(int syncStatus)
      Parameters:
      syncStatus - The syncStatus to set.
    • getHtmlHead

      public String getHtmlHead()
      Returns:
      Returns the htmlHead.
    • setHtmlHead

      public void setHtmlHead(String htmlHead)
      Parameters:
      htmlHead - The htmlHead to set.
    • getLogonPageDocId

      public int getLogonPageDocId()
      Returns:
      Returns the logonPageDocId.
    • setLogonPageDocId

      public void setLogonPageDocId(int logonPageDocId)
      Parameters:
      logonPageDocId - The logonPageDocId to set.
    • getDomainName

      public String getDomainName()
    • setDomainName

      public void setDomainName(String domainName)
    • getFieldA

      public String getFieldA()
    • setFieldA

      public void setFieldA(String fieldA)
    • getFieldB

      public String getFieldB()
    • setFieldB

      public void setFieldB(String fieldB)
    • getFieldC

      public String getFieldC()
    • setFieldC

      public void setFieldC(String fieldC)
    • getFieldD

      public String getFieldD()
    • setFieldD

      public void setFieldD(String fieldD)
    • getInstallName

      public String getInstallName()
    • setInstallName

      public void setInstallName(String installName)
    • getNewPageDocIdTemplate

      public int getNewPageDocIdTemplate()
    • setNewPageDocIdTemplate

      public void setNewPageDocIdTemplate(int newPageDocIdTemplate)
    • getLinkGroupId

      public int getLinkGroupId()
    • setLinkGroupId

      public void setLinkGroupId(int linkGroupId)
    • getLng

      public String getLng()
    • setLng

      public void setLng(String lng)
    • isHiddenInAdmin

      public boolean isHiddenInAdmin()
    • setHiddenInAdmin

      public void setHiddenInAdmin(boolean hiddenInAdmin)
    • getDocuments

      public List<DocDetails> getDocuments()
    • getById

      public static GroupDetails getById(int id)
    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isForceTheUseOfGroupTemplate

      public boolean isForceTheUseOfGroupTemplate()
    • setForceTheUseOfGroupTemplate

      public void setForceTheUseOfGroupTemplate(boolean forceTheUseOfGroupTemplate)
    • getEditorFields

      public GroupEditorField getEditorFields()
    • setEditorFields

      public void setEditorFields(GroupEditorField editorFields)
    • getMenuType

      public int getMenuType()
    • setMenuType

      public void setMenuType(int menuType)
    • getShowInNavbar

      public Integer getShowInNavbar()
    • setShowInNavbar

      public void setShowInNavbar(Integer showInNavbar)
    • getShowInSitemap

      public Integer getShowInSitemap()
    • setShowInSitemap

      public void setShowInSitemap(Integer showInSitemap)
    • getLoggedMenuType

      public int getLoggedMenuType()
    • setLoggedMenuType

      public void setLoggedMenuType(int loggedMenuType)
    • getLoggedShowInNavbar

      public Integer getLoggedShowInNavbar()
    • setLoggedShowInNavbar

      public void setLoggedShowInNavbar(Integer loggedShowInNavbar)
    • getLoggedShowInSitemap

      public Integer getLoggedShowInSitemap()
    • setLoggedShowInSitemap

      public void setLoggedShowInSitemap(Integer loggedShowInSitemap)
    • getMenuType

      public int getMenuType(javax.servlet.http.HttpSession session)
      Vrati sposob zobrazenia (GroupDetails.MENU_TYPE_XXX) v navigacnom menu (automaticky detekuje, ci je prihlaseny pouzivatel, alebo nie)
      Parameters:
      session -
      Returns:
    • getShowInNavbar

      public int getShowInNavbar(javax.servlet.http.HttpSession session)
      Vrati sposob zobrazenia (GroupDetails.MENU_TYPE_XXX) navigacnej listy (automaticky detekuje, ci je prihlaseny pouzivatel, alebo nie)
      Parameters:
      session -
      Returns:
    • getShowInSitemap

      public int getShowInSitemap(javax.servlet.http.HttpServletRequest request)
      Vrati sposob zobrazenia (GroupDetails.MENU_TYPE_XXX) v mape stranok (automaticky detekuje, ci je prihlaseny pouzivatel, alebo nie)
      Parameters:
      request -
      Returns:
    • getShowInSitemap

      public int getShowInSitemap(javax.servlet.http.HttpSession session)
      Vrati sposob zobrazenia (GroupDetails.MENU_TYPE_XXX) v mape stranok (automaticky detekuje, ci je prihlaseny pouzivatel, alebo nie)
      Parameters:
      session -
      Returns: