persistentstorage/centralrepository/cenrepsrv/srvrepos_noc.h
branchRCL_3
changeset 23 26645d81f48d
parent 1 c084286672be
child 24 cc28652e0254
equal deleted inserted replaced
21:28839de615b4 23:26645d81f48d
   105 	TInt TransactionMoveL(const TClientRequest& aMessage, TUint32& aErrorKey);
   105 	TInt TransactionMoveL(const TClientRequest& aMessage, TUint32& aErrorKey);
   106 	TInt TransactionDeleteRangeL(const TClientRequest& aMessage, TUint32& aErrId);
   106 	TInt TransactionDeleteRangeL(const TClientRequest& aMessage, TUint32& aErrId);
   107 
   107 
   108 	TInt CheckPermissions(RSettingPointerArray& aSettings, const TClientRequest& aMessage, const char* aDiagnostic,TBool aReadPolicy,TUint32& aErrId);
   108 	TInt CheckPermissions(RSettingPointerArray& aSettings, const TClientRequest& aMessage, const char* aDiagnostic,TBool aReadPolicy,TUint32& aErrId);
   109 	
   109 	
   110 	TInt CheckAccessPolicyBeforeMoving(const TClientRequest& aMessage, const TServerSetting& aSourceSetting, TUint32 aSourceKey, 
   110 	TInt CheckAccessPolicyBeforeMoving(const TClientRequest& aMessage, const TServerSetting* aSourceSetting, TUint32 aSourceKey, 
   111 							const TServerSetting& aTargetSetting, TUint32 aTargetKey, TUint32& aErrorKey);
   111 							const TServerSetting* aTargetSetting, TUint32 aTargetKey, TUint32& aErrorKey);
   112 								
   112 								
   113 	TInt CheckMovePermissions(const RSettingPointerArray& aSourceSettings,const TClientRequest& aMessage,TUint aSourceToTarget,TUint32& aErrorKey)
   113 	TInt CheckMovePermissions(const RSettingPointerArray& aSourceSettings,const TClientRequest& aMessage,TUint aSourceToTarget,TUint32& aErrorKey)
   114 		{
   114 		{
   115 		TInt error=KErrNone;
   115 		TInt error=KErrNone;
   116 		for (TInt i=0;i<aSourceSettings.Count() && error==KErrNone;i++)	
   116 		for (TInt i=0;i<aSourceSettings.Count() && error==KErrNone;i++)	
   119 			TServerSetting* sourceSetting = aSourceSettings[i];
   119 			TServerSetting* sourceSetting = aSourceSettings[i];
   120 			TUint32 sourceKey = sourceSetting->Key();
   120 			TUint32 sourceKey = sourceSetting->Key();
   121 			TUint32 targetKey = sourceKey ^ aSourceToTarget;
   121 			TUint32 targetKey = sourceKey ^ aSourceToTarget;
   122 			TServerSetting* targetSetting = GetSetting(targetKey);
   122 			TServerSetting* targetSetting = GetSetting(targetKey);
   123 		
   123 		
   124 			error = CheckAccessPolicyBeforeMoving(aMessage, *sourceSetting, sourceKey, *targetSetting, targetKey, aErrorKey);		
   124 			error = CheckAccessPolicyBeforeMoving(aMessage, sourceSetting, sourceKey, targetSetting, targetKey, aErrorKey);		
   125 			}
   125 			}
   126 		return error;
   126 		return error;
   127 		}
   127 		}
   128 
   128 
   129 	inline TInt FindPersistentSettings(TUint32 aPartialId, TUint32 aIdMask, RSettingPointerArray& aMatches) const
   129 	inline TInt FindPersistentSettings(TUint32 aPartialId, TUint32 aIdMask, RSettingPointerArray& aMatches) const