Package com.easydesk.om
Class MITList
java.lang.Object
com.easydesk.om.BaseMITList
com.easydesk.om.MITList
- All Implemented Interfaces:
Cacheable,LocalizableOM,Serializable,Iterable<MITListItem>,ColumnAccessByName,ObjectModel,Persistent
The skeleton for this class was autogenerated by Torque on: [Sun Nov 14
20:29:22 KST 2021] You should add additional
methods to this class to meet the application requirements. This class will
only be generated as long as it does not
already exist in the output directory.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.easydesk.om.BaseMITList
collListPermissions, collLocalizedListInfos, collMITListItems, collModuleUserAttributes, collQuerys, collQueryValues, collReports -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMITList 를 추가한다.voidaddMITListItem(MITListItem item) Method called to associate a MITListItem object to this object through the collMITListItems foreign key attribute.booleanaddToCriteria(Criteria crit) voidclear()clear this Serializable instance cachebooleancontains(MITListItem item) 동일한 item 을 같고 있는지 확인한다.Not Active 를 포함한 모든 속성을 구한다.getAssociatedItemTypes(Attribute attribute) 이 object 안에서 attribute 를 같고 있는 itemType 을 구한다.getAssociatedModuleAttributes(Attribute attribute) 각 mitListItem 에 대응하는 ModuleAttribute 를 구한다.getAttributes(boolean activeOnly, boolean commonOnly) Get the list of all attributes in this MITList.공통 속성을 구한다.getCommonAttributes(boolean activeOnly) DOCUMENT ME!getCommonLeafModuleOptions(Attribute attribute) DOCUMENT ME!getCommonModuleOptionTree(Attribute attribute) DOCUMENT ME!getCommonModuleUserAttributes(Module module) List 보기에서 사용되는 moduleUserAttribute list 를 구한다.DOCUMENT ME!DOCUMENT ME!DOCUMENT ME!getCommonUserAttributes(boolean activeOnly) gets a list of all of the User Attributes common to all modules in the list.same as super.getEasyDeskUserImpl() ; creator 가 필요할 경우 처리getDescendantsUnion(AttributeOption option) DOCUMENT ME!MITList 의 DisplayName 을 구한다.object 에 local EasyDeskUser 가 존재하면 local jettiger User 를 구한다.Search 를 위한 MITListItem 들을 구한다.getExpandedMITListItems(Permission... permissions) Search 를 위하여 모든 MITListItem 을 풀어서 구한다. all module 의 경우 item 의 수가 너무 많아 진다...첫번째 MITListItem 을 구한다.이 Object 이 속하여 있는 것이 아니라 현재 처리하고자 하는 Module 임으로 이름이 적절하지 못하다.protected ItemTypegetItemType(MITListItem item) DOCUMENT ME!getLocalized(Locale locale) locale 에 해당하는 localized 정보를 구한다.이 Object 이 속하여 있는 것이 아니라 현재 처리하고자 하는 Module 임으로 이름이 적절하지 못하다.protected ModulegetModule(MITListItem item) MITList 가 설정하고 있는 모든 ModuleId 들을 구한다.org.apache.lucene.util.BitSetMITList 가 설정하고 있는 모든 ModuleId 들을 구한다.MITList 가 설정하고 있는 모든 Module 들을 구한다.getNewModuleUserAttribute(Module module, Attribute attribute) Attribute 에 대한 ModuleUserAttribute 를 만든다.MitListItem 의 구성중에 ParentId 가 설정되어 있는것을 구한다.검색 권한을 구한다.Creates a new MITList containing only itemType from this list forgetPermittedBitMatrix(EasyDeskUser user, Permission... permissions) getPermittedSublistgetPermittedSublist(ItemType type) Creates a new MITList containing only itemType from this list forgetPermittedSublist(EasyDeskUser user, Permission... permissions) Creates a new MITList containing only those items from this list for which the searcher has at least one of the permission.getPermittedSublist(EasyDeskUser user, List<Permission> permissions) Creates a new MITList containing only those items from this list for which the searcher has at least one of the permission.getPotentialAssignees(boolean includeCommitters) potential assignee must have at least one of the permissions for the user attributes in all the modules.protected LonggetQueryId(Module module) DOCUMENT ME!protected LonggetReportHeadId(Module module) DOCUMENT ME!getSavedRMUAs(Module module) db 에 저장되어 있는 List Order 를 위한 MUA 를 구한다.protected List<ModuleUserAttribute> getSavedRMUAs(EasyDeskUser user, Module module) db 에 저장되어 있는 MUA 를 구한다.gets a list of permissions associated with the User Attributes that are active for this Module.booleanFeatureDetection 이다.booleanMitListItem 의 구성중에 ParentId 가 설정되어 있는것이 있는지 여부를 확인한다.boolean저장되어 있는데 Name 이 설정되지 않은 것booleanDOCUMENT ME!booleanisCommon(AttributeOption option) DOCUMENT ME!booleanisCommon(AttributeOption option, boolean activeOnly) Checks all items after the first to see if they contain the attribute.booleanChecks all items to see if they contain the attribute.booleanisEmpty()tests if the list is emptybooleanDOCUMENT ME!booleanDOCUMENT ME!booleanDOCUMENT ME!iterator()모든 가능한 MITListItem 의 iterator 를 구한다.mirrorCopy(Module fromModule, Module toModule, EasyDeskUser user) Query/Report 의 이동 복사에 사용된다. mitListItem 의 대상 Module 도 같이 변경된다.mirrorCopy(Module fromModule, Module toModule, EasyDeskUser user, boolean change) Query/Report 의 이동 복사에 사용된다. mitListItem 의 대상 Module 도 같이 변경되는 것을 설정할 수 있다.voidsave()Stores the object in the database.voiditemList 를 db 에서 제거한다.voidDeclares an association between this object and a EasyDeskUser object 지금 MITList 를 이용하고 있는 사용자 ...intsize()MITListItem 을 기본 단위로 펼쳤을때의 갯수for key array when report createfor cache keytoString()DOCUMENT ME!Methods inherited from class com.easydesk.om.BaseMITList
addListPermission, addListPermission, addLocalizedListInfo, addLocalizedListInfo, addMITListItem, addModuleUserAttribute, addModuleUserAttribute, addQuery, addQuery, addQueryValue, addQueryValue, addReport, addReport, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getByName, getByPeerName, getByPosition, getEasyDeskUserImpl, getEasyDeskUserImpl, getFieldNames, getForeignKeyForEasyDeskUserImpl, getListId, getListPermissions, getListPermissions, getListPermissions, getListPermissions, getLocalizedListInfos, getLocalizedListInfos, getLocalizedListInfos, getLocalizedListInfos, getLocalizedListInfosJoinAttributeOption, getLocalizedListInfosJoinAttributeOption, getLocalizedListInfosJoinEasyDeskModule, getLocalizedListInfosJoinEasyDeskModule, getMITListItems, getMITListItems, getMITListItems, getMITListItems, getMITListItemsJoinEasyDeskModuleRelatedByModuleId, getMITListItemsJoinEasyDeskModuleRelatedByModuleId, getMITListItemsJoinEasyDeskModuleRelatedByParentId, getMITListItemsJoinEasyDeskModuleRelatedByParentId, getMITListItemsJoinItemType, getMITListItemsJoinItemType, getModuleUserAttributes, getModuleUserAttributes, getModuleUserAttributes, getModuleUserAttributes, getModuleUserAttributesJoinAttribute, getModuleUserAttributesJoinAttribute, getModuleUserAttributesJoinEasyDeskModule, getModuleUserAttributesJoinEasyDeskModule, getModuleUserAttributesJoinEasyDeskUserImpl, getModuleUserAttributesJoinEasyDeskUserImpl, getName, getPeer, getPrimaryKey, getQuerys, getQuerys, getQuerys, getQuerys, getQuerysJoinEasyDeskModule, getQuerysJoinEasyDeskModule, getQuerysJoinEasyDeskUserImpl, getQuerysJoinEasyDeskUserImpl, getQuerysJoinScope, getQuerysJoinScope, getQuerysJoinTimeScope, getQuerysJoinTimeScope, getQueryValues, getQueryValues, getQueryValues, getQueryValues, getQueryValuesJoinAttribute, getQueryValuesJoinAttribute, getQueryValuesJoinAttributeOption, getQueryValuesJoinAttributeOption, getQueryValuesJoinEasyDeskModule, getQueryValuesJoinEasyDeskModule, getReports, getReports, getReports, getReports, getReportsJoinEasyDeskModule, getReportsJoinEasyDeskModule, getReportsJoinEasyDeskUserImpl, getReportsJoinEasyDeskUserImpl, getReportsJoinScope, getReportsJoinScope, getTableMap, getUserId, hashCode, initListPermissions, initLocalizedListInfos, initMITListItems, initModuleUserAttributes, initQuerys, initQueryValues, initReports, isActive, isCacheOnSave, isDeleted, isListPermissionsInitialized, isLoading, isLocalizedListInfosInitialized, isMITListItemsInitialized, isModifiable, isModified, isModuleUserAttributesInitialized, isNew, isQuerysInitialized, isQueryValuesInitialized, isReportsInitialized, isSaving, resetListPermission, resetLocalizedListInfo, resetMITListItem, resetModified, resetModuleUserAttribute, resetQuery, resetQueryValue, resetReport, save, save, setActive, setByName, setByPeerName, setByPosition, setDeleted, setEasyDeskUserImplKey, setListId, setLoading, setModifiable, setModified, setName, setNew, setPrimaryKey, setPrimaryKey, setSaving, setUserId, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MITList
public MITList()새로운MITList인스턴스를 생성한다.
-
-
Method Details
-
save
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.- Specified by:
savein interfacePersistent- Overrides:
savein classBaseMITList- Throws:
Exception- 저장 중 오류가 발생한 경우
-
size
public int size()MITListItem 을 기본 단위로 펼쳤을때의 갯수 -
isEmpty
public boolean isEmpty()tests if the list is empty- Returns:
- true if the list is empty, otherwise false
-
iterator
모든 가능한 MITListItem 의 iterator 를 구한다.- Specified by:
iteratorin interfaceIterable<MITListItem>- Returns:
- Iterator
-
contains
동일한 item 을 같고 있는지 확인한다. 동일한 ModuleItemType 을 지시하면 포함하는것으로 간주한다.- Parameters:
item-
-
isAnonymous
public boolean isAnonymous()저장되어 있는데 Name 이 설정되지 않은 것- Returns:
- true/false
-
hasParentCondition
MitListItem 의 구성중에 ParentId 가 설정되어 있는것이 있는지 여부를 확인한다.- Returns:
- true/false
- Throws:
TorqueException
-
getParentId
MitListItem 의 구성중에 ParentId 가 설정되어 있는것을 구한다.- Returns:
- parentId
- Throws:
TorqueException
-
setEasyDeskUserImpl
Declares an association between this object and a EasyDeskUser object 지금 MITList 를 이용하고 있는 사용자 ...- Overrides:
setEasyDeskUserImplin classBaseMITList- Parameters:
v- current user which used this mitList class
-
getEasyDeskUser
object 에 local EasyDeskUser 가 존재하면 local jettiger User 를 구한다. local EasyDeskUser 가 존재하지 않으면 database 에 등록되어 있는 EasyDeskUser 를 구한다.사용상 주의는 MITListItem 의 정의에 currentModule, currentItemType 을 설정할 수 있기 때문에 이 object 을 사용할 때는 사용자가 항상 먼저 설정이 되어 있어야 한다.
- Returns:
- EasyDeskUser
- Throws:
TorqueException
-
getCreator
same as super.getEasyDeskUserImpl() ; creator 가 필요할 경우 처리- Throws:
TorqueException
-
getPermittedSublist
public MITList getPermittedSublist(EasyDeskUser user, List<Permission> permissions) throws TorqueException Creates a new MITList containing only those items from this list for which the searcher has at least one of the permission.- Parameters:
user- aEasyDeskUservaluepermissions- aListvalue- Returns:
- a
MITListvalue - Throws:
TorqueException
-
getPermittedSublist
public MITList getPermittedSublist(EasyDeskUser user, Permission... permissions) throws TorqueException Creates a new MITList containing only those items from this list for which the searcher has at least one of the permission.- Parameters:
user- aEasyDeskUservalue*permissions- aString[]value- Returns:
- a
MITListvalue - Throws:
TorqueException
-
getPermittedBitMatrix
public BitMatrix getPermittedBitMatrix(EasyDeskUser user, Permission... permissions) throws TorqueException getPermittedSublist- Parameters:
user- aEasyDeskUservaluepermissions- aString[]value- Returns:
- a
MITListvalue - Throws:
TorqueException
-
getPermittedSublist
Creates a new MITList containing only itemType from this list for- Parameters:
type- aItemTypevalue- Returns:
- a
MITListvalue - Throws:
TorqueException
-
getPermittedBitMatrix
Creates a new MITList containing only itemType from this list for- Parameters:
type- aItemTypevalue- Returns:
- a
MITListvalue - Throws:
TorqueException
-
getFirstItem
첫번째 MITListItem 을 구한다.- Returns:
- first MITListItem
-
isSingleModuleItemType
public boolean isSingleModuleItemType()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isSingleModule
public boolean isSingleModule()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isSingleItemType
public boolean isSingleItemType()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getModule
이 Object 이 속하여 있는 것이 아니라 현재 처리하고자 하는 Module 임으로 이름이 적절하지 못하다. Artifactizable 과 구분하여야 한다.- Throws:
TorqueException
-
getItemType
이 Object 이 속하여 있는 것이 아니라 현재 처리하고자 하는 Module 임으로 이름이 적절하지 못하다. Artifactizable 과 구분하여야 한다.- Throws:
TorqueException
-
getModule
- Throws:
TorqueException
-
getItemType
- Throws:
TorqueException
-
getAssociatedItemTypes
이 object 안에서 attribute 를 같고 있는 itemType 을 구한다.- Parameters:
attribute-- Returns:
- itemType list
- Throws:
TorqueException
-
has
FeatureDetection 이다. ModuleAttribute 를 가지고 있는지- Parameters:
attribute-- Returns:
- true/false which has ModuleAttribute ( FeatureDetection )
- Throws:
TorqueException
-
getAttributes
Get the list of all attributes in this MITList. If activeOnly is set to true, return only active attrivutes. If commonOnly is true,return only attributes, which are common in all MITListItems in this list.- Parameters:
activeOnly-commonOnly-- Returns:
- Attribute list
- Throws:
TorqueException
-
getAllAttributes
Not Active 를 포함한 모든 속성을 구한다.- Returns:
- all attributes list including not active attribute
- Throws:
TorqueException
-
getCommonAttributes
공통 속성을 구한다.- Returns:
- common attributes list including not active attribute
- Throws:
TorqueException
-
getCommonAttributes
DOCUMENT ME!- Parameters:
activeOnly- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
isCommon
Checks all items to see if they contain the attribute.- Parameters:
attribute- anAttributevalue- Returns:
- a
booleanvalue - Throws:
TorqueException
-
isCommon
DOCUMENT ME!- Parameters:
attribute- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getCommonNonUserAttributes
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getCommonOptionAttributes
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getCommonUserAttributes
gets a list of all of the User Attributes common to all modules in the list.- Parameters:
activeOnly-- Throws:
TorqueException
-
getCommonUserAttributes
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getPotentialAssignees
potential assignee must have at least one of the permissions for the user attributes in all the modules.- Throws:
Exception
-
getUserAttributePermissions
gets a list of permissions associated with the User Attributes that are active for this Module.- Throws:
TorqueException
-
getCommonModuleUserAttributes
List 보기에서 사용되는 moduleUserAttribute list 를 구한다.- Parameters:
module- 이 MITList 를 사용하고 있는 Query, Report 가 속하여 있는 모듈 null 이나 new 를 허용하지 않는다.- Returns:
- moduleUserAttribute list
- Throws:
Exception
-
getNewModuleUserAttribute
public ModuleUserAttribute getNewModuleUserAttribute(Module module, Attribute attribute) throws TorqueException Attribute 에 대한 ModuleUserAttribute 를 만든다.- Parameters:
module- MITList 를 사용하고 있는 Query , Report 가 속하여 있는 Moduleattribute-- Throws:
TorqueException
-
getSavedRMUAs
db 에 저장되어 있는 List Order 를 위한 MUA 를 구한다. 먼저 사용자의 것을 구하고 없으면 생성자의 것을 구한다.- Parameters:
module- 이 MITList 를 사용하고 있는 Query, Report 의 Module- Throws:
TorqueException
-
getSavedRMUAs
protected List<ModuleUserAttribute> getSavedRMUAs(EasyDeskUser user, Module module) throws TorqueException db 에 저장되어 있는 MUA 를 구한다.- Parameters:
user-module- 이 MITList 를 사용하고 있는 Query, Report 의 Module- Throws:
TorqueException
-
getCommonLeafModuleOptions
DOCUMENT ME!- Parameters:
attribute- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
getCommonModuleOptionTree
DOCUMENT ME!- Parameters:
attribute- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
getDescendantsUnion
DOCUMENT ME!- Parameters:
option- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
isCommon
DOCUMENT ME!- Parameters:
option- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
isCommon
Checks all items after the first to see if they contain the attribute. It is assumed the attribute is included in the first item.- Parameters:
option- anAttributevalue- Returns:
- a
booleanvalue - Throws:
TorqueException
-
addToCriteria
- Parameters:
crit-- Returns:
- where clause 에 join 이 존재하는지
- Throws:
TorqueException
-
addAll
MITList 를 추가한다. 추가 MITList 에 있는 모든 MITListItem 을 추가하는 것과 동일하다.- Parameters:
list- 추가 mitList- Throws:
TorqueException
-
addMITListItem
Description copied from class:BaseMITListMethod called to associate a MITListItem object to this object through the collMITListItems foreign key attribute. If the associated objects were not retrieved before and this object is not new, the associated objects are retrieved from the database before adding thetoAddobject.- Overrides:
addMITListItemin classBaseMITList- Parameters:
item-- Throws:
TorqueException- if retrieval of the associated objects fails.
-
getAssociatedModuleAttributes
public List<ModuleAttribute> getAssociatedModuleAttributes(Attribute attribute) throws TorqueException 각 mitListItem 에 대응하는 ModuleAttribute 를 구한다.- Parameters:
attribute-- Returns:
- list
- Throws:
TorqueException
-
getExpandedMITListItems
Search 를 위한 MITListItem 들을 구한다.- Returns:
- all item list with 'Issue | Search' permission
-
getExpandedMITListItems
Search 를 위하여 모든 MITListItem 을 풀어서 구한다. all module 의 경우 item 의 수가 너무 많아 진다...- Parameters:
permissions- name array- Returns:
- all item list
- Throws:
Exception
-
getPermission
검색 권한을 구한다.- Throws:
TorqueException
-
scheduleItemForDeletion
itemList 를 db 에서 제거한다.- Parameters:
item- mitListItem in this MITList
-
getModuleIds
MITList 가 설정하고 있는 모든 ModuleId 들을 구한다.- Returns:
- ModuleId List
-
getModuleIdsAsBitSet
public org.apache.lucene.util.BitSet getModuleIdsAsBitSet()MITList 가 설정하고 있는 모든 ModuleId 들을 구한다.- Returns:
- ModuleId List
-
getModules
MITList 가 설정하고 있는 모든 Module 들을 구한다.- Returns:
- Module List
- Throws:
TorqueException
-
getItemTypes
- Returns:
- itemType list
- Throws:
TorqueException
-
getItemTypeIds
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
toString
DOCUMENT ME!- Overrides:
toStringin classBaseMITList- Returns:
- DOCUMENT ME!
-
toKeyString
for cache key -
toKeyAsCSV
for key array when report create- Returns:
- CSV of the listItems
-
getDisplayName
MITList 의 DisplayName 을 구한다.- Returns:
- display name String
- Throws:
Exception
-
mirrorCopy
public MITList mirrorCopy(Module fromModule, Module toModule, EasyDeskUser user) throws TorqueException Query/Report 의 이동 복사에 사용된다. mitListItem 의 대상 Module 도 같이 변경된다.- Parameters:
fromModule- category 변경시toModule- category 변경시user-- Throws:
TorqueException
-
mirrorCopy
public MITList mirrorCopy(Module fromModule, Module toModule, EasyDeskUser user, boolean change) throws TorqueException Query/Report 의 이동 복사에 사용된다. mitListItem 의 대상 Module 도 같이 변경되는 것을 설정할 수 있다.- Parameters:
fromModule- category 변경시toModule- category 변경시user-change- if true set mitListItem to request module- Throws:
TorqueException
-
getQueryId
DOCUMENT ME!- Parameters:
module- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getReportHeadId
DOCUMENT ME!- Parameters:
module- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getBitMatrix
- Returns:
- a BitMatrix for this mitList
- Throws:
TorqueException
-
getLocalized
Description copied from interface:LocalizableOMlocale 에 해당하는 localized 정보를 구한다.- Specified by:
getLocalizedin interfaceLocalizableOM- Parameters:
locale-- Returns:
- localized[]
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getMethodCache
- Specified by:
getMethodCachein interfaceCacheable- Returns:
- MethodResultCache
-
clear
public void clear()Description copied from interface:Cacheableclear this Serializable instance cache
-