| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.uiinfrastructure.editor.EditorModel
com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
com.plumtree.portalpages.admin.editors.authsource.AuthSourceModel
public abstract class AuthSourceModel
| Field Summary | |
|---|---|
protected  XPArrayList | 
m_ActionData
 | 
protected  boolean | 
m_bImportCrossASMemberships
 | 
 XPStringBuilder | 
m_errors
 | 
protected  XPArrayList | 
m_groupsOrder
 | 
protected  int | 
m_iddefFolder
 | 
 java.lang.String | 
m_lastTreeSpaceId_ADMINFOLDERTREESPACE
 | 
 java.lang.String | 
m_lastTreeSpaceId_USERGROUPTREESPACE
 | 
 int | 
m_nAction
 | 
protected  int | 
m_nReenabled
 | 
protected  java.lang.Object | 
m_originalPassword
 | 
protected  boolean | 
m_sameTimeCreatedAndModified
 | 
protected  java.lang.String | 
m_sCategory
 | 
 int | 
m_templateSelected
 | 
protected static java.lang.String | 
templatesDir
 | 
protected static java.lang.String | 
templatesPatttern
 | 
| Fields inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel | 
|---|
EDITOR_CLASSID_UNKNOWN, EDITOR_FOLDERID_UNKNOWN, EDITOR_OBJECTID_UNKNOWN, EDITOR_QS_BOL_QS_FORCESAVEINFOLDER, EDITOR_QS_INT_CLASS_ID, EDITOR_QS_INT_QS_FOLDER_ID, EDITOR_QS_INT_QS_OBJECT_ID, m_bDisableDescription, m_bDisableSecurity, m_bForceSavedInSuppliedFolder, m_bIsSysAdmin, m_nClassID, m_nFolderID, m_nFolderType, m_nObjectID, m_ptObject, m_Session, m_sFolderName, OBJECT_NAME_TRUNCATE | 
| Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel | 
|---|
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType | 
| Constructor Summary | |
|---|---|
AuthSourceModel()
Creates a new AuthSourceModel object.  | 
|
| Method Summary | |
|---|---|
 java.lang.Object[][] | 
allGroups(boolean doFilterByAuthSource)
 | 
 AActivitySpace | 
asOwner()
 | 
 java.lang.Object[][] | 
authPartners()
 | 
 int | 
bulkCopyNum()
 | 
protected  void | 
ClearActionData()
 | 
 void | 
copyDataFromAuthSourceToPropValues(XPArrayList m_props,
                                   IPTAuthSource ptAS,
                                   int idx_start)
 | 
 void | 
copyDataFromPropValuesToAuthSource(XPArrayList m_props,
                                   IPTAuthSource ptAS,
                                   int idx_start)
 | 
protected  void | 
CreateDisabledGroupFolder(IPTAuthSource ptAS)
Creates a disabled group folder and associated with the given auth source.  | 
 java.lang.Object[][] | 
defaultProfiles()
 | 
 int | 
deferredGroupFolderID()
 | 
 int | 
deletedUserFolderID()
 | 
 void | 
DoTaskAfterStore()
That method contains the code that should be executed just after the object has been stored in the DB.  | 
 void | 
DoTaskBeforeStore()
That method contains the code that should be executed just before the object is stored in the DB.  | 
 void | 
DoTaskOnComeBackFromSubEditor()
This method will be called when you come back to the main Editor from a sub Editor.  | 
 void | 
DoTaskOnStartEditor(XPHashtable _htFormData)
That method contains the code that should be executed just after the object has been initialized when the new editor is started.  | 
protected  void | 
ExtractAndSaveDefaultProfiles(XPHashtable _htFormData)
 | 
protected  void | 
ExtractCheckboxes(java.lang.String[] ids)
 | 
protected  void | 
ExtractDisabledCheckboxes(java.lang.String[] ids)
 | 
protected  boolean | 
ExtractOneBoolElement(java.lang.Object o)
 | 
 java.lang.String | 
ExtractOneElement(java.lang.Object o)
 | 
protected  void | 
ExtractSyncCheckboxes(java.lang.String[] ids)
 | 
 java.lang.Object[][] | 
fullySyncedGroups()
 | 
protected  int | 
GetAction()
 | 
 java.lang.String | 
GetAuthSourceCategory()
Returns the Auth Source's category  | 
protected  int | 
GetDefaultFolderId()
 | 
protected  int | 
GetDefaultProfileId()
 | 
 java.lang.String | 
GetEmptyListInstructions()
 | 
 java.lang.String | 
GetEmptyListMainMessage()
 | 
 XPStringBuilder | 
GetErrorString()
 | 
 int | 
GetNumDisabledUsers()
 | 
 int | 
GetNumReenabledUsers()
 | 
 int | 
groupsOrder(int j)
 | 
 boolean | 
ImportCrossASMemberships()
Indicates whether or not the underlying Authentication Source should resolve cross authentication source memberships.  | 
 void | 
Init(AActivitySpace parent)
Inits the Model with the IPTSession.  | 
 java.lang.String | 
joinLists(java.lang.String lst1,
          java.lang.String lst2)
 | 
 java.lang.String | 
lastTreeSpaceId_ADMINFOLDERTREESPACE()
 | 
 java.lang.String | 
lastTreeSpaceId_USERGROUPTREESPACE()
 | 
 java.lang.String | 
listOfAlienGroups()
Helper function  | 
 java.lang.String | 
listOfMappedGroups()
Helper function  | 
 java.lang.String | 
listOfNewGroupsFolder()
Helper function  | 
 java.lang.String | 
listOfSyncGroups()
Helper function  | 
 java.lang.String | 
listOfUnmappedGroups()
Helper function  | 
 java.lang.Object[][] | 
mappedGroups(int reserveTopRows)
 | 
 int | 
newGroupFolderId()
 | 
 int | 
numTemplates()
 | 
 void | 
onAddAllSyncGroups()
 | 
 void | 
onAddGroup(int id)
Action to be taken when a group is added to the list  | 
 void | 
onAddSyncGroup(int id)
 | 
 void | 
onChangeCheckboxForSyncGroup(int k)
 | 
 void | 
onChangeFolder(int id,
               int folderid)
Action take when the selected folder is changed  | 
 void | 
onChangeFolderForNewGroups(int folderid)
 | 
 void | 
onChangeFolderForSyncGroup(int id,
                           int folderid)
Event handler for when the folder is changed for a sync group  | 
 void | 
onMoveGroup(int id,
            int dir)
Action to be taken when a group is moved in the list  | 
 void | 
onPossibleChangeOfSyncMode(int oldmode)
 | 
 void | 
onReenableUsers()
Action to be taken when a group is removed from the list  | 
 void | 
onRemoveGroup()
Action to be taken when a group is removed from the list  | 
 void | 
onRemoveSyncGroup()
 | 
protected static int | 
removeIdFromAction(int action)
 | 
 boolean | 
sameTimeCreatedAndModified()
 | 
protected  void | 
saveGroups(java.lang.Object[][] groups)
Save the information about he selected groups to the model class  | 
protected  int | 
SaveMainPage(XPHashtable _htFormData)
 | 
 int | 
SavePage(java.lang.String _sPageName,
         XPHashtable _htFormData)
Calls the right save function according to the page name passed in argument.  | 
protected  int | 
SavePage2(XPHashtable _htFormData)
 | 
protected  int | 
SavePage3(XPHashtable _htFormData)
 | 
protected  int | 
SavePage4(XPHashtable _htFormData)
 | 
 int | 
selectedPartnerId()
 | 
 int | 
selectedTemplate()
 | 
protected  void | 
SetDefaultFolderId(int id)
 | 
protected  void | 
SetInvalid(java.lang.String s)
 | 
 int | 
supportSyncMode()
 | 
 int | 
syncType()
 | 
 IXPPropertyBag | 
templateContents(int index)
 | 
 java.lang.String | 
templateName(int index)
 | 
 java.lang.Object[][] | 
unmappedGroups()
 | 
 java.lang.String | 
userFolderPathIfSingle()
 | 
protected  java.lang.String | 
userGroupName(int id)
 | 
protected  void | 
validateAllProperties()
 | 
protected  void | 
validatePage1Properties()
 | 
protected  void | 
validatePage2Properties()
 | 
| Methods inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel | 
|---|
CheckEditorAccess, CheckEditorAccessAndStart, CheckFolderType, DisableSecurity, Finish, ForceSaveInFolder, GetClassID, GetFolderID, GetFolderName, GetIsSysAdmin, GetMigrationStatus, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession, InitIsSysAdminFlag, InitPTObject, IsDescriptionDisabled, IsMigrationApproved, SaveMigrationStatus, SetDisableDescription, SetEditorToReadOnly, SetMemberVariablesFromQS, SetMigrationStatus, StartKeywords, StartLocNamesList, StartMigrationHistory, StartObjectProp, StartSecurityList, StoreObject | 
| Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel | 
|---|
Cancel, CleanupAllData, CleanupTempData, Create, DoTaskOnChangePage, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetName, GetRedirectAfterFinish, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, SetHideLeftNav, SetPageStatus, SetUserHasAccessToEditor | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.plumtree.portaluiinfrastructure.editor.IObjEditorModelRO | 
|---|
GetClassID, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession | 
| Methods inherited from interface com.plumtree.uiinfrastructure.editor.IEditorModelRO | 
|---|
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly | 
| Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IMVCObject | 
|---|
GetName | 
| Field Detail | 
|---|
protected static final java.lang.String templatesDir
protected static final java.lang.String templatesPatttern
public java.lang.String m_lastTreeSpaceId_ADMINFOLDERTREESPACE
public java.lang.String m_lastTreeSpaceId_USERGROUPTREESPACE
public XPStringBuilder m_errors
public int m_nAction
public int m_templateSelected
protected java.lang.String m_sCategory
protected XPArrayList m_ActionData
protected XPArrayList m_groupsOrder
protected int m_iddefFolder
protected java.lang.Object m_originalPassword
protected boolean m_sameTimeCreatedAndModified
protected int m_nReenabled
protected boolean m_bImportCrossASMemberships
| Constructor Detail | 
|---|
public AuthSourceModel()
| Method Detail | 
|---|
public void Init(AActivitySpace parent)
ObjEditorModel
Init in interface IModelInit in class ObjEditorModelparent - the parent Activity Spacepublic XPStringBuilder GetErrorString()
GetErrorString in interface PropertyValidatorOwnerpublic void DoTaskAfterStore()
EditorModel
DoTaskAfterStore in class EditorModelpublic void DoTaskBeforeStore()
EditorModel
DoTaskBeforeStore in class EditorModelpublic void DoTaskOnComeBackFromSubEditor()
ObjEditorModel
DoTaskOnComeBackFromSubEditor in class ObjEditorModelpublic void DoTaskOnStartEditor(XPHashtable _htFormData)
EditorModel
DoTaskOnStartEditor in class EditorModel_htFormData - protected void CreateDisabledGroupFolder(IPTAuthSource ptAS)
ptAS - - IPTAuthSource to associate the disabled folder with...public java.lang.String ExtractOneElement(java.lang.Object o)
o - 
public java.lang.String GetEmptyListInstructions()
GetEmptyListInstructions in interface IAuthSourceModelROpublic java.lang.String GetEmptyListMainMessage()
GetEmptyListMainMessage in interface IAuthSourceModelRO
public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
ObjEditorModel
SavePage in interface IRepostModelSavePage in class ObjEditorModel_sPageName - _htFormData - 
protected void validateAllProperties()
protected void validatePage1Properties()
protected void validatePage2Properties()
public java.lang.Object[][] allGroups(boolean doFilterByAuthSource)
allGroups in interface IAuthSourceModelROdoFilterByAuthSource - 
public AActivitySpace asOwner()
asOwner in interface PropertyValidatorOwnerpublic java.lang.Object[][] authPartners()
authPartners in interface IAuthSourceModelROpublic int bulkCopyNum()
bulkCopyNum in interface IAuthSourceModelRO
public void copyDataFromAuthSourceToPropValues(XPArrayList m_props,
                                               IPTAuthSource ptAS,
                                               int idx_start)
m_props - ptAS - idx_start - protected void SetInvalid(java.lang.String s)
public void copyDataFromPropValuesToAuthSource(XPArrayList m_props,
                                               IPTAuthSource ptAS,
                                               int idx_start)
m_props - ptAS - idx_start - public java.lang.String GetAuthSourceCategory()
GetAuthSourceCategory in interface IAuthSourceModelROpublic java.lang.Object[][] defaultProfiles()
defaultProfiles in interface IAuthSourceModelROpublic int deferredGroupFolderID()
deferredGroupFolderID in interface IAuthSourceModelROpublic int deletedUserFolderID()
deletedUserFolderID in interface IAuthSourceModelROpublic java.lang.Object[][] fullySyncedGroups()
fullySyncedGroups in interface IAuthSourceModelROpublic int groupsOrder(int j)
groupsOrder in interface IAuthSourceModelROj - 
public java.lang.String lastTreeSpaceId_ADMINFOLDERTREESPACE()
lastTreeSpaceId_ADMINFOLDERTREESPACE in interface IAuthSourceModelROpublic java.lang.String lastTreeSpaceId_USERGROUPTREESPACE()
lastTreeSpaceId_USERGROUPTREESPACE in interface IAuthSourceModelROpublic java.lang.String listOfMappedGroups()
listOfMappedGroups in interface IAuthSourceModelROpublic java.lang.String listOfSyncGroups()
listOfSyncGroups in interface IAuthSourceModelROpublic java.lang.String listOfUnmappedGroups()
listOfUnmappedGroups in interface IAuthSourceModelROpublic java.lang.String listOfAlienGroups()
listOfAlienGroups in interface IAuthSourceModelROpublic java.lang.String listOfNewGroupsFolder()
listOfNewGroupsFolder in interface IAuthSourceModelRO
public java.lang.String joinLists(java.lang.String lst1,
                                  java.lang.String lst2)
joinLists in interface IAuthSourceModelROpublic java.lang.Object[][] mappedGroups(int reserveTopRows)
mappedGroups in interface IAuthSourceModelROreserveTopRows - 
public int newGroupFolderId()
newGroupFolderId in interface IAuthSourceModelRO_fixDeletedfolder - - if the folderid no longer exists,
                        replace the id with a default folder
public int numTemplates()
numTemplates in interface IAuthSourceModelROpublic int selectedPartnerId()
selectedPartnerId in interface IAuthSourceModelROpublic int selectedTemplate()
selectedTemplate in interface IAuthSourceModelROpublic int supportSyncMode()
supportSyncMode in interface IAuthSourceModelROpublic int syncType()
syncType in interface IAuthSourceModelROpublic IXPPropertyBag templateContents(int index)
templateContents in interface IAuthSourceModelROindex - 
public java.lang.String templateName(int index)
templateName in interface IAuthSourceModelROindex - 
public java.lang.Object[][] unmappedGroups()
unmappedGroups in interface IAuthSourceModelROprotected int SaveMainPage(XPHashtable _htFormData)
_htFormData - 
protected int SavePage2(XPHashtable _htFormData)
_htFormData - 
protected int SavePage3(XPHashtable _htFormData)
_htFormData - 
protected int SavePage4(XPHashtable _htFormData)
_htFormData - 
protected int GetAction()
protected void SetDefaultFolderId(int id)
id - protected int GetDefaultFolderId()
protected int GetDefaultProfileId()
protected void ClearActionData()
protected void ExtractCheckboxes(java.lang.String[] ids)
ids - protected void ExtractDisabledCheckboxes(java.lang.String[] ids)
ids - protected boolean ExtractOneBoolElement(java.lang.Object o)
o - 
public void onAddAllSyncGroups()
public void onAddSyncGroup(int id)
id - public void onRemoveSyncGroup()
protected static int removeIdFromAction(int action)
protected void ExtractSyncCheckboxes(java.lang.String[] ids)
ids - public void onAddGroup(int id)
id - public void onChangeCheckboxForSyncGroup(int k)
k - 
public void onChangeFolder(int id,
                           int folderid)
id - folderid - public void onChangeFolderForNewGroups(int folderid)
folderid - 
public void onChangeFolderForSyncGroup(int id,
                                       int folderid)
id - folderid - 
public void onMoveGroup(int id,
                        int dir)
id - dir - public void onPossibleChangeOfSyncMode(int oldmode)
oldmode - public void onRemoveGroup()
public void onReenableUsers()
public int GetNumDisabledUsers()
GetNumDisabledUsers in interface IAuthSourceModelROpublic int GetNumReenabledUsers()
GetNumReenabledUsers in interface IAuthSourceModelROprotected void saveGroups(java.lang.Object[][] groups)
groups - protected void ExtractAndSaveDefaultProfiles(XPHashtable _htFormData)
public java.lang.String userFolderPathIfSingle()
protected java.lang.String userGroupName(int id)
id - 
public boolean sameTimeCreatedAndModified()
public boolean ImportCrossASMemberships()
IAuthSourceModelRO
ImportCrossASMemberships in interface IAuthSourceModelROtrue if it should, false if the
                authentication source shouldn't.
  | 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||